Placing LabVIEW VIs, Functions, and Structures on the Simulation Diagram (Control Design and Simulation Module)

LabView Control Design and Simulation Module

Placing LabVIEW VIs, Functions, and Structures on the Simulation Diagram (Control Design and Simulation Module)

You can use a majority of LabVIEW VIs and functions to describe a dynamic system model. However, you cannot place certain structures, such as the While Loop, For Loop, or Event structure, directly on the simulation diagram. Instead, you can place these structures in a subVI, which you then place on the simulation diagram.

By default, the Control Design and Simulation Module executes VIs and Express VIs as continuous functions. You can change this behavior by using the SubVI Node Setup dialog box. To launch this dialog box, right-click the object and select SubVI Node Setup from the shortcut menu. You can configure a VI to execute at only major time steps of the ODE solver, at both major and minor time steps of the ODE solver, as a discrete function, or at initialization of the simulation diagram.

Using Case Structures on the Simulation Diagram

You can place a Case structure directly on the simulation diagram. The value you wire to the selector terminal determines which model to evaluate. If an input-output pair on any subdiagram of the case structure contains direct feedthrough, you cannot create a feedback cycle between that input and output.

National Instruments recommends you use a fixed step-size ordinary differential equation (ODE) solver when using a Case structure on the simulation diagram.

Note  You cannot place front panel terminals inside a Case structure on a simulation diagram.