MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

Can ethernet be used to communicate directly with system build simulations

I have an existing system build simulation which includes a model for a hardware component. I would like to know if and how I could rout real-time data from actual hardware into my simulation.
0 Kudos
Message 1 of 2
(6,714 Views)
MM1,
The best solution is to generate code using AutoCode. You can then add the code for doing tcp communication to the sa_utils.c file in the external_input and external_output functions. The code generated by AutoCode is better suited for real-time simulation.
Communication can also be included in the model through the use of UserCodeBlocks. However the simulation is an elapsed time simulation. There is no direct relation to the time the simulation takes to run and the time in the model.

Carl L
National Instruments
0 Kudos
Message 2 of 2
(6,714 Views)