From: carlos on
hi,

i am using matlab 2008a
i want to use the function "add_block" to add blocks to my system, but i have problems with the name of blocksets with spaces
if i put:

add_block('Simulink/Sinks/Scope','mysys/scope1') i have no problem, all is OK

but if i put a name blockset with spaces:

add_block('Control System Toolbox/LTI System','mysys/LTI_1') i have the message error "??? There is no block named 'Control System Toolbox/LTI System'", why??

how can i use add_block for blocksets that have a name with spaces??!!

thanks for your help
From: carlos on
hi,

i solved the problem!!, i share my solution

1. Create a model (e.g. mymodel.mdl) and add the desire block (e.g. Analog Input), all blocks must be connected with other ones.
2. >>info = libinfo('mymodel');
3. >>info.ReferenceBlock
ans = 'daqlib/Analog Input'

4. >>load_system('daqlib');
5. >>add_block('daqlib/Analog Input', 'mysys/myAnalogInput');

i hope this helps

regards