Troubleshooting Issues in Models (Model Interface Toolkit)

LabVIEW 2017 Model Interface Toolkit Help

Edition Date: May 2017

Part Number: 374160C-01

»View Product Info
Download Help (Windows Only)

If your model crashes or does not execute as you expect, try to isolate the issue and determine if its source is within the model or due to your LabVIEW code.

Isolating the Issue

To identify the source of an issue, load and execute a simple model. If the simple model executes as expected, the source of the issue is likely within your model. However, if the simple model also experiences issues, the source of the issue might be due to the LabVIEW code.

The following issues can occur when you run a model:

Problem: Models are Crashing

Models often crash when an inport receives a value of 0 and the model attempts to divide by the inport value. This issue might occur upon run if the default value for an inport is 0. Depending on your system, the following solutions might address this issue:

  • Change the default value for the inport prior to stepping the model.
  • Rewrite the model to remove the possibility of dividing by 0.

Related Links

Initializing Inport Values

Problem: Model Runs Too Fast or Too Slow

If your model is unstable because it runs too fast or too slow, ensure the actual model rate matches the rate at which the model was compiled to run. If the rates do not match, adjust the period of the control loop that steps your model.

Related Links

Configuring Model Timing

Problem: Decreased Performance

If you suspect that models are causing your application to run slower than you desire, consider the following solutions that might improve performance:

  • Only set parameter values in the control loop if you must update them during every time step. Instead, initialize the parameter values prior to running the control loop or set them in lower priority, background code.
  • Probe only signals whose values you require. Probing many signals can have a negative impact on performance.
  • Avoid changing the list of signals to probe frequently with the Set Signals to Probe VI.


Not Helpful