From: Gautham Prasad on
i have a block in simulink which has a parameter called 'BlockType' and it's value is 'S-Function'. i want to find this block in the m-file i write. i have used the function find_system. is the below way of using this find_system correct?

find_system(modelName, 'BlockType', 'S-Function');

by using this i am getting an error. it says "error in specification of object or property name and value pairs.
From: Dev on
"Gautham Prasad" <lincolnparkster(a)gmail.com> wrote in message <i2lloa$82p$1(a)fred.mathworks.com>...
> i have a block in simulink which has a parameter called 'BlockType' and it's value is 'S-Function'. i want to find this block in the m-file i write. i have used the function find_system. is the below way of using this find_system correct?
>
> find_system(modelName, 'BlockType', 'S-Function');
>
> by using this i am getting an error. it says "error in specification of object or property name and value pairs.

Working fine for me...!!
From: Gautham Prasad on
"Dev " <vyomdev(a)gmail.com> wrote in message <i2lmed$l88$1(a)fred.mathworks.com>...
>
> Working fine for me...!!


it worked for me the first time, but later it stopped. but what exactly does that error mean? what 'wrong' is it indicating?
From: Phil Goddard on

This error message is thrown if the model isn't loaded into memory before calling find_system.

Either open the model (in the normal way), or use load_system to load the model programatically, then use find_system.
Have a look at the doc for load_system for more info.

Phil.