Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Halting Simulations on Data Loss (Simulation Interface Toolkit)

LabVIEW Simulation Interface Toolkit 4.0 Help
August 2007

NI Part Number:
371504C-01

»View Product Info

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. Run the host VI and click the Simulation Details front panel button to launch the Simulation Details dialog box. Click the Settings tab. To specify that the simulation halts on data loss, place a checkmark in the Halt Simulation on Data Loss checkbox and click the Apply button. 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.

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.
  • 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.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit