Loading GUI.m +3 −3 Original line number Original line Diff line number Diff line Loading @@ -545,7 +545,7 @@ classdef GUI < handle code_block = sprintf('%s/code',getfullname(object.block_handle)); code_block = sprintf('%s/code',getfullname(object.block_handle)); % determine if code block already exists % determine if code block already exists code_blocks = find_system(getfullname(object.block_handle),'BlockType','SubSystem','Name','code'); code_blocks = find_system(getfullname(object.block_handle),'LookUnderMasks','all','BlockType','SubSystem','Name','code'); % if the code block does not already exists we need to create a % if the code block does not already exists we need to create a % new one % new one Loading Loading @@ -613,7 +613,7 @@ classdef GUI < handle in_handles=find_system(code_block, 'SearchDepth',1,'FindAll','On','FollowLinks','On','LookUnderMasks','All','BlockType','Inport'); in_handles=find_system(code_block, 'SearchDepth',1,'FindAll','On','FollowLinks','On','LookUnderMasks','All','BlockType','Inport'); for j = 1:size(in_handles,1) for j = 1:size(in_handles,1) found = 0; found = 0; inports = find_system(getfullname(object.block_handle),'BlockType','Inport'); inports = find_system(getfullname(object.block_handle),'LookUnderMasks','all','SearchDepth',1,'BlockType','Inport'); for i = 1:size(inports,1) for i = 1:size(inports,1) if strcmp(get_param(inports(i),'Name'),get_param(in_handles(j),'Name')) if strcmp(get_param(inports(i),'Name'),get_param(in_handles(j),'Name')) found = 1; found = 1; Loading Loading @@ -662,7 +662,7 @@ classdef GUI < handle out_handles=find_system(code_block, 'SearchDepth',1,'FindAll','On','FollowLinks','On','LookUnderMasks','All','BlockType','Outport'); out_handles=find_system(code_block, 'SearchDepth',1,'FindAll','On','FollowLinks','On','LookUnderMasks','All','BlockType','Outport'); for j = 1:size(out_handles,1) for j = 1:size(out_handles,1) found = 0; found = 0; outports = find_system(getfullname(object.block_handle),'BlockType','Outport'); outports = find_system(getfullname(object.block_handle),'LookUnderMasks','all','SearchDepth',1,'BlockType','Outport'); for i = 1:size(outports,1) for i = 1:size(outports,1) if strcmp(get_param(outports(i),'Name'),get_param(out_handles(j),'Name')) if strcmp(get_param(outports(i),'Name'),get_param(out_handles(j),'Name')) found = 1; found = 1; Loading TableLibrary.mdl +5 −4 Original line number Original line Diff line number Diff line Loading @@ -15,9 +15,9 @@ Library { ModifiedByFormat "%<Auto>" ModifiedByFormat "%<Auto>" LastModifiedBy "colin" LastModifiedBy "colin" ModifiedDateFormat "%<Auto>" ModifiedDateFormat "%<Auto>" LastModifiedDate "Tue Jul 13 12:59:32 2010" LastModifiedDate "Wed Jul 14 11:27:12 2010" RTWModifiedTimeStamp 200926766 RTWModifiedTimeStamp 201007625 ModelVersionFormat "1.%<AutoIncrement:6>" ModelVersionFormat "1.%<AutoIncrement:7>" ConfigurationManager "None" ConfigurationManager "None" SampleTimeColors off SampleTimeColors off SampleTimeAnnotations off SampleTimeAnnotations off Loading Loading @@ -632,7 +632,7 @@ Library { } } System { System { Name "TableLibrary" Name "TableLibrary" Location [210, 243, 790, 503] Location [210, 265, 790, 525] Open on Open on ModelBrowserVisibility off ModelBrowserVisibility off ModelBrowserWidth 200 ModelBrowserWidth 200 Loading Loading @@ -662,6 +662,7 @@ Library { Opaque off Opaque off RequestExecContextInheritance off RequestExecContextInheritance off MaskHideContents off MaskHideContents off MaskDescription "Table Block" MaskDisplay "port_label('input',1,'Input');\ntext(0.5,0.6,'Tabular Expression', 'horizontalAlignment', 'ce" MaskDisplay "port_label('input',1,'Input');\ntext(0.5,0.6,'Tabular Expression', 'horizontalAlignment', 'ce" "nter')\ncolor('red')\ntext(0.5,0.4,'Not Checked', 'horizontalAlignment', 'center')" "nter')\ncolor('red')\ntext(0.5,0.4,'Not Checked', 'horizontalAlignment', 'center')" MaskIconFrame on MaskIconFrame on Loading Loading
GUI.m +3 −3 Original line number Original line Diff line number Diff line Loading @@ -545,7 +545,7 @@ classdef GUI < handle code_block = sprintf('%s/code',getfullname(object.block_handle)); code_block = sprintf('%s/code',getfullname(object.block_handle)); % determine if code block already exists % determine if code block already exists code_blocks = find_system(getfullname(object.block_handle),'BlockType','SubSystem','Name','code'); code_blocks = find_system(getfullname(object.block_handle),'LookUnderMasks','all','BlockType','SubSystem','Name','code'); % if the code block does not already exists we need to create a % if the code block does not already exists we need to create a % new one % new one Loading Loading @@ -613,7 +613,7 @@ classdef GUI < handle in_handles=find_system(code_block, 'SearchDepth',1,'FindAll','On','FollowLinks','On','LookUnderMasks','All','BlockType','Inport'); in_handles=find_system(code_block, 'SearchDepth',1,'FindAll','On','FollowLinks','On','LookUnderMasks','All','BlockType','Inport'); for j = 1:size(in_handles,1) for j = 1:size(in_handles,1) found = 0; found = 0; inports = find_system(getfullname(object.block_handle),'BlockType','Inport'); inports = find_system(getfullname(object.block_handle),'LookUnderMasks','all','SearchDepth',1,'BlockType','Inport'); for i = 1:size(inports,1) for i = 1:size(inports,1) if strcmp(get_param(inports(i),'Name'),get_param(in_handles(j),'Name')) if strcmp(get_param(inports(i),'Name'),get_param(in_handles(j),'Name')) found = 1; found = 1; Loading Loading @@ -662,7 +662,7 @@ classdef GUI < handle out_handles=find_system(code_block, 'SearchDepth',1,'FindAll','On','FollowLinks','On','LookUnderMasks','All','BlockType','Outport'); out_handles=find_system(code_block, 'SearchDepth',1,'FindAll','On','FollowLinks','On','LookUnderMasks','All','BlockType','Outport'); for j = 1:size(out_handles,1) for j = 1:size(out_handles,1) found = 0; found = 0; outports = find_system(getfullname(object.block_handle),'BlockType','Outport'); outports = find_system(getfullname(object.block_handle),'LookUnderMasks','all','SearchDepth',1,'BlockType','Outport'); for i = 1:size(outports,1) for i = 1:size(outports,1) if strcmp(get_param(outports(i),'Name'),get_param(out_handles(j),'Name')) if strcmp(get_param(outports(i),'Name'),get_param(out_handles(j),'Name')) found = 1; found = 1; Loading
TableLibrary.mdl +5 −4 Original line number Original line Diff line number Diff line Loading @@ -15,9 +15,9 @@ Library { ModifiedByFormat "%<Auto>" ModifiedByFormat "%<Auto>" LastModifiedBy "colin" LastModifiedBy "colin" ModifiedDateFormat "%<Auto>" ModifiedDateFormat "%<Auto>" LastModifiedDate "Tue Jul 13 12:59:32 2010" LastModifiedDate "Wed Jul 14 11:27:12 2010" RTWModifiedTimeStamp 200926766 RTWModifiedTimeStamp 201007625 ModelVersionFormat "1.%<AutoIncrement:6>" ModelVersionFormat "1.%<AutoIncrement:7>" ConfigurationManager "None" ConfigurationManager "None" SampleTimeColors off SampleTimeColors off SampleTimeAnnotations off SampleTimeAnnotations off Loading Loading @@ -632,7 +632,7 @@ Library { } } System { System { Name "TableLibrary" Name "TableLibrary" Location [210, 243, 790, 503] Location [210, 265, 790, 525] Open on Open on ModelBrowserVisibility off ModelBrowserVisibility off ModelBrowserWidth 200 ModelBrowserWidth 200 Loading Loading @@ -662,6 +662,7 @@ Library { Opaque off Opaque off RequestExecContextInheritance off RequestExecContextInheritance off MaskHideContents off MaskHideContents off MaskDescription "Table Block" MaskDisplay "port_label('input',1,'Input');\ntext(0.5,0.6,'Tabular Expression', 'horizontalAlignment', 'ce" MaskDisplay "port_label('input',1,'Input');\ntext(0.5,0.6,'Tabular Expression', 'horizontalAlignment', 'ce" "nter')\ncolor('red')\ntext(0.5,0.4,'Not Checked', 'horizontalAlignment', 'center')" "nter')\ncolor('red')\ntext(0.5,0.4,'Not Checked', 'horizontalAlignment', 'center')" MaskIconFrame on MaskIconFrame on Loading