LabVIEW Control Design and Simulation Module

CD Query Model File VI

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

CD Query Model File VI

Owning Palette: Model Construction VIs

Requires: Control Design and Simulation Module

Queries a model (.lti) file that contains information about one or several models and returns the information in the file. The .lti file can contain models of multiple types (state-space, transfer function, and zero-pole-gain). You can use the CD Write Model to File VI to create a .lti file for this VI to query.

Example

File Path is the path to the .lti file that contains the model information.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
New File Path returns the path to the file.
model type returns an array containing the types of each model in the file. You can use this output with VIs that change polymorphic instances based on the model type, such as CD Read Model from File.
model file properties returns a table with information about the models in the file. The table includes the following information:

record Displays the identification number associated with the model in the .lti file.
model type Indicates the type of the model. This field displays the same information that the model type output returns.
dimension Indicates whether the model is single-input single-output (SISO) or multiple-input multiple-output (MIMO).
continuous/discrete Indicates whether the model is continuous or discrete.
Notes Displays any notes that are saved with the model in the .lti file.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the CDEx Managing Several Models in File VI in the labview\examples\Control and Simulation\Control Design\Model Construction directory for an example of using the CD Query Model File VI.

Log in to get a better experience