I'm probably a relative rookie when it comes to simulink and real time workshop. I've been trying to get a simple program to run on real time and I think I must be missing something.
Here's what I'm trying to do, I'm trying to simply send a signal through a usb port at real time. I've set up RTW with a discrete time step of .01, a total time of 20 units and generated the model. But both the simulation and the resulting program seem to run at a speed of higher than 20 sec. Its actually running at about 23 seconds. Am I missing something. I should probably venture into the optimization of the simulation but I was curious if you guys would have any insights or helpful remarks.
Thank you in advance,
Sean
Hi Sean,
USB is generally incompatible with real-time applications. Which block are
you using for USB communications? Which RTW target are you using? On which
platform are you running the generated code? Is it a real-time environment
(i.e. not Windows)?
Arnaud
And i'm not quite sure what you mean by: Which RTW target are you using?
Thank you for your patiance,
Sean
"Arnaud Miege" <arnaud...@nospam.mathworks.co.uk> wrote in message <heg6iq$f7m$1...@fred.mathworks.com>...
Arnaud