Tracing signals in script
I am trying to "trace" signals through a model, from the outports back to the inports. My script will go into a subsystem in the model, however, when it gets to the inports in that subsystem, I do not know how to find the corresponding signal/source block from the level above. Can anyone provide some help on how to do this? To trace into the subsystem, I am using:
subhandle = find_system(handle, ‘LookUnderMasks’, ‘all’, ‘FollowLinks’, ‘on’, ‘SearchDepth’, 1, ‘BlockType’, ‘Outport’);
Perhaps there is something similar to use to get back up a level?
I am also having trouble finding a matching GoTo block when I get to a From block, so any help would be appreciated. ThanksI am trying to "trace" signals through a model, from the outports back to the inports. My script will go into a subsystem in the model, however, when it gets to the inports in that subsystem, I do not know how to find the corresponding signal/source block from the level above. Can anyone provide some help on how to do this? To trace into the subsystem, I am using:
subhandle = find_system(handle, ‘LookUnderMasks’, ‘all’, ‘FollowLinks’, ‘on’, ‘SearchDepth’, 1, ‘BlockType’, ‘Outport’);
Perhaps there is something similar to use to get back up a level?
I am also having trouble finding a matching GoTo block when I get to a From block, so any help would be appreciated. Thanks I am trying to "trace" signals through a model, from the outports back to the inports. My script will go into a subsystem in the model, however, when it gets to the inports in that subsystem, I do not know how to find the corresponding signal/source block from the level above. Can anyone provide some help on how to do this? To trace into the subsystem, I am using:
subhandle = find_system(handle, ‘LookUnderMasks’, ‘all’, ‘FollowLinks’, ‘on’, ‘SearchDepth’, 1, ‘BlockType’, ‘Outport’);
Perhaps there is something similar to use to get back up a level?
I am also having trouble finding a matching GoTo block when I get to a From block, so any help would be appreciated. Thanks script MATLAB Answers — New Questions