Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Ads

Discussion Groups

Discussion Groups | Matlab DSP | simulink system start from m-file

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

simulink system start from m-file - bochao76 - Jun 26 16:21:00 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...




(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )