LabVIEW Control Design and Simulation Module

Using an External Solver (Control Design and Simulation Module)

  • Updated2023-03-14
  • 2 minute(s) read

You can use the External Solver Interface to create and use external solvers in the LabVIEW Control Design and Simulation Module. When you create an external solver, you can use the solver for any simulation subsystem.

Complete the following steps to use an external ODE solver in the Control Design and Simulation Module.

  1. Create a new VI.
  2. Add a Control & Simulation Loop to the block diagram.

    Add 

  3. Double-click the Input Node of the Control & Simulation Loop to launch the Configure Simulation Parameters dialog box.
  4. In the Solver Method section, select the external solver from the ODE Solver pull-down menu.
    Note  When you create the external ODE solver, use the Information function to specify the name of the solver that appears in the ODE Solver pull-down menu.
  5. (Optional) Set the Simulation Time and the Continuous Time Step and Tolerance or Discrete Time Step settings.
  6. Click the OK button to select the external solver for the simulation subsystem.
    Note  If you configure a VI to use an external solver and then run the VI on a computer without the external solver installed, errors might occur. Ensure the shared library file for the external solver is in the labview\vi.lib\Simulation\ContinuousLinear\Implementation\Shared\Solvers\Plugins directory.

Log in to get a better experience