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

Considerations for Embedded Targets (Simulation Module)

LabVIEW 8.5 Simulation Module Help
August 2007

NI Part Number:
371894B-01

»View Product Info

If you install LabVIEW for a particular embedded target, you can use the LabVIEW Simulation Module to develop and execute simulations on that target. Refer to the documentation for the target you purchased for information about developing and executing VIs on that target.

When developing a simulation for an embedded target, take the following factors into consideration:

  • You cannot use the Trim & Linearize VIs or Optimal Design VIs when developing on an embedded target. Therefore, LabVIEW does not display these palettes when you are in an embedded context.
  • You can use a Conditional Disable structure to enable real-world I/O when the simulation is on the embedded target and simulated I/O when the same simulation is running on a Windows computer. Using this method, you do not have to modify the VI manually to use different I/O code when you switch targets.
  • Use as few Simulation functions as possible. Combine as many sequential transformations as possible into a single Simulation function. For example, instead of using three State-Space functions to describe a controller model, combine those functions into a single State-Space function.
    Note  You can use the Model Interconnection VIs, included with the LabVIEW Control Design Toolkit, to combine dynamic system models. Refer to the National Instruments Web site for information about this product.
  • Consider the speed/memory trade-off when using simulation subsystems. Using fewer simulation subsystems might increase execution speed but might require you to duplicate code elsewhere on the simulation diagram.
  • Consider using fixed step-size ordinary differential equation (ODE) solvers, that is, the solvers not marked (variable). Variable step-size ODE solvers introduce computational overhead when changing step sizes.
  • When choosing the ODE solver and other simulation options, use the Configure Simulation Parameters dialog box instead of the Input Node of the Simulation Loop. Using the Input Node results in LabVIEW downloading all possible ODE solvers to the embedded target in addition to the solver you want to use.

Resources


 

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