LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analogue IO on a Windows Computer with SIT 3

I have been working through the example given in the help pages for the Simulation Interface Toolkit, building a Simulink model, mapping indicators and controls with the SIT Manager and creating a model DLL.  However, I have not had any success in mapping hardware I/O as described in the "Executing a model dll on a Windows computer".  I set the hardware IO mappings and built the drivers but when I run the VI I don't get any analogue input from my M-series card.  When I go back into the SIT manager the Hardware I/O tab has reverted to being greyed-out and the Simulation Environment checkbox is selected.

I'd like to get this simulation working before I need to use more complex models with analogue input and output on multiple channels.

Any help would be really appreciated!

Stewart
0 Kudos
Message 1 of 2
(2,447 Views)

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.

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 2
(2,432 Views)