DSPRelated.com
Forums

simulink system start from m-file

Started by bochao76 June 26, 2005
dear reader,
I would like to call a simulink-system to start from a m-file programm
by using the set_param-command. Though this call has been put in a
for-loop, so everytime this routine is called, the system should be
run through 5 times or whatever. But the simulink system needs its
time, the for-loop is too fast, what happens!!?....I get 5 times the
same result, although I update the parameters and variables in every
thread of the for-loop. Then I tried out this command-lines:

set_param('my-simulink-system','SystemCommand','update');
sim('my-simulink-system');

It seems to work, but not properly. My system now releases data,
before data has been fed into it (in German: system's not kausal).
What's wrong? Do you have a better suggestion?
Every comment is a gift to me. Don't hesitate to correct me or passing
me any advices.
Thanx a lot for yout help. Best regards.

BoChao76@BoCh...