You can define models programmatically using the following methods:
The following sections provide information about these methods.
Complete the following steps to create a constant that represents the model.
button on the configuration dialog box.The following figure shows a transfer function model as a block diagram constant.

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.