08-28-2006 11:20 AM
08-29-2006 07:29 AM
Stuart,
This is happening because when you try to use the DLL on the same computer, the server running in Matlab will intercept the message and SIT thinks that you want to talk to the Simulation Environment. To avoid that, disable the server in Matlab with the command: "NISITServer ('stop')" and set to Real-Time Target to "localhost".
HOWEVER, notice that trying to run a time critical loop in a Windows XP operating system can not guarantee determinism and, you will have to give plenty of time for the simulation to execute and reduce the processes running in Windows as much as possible, so it would not preempt the time critical loop. Even so, there is no guarantee that it will not have a loop overun because of that. If possible, try to use an Real-Time operating system (ETS) instead of Windows.
Anyway let me know if the workaround work for you.