Loading GUI.m +15 −6 Original line number Diff line number Diff line Loading @@ -434,14 +434,23 @@ classdef GUI < handle end function type = output_data_type(object) if (object.mode == 1) S = sfroot; code_block = sprintf('%s/code',getfullname(object.block_handle)); code_blocks = find_system(getfullname(object.block_handle),'BlockType','SubSystem','Name','code'); if ~isempty(code_blocks) myState = S.find('-isa','Stateflow.EMChart', '-and', 'Path', code_block); % find which one we want to edit if strncmp(myState.Outputs.DataType,'Inherit',7); type = '' else type = myState.Outputs.DataType; end else type = ''; end else type = '' end end %% save_call Loading Loading
GUI.m +15 −6 Original line number Diff line number Diff line Loading @@ -434,14 +434,23 @@ classdef GUI < handle end function type = output_data_type(object) if (object.mode == 1) S = sfroot; code_block = sprintf('%s/code',getfullname(object.block_handle)); code_blocks = find_system(getfullname(object.block_handle),'BlockType','SubSystem','Name','code'); if ~isempty(code_blocks) myState = S.find('-isa','Stateflow.EMChart', '-and', 'Path', code_block); % find which one we want to edit if strncmp(myState.Outputs.DataType,'Inherit',7); type = '' else type = myState.Outputs.DataType; end else type = ''; end else type = '' end end %% save_call Loading