find_system(gcs,'FindAll', 'on', 'Name', 'VariableName')
I've never used the edit > find, but when I used find_system, something about finding the subsystem (or root) name of what you are centered on (rather than just everything inside the subsystem). But I don't think that is your problem.
Just did a little test. [const,line,scope] all named. The find_system, found the PORT, and the signal, the edit>find, only found the signal.
Suggest, add BlockType as a parameter.
What Simulink are you using? [6.6.1 here]
EDIT:
>> sx = find_system(gcs,'FindAll', 'on', 'Name', 'sigx')
sx =
1.0e+003 *
1.8550
0.0180
>> set_param(sx(1),'null','1')
??? Error using ==> set_param
port does not have a parameter named 'null'.
>> set_param(sx(2),'null','1')
??? Error using ==> set_param
line does not have a parameter named 'null'.
0 Comments
Sign in to comment.