Using Loops in Simulink® Models for NI VeriStand

Updated Apr 7, 2023

Reported In

Software

  • VeriStand

Other

  • The Mathworks, Inc. MATLAB®
  • The Mathworks, Inc. Simulink®

Issue Details

Can I use loops inside simulation models compiled in The Mathworks, Inc. Simulink® software?

Solution

No. As explained in NI VeriStand Engine Architecture , NI VeriStand executes models in a Time Loop that every iteration reads the data sent by the Primary Control Loop, maps it to model inputs, executes one step of the model, reads model output values and sends them to the Primary Control Loop. Adding a loop in a model disrupts VeriStand's execution, degrading determinism and possibly causing other problems.

MATLAB®, Simulink®, and Real-Time Workshop® are registered trademarks of The MathWorks, Inc. All other trademarks are the property of their respective owners.