Prev: having text or file names as variables
Next: How to setup data acquisition board in Stream Input/Output Block
From: Gautham Prasad on 27 Jul 2010 00:02 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 27 Jul 2010 00:14 "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 27 Jul 2010 00:22 "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 28 Jul 2010 00:12
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. |