Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Halting Simulations on Data Loss (Simulation Interface Toolkit)

LabVIEW 2010 Simulation Interface Toolkit Help

Edition Date: June 2010

Part Number: 371504F-01

»View Product Info
Download Help (Windows Only)

The SIT Server uses buffers to communicate with the execution host. When these buffers fill up, they behave differently depending on the execution host. If the simulation is not running on a real-time (RT) target, the SIT Server pauses the simulation while the host VI retrieves the necessary data from the buffer. If the simulation is running on an RT target, the SIT Server overwrites data in the buffer. This action results in data loss. When data loss occurs, you might see gaps in front panel indicators, because the SIT Server cannot send the appropriate amount of data to the host VI.

You can configure how the simulation behaves in the event of data loss. To specify that the simulation halts on data loss, place a checkmark in the Halt Simulation on Data Loss checkbox on the Mappings page of the SIT Connection Manager. The next time the SIT Server loses data from an RT target, the simulation aborts. If you remove the checkmark from this checkbox and click the Apply button, the simulation continues uninterrupted despite any data loss. You also can change this setting while the simulation runs from the Settings tab of the Simulation Details dialog box.

Note��The Halt Simulation on Data Loss checkbox does not affect simulations running on a non-RT target.

Reducing the Possibility of Data Loss

You can reduce the possibility of data loss in the following ways:

  • Apply a decimation factor to the signals you probe.
  • Configure the num data points front panel control of the driver VI using the Driver VI Buffer Settings dialog box.
  • Launch The MathWorks, Inc. Simulink application software and configure the ordinary differential equation (ODE) solver to take larger time steps. Taking larger time steps slows down the simulation. For example, increasing the time step from 0.001 to 0.01 slows the simulation down by a factor of 10. Refer to the Simulink documentation for more information about changing the time step of a simulation.


Not Helpful