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

Defining Linear Models Programmatically (Simulation Module)

LabVIEW 8.5 Simulation Module Help
August 2007

NI Part Number:
371894B-01

»View Product Info

You can define models programmatically using the following methods:

  • Wire a constant to the input of the function.
  • Wire a model you constructed with the LabVIEW Control Design Toolkit to the input of the function.

The following sections provide information about these methods.

Defining Linear Models Using a Constant

Complete the following steps to create a constant that represents the model.

  1. Define the model interactively.
  2. Click the Copy button on the configuration dialog box.
  3. Select Terminal from the Parameter source pull-down list.
  4. Click the OK button to close the configuration dialog box and return to the block diagram.
  5. Select Edit»Paste to paste a constant on the block diagram. This constant contains the terms you defined in step 1.
  6. Wire the output of the constant to the appropriate input of the linear model function.

The following figure shows a transfer function model as a block diagram constant.

Defining Linear Models Using the LabVIEW Control Design Toolkit

If you already have created a model using the LabVIEW Control Design Toolkit, you can place that model on the block diagram and wire the output of the model to the input of the corresponding Simulation function. The Parameter source pull-down list on the configuration dialog box of this function must be set to Terminal. The following figure shows how you can use the CD Construct Transfer Function Model VI, included in the Control Design Toolkit, to define a transfer function model.

You can use the Model Conversion VIs in the Control Design Toolkit to convert model forms and representations on the simulation diagram. For example, you can wire a continuous controller model to the input of the CD Convert Continuous to Discrete VI. Then, wire the output of this VI to the input of a discrete Simulation function.

The Control Design Toolkit also includes many functions you use to design and analyze dynamic system models, such as Bode/Nichols/Nyquist and root-locus operations. Refer to the National Instruments Web site for more information about this product.


Resources


 

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