LabVIEW Control Design and Simulation Module

CD Write Model to File VI

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

CD Write Model to File VI

Owning Palette: Model Construction VIs

Requires: Control Design and Simulation Module

Creates a new file or appends to an existing file, writes the specified number of records to the file, then closes the file and checks for errors. Each record is a model. Wire data to the State-Space Model input to determine the polymorphic instance to use or manually select the instance.

CD Write Model to File (State-Space)

File Path (dialog if empty) specifies the file path to the model location.
State-Space Model contains a mathematical representation of and information about a system that you want to write to a file.
If append to file? is TRUE, the VI appends data to an existing file. If append to file? is FALSE (default), the VI replaces data in an existing file. If there is no existing file, the VI creates a new file.
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.
Offset after Write (Records) is the location in the datalog file where the VI writes the next record.
error out contains error information. This output provides standard error out functionality.

CD Write Model to File (Transfer Function)

File Path (dialog if empty) specifies the file path to the model location.
Transfer Function Model contains a mathematical representation of and information about the system that you want to write to a file.
If append to file? is TRUE, the VI appends data to an existing file. If append to file? is FALSE (default), the VI replaces data in an existing file. If there is no existing file, the VI creates a new file.
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.
Offset after Write (Records) is the location in the datalog file where the VI writes the next record.
error out contains error information. This output provides standard error out functionality.

CD Write Model to File (Zero-Pole-Gain)

File Path (dialog if empty) specifies the file path to the model location.
Zero-Pole-Gain Model contains a mathematical representation of and information about a system that you want to write to a file.
If append to file? is TRUE, the VI appends data to an existing file. If append to file? is FALSE (default), the VI replaces data in an existing file. If there is no existing file, the VI creates a new file.
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.
Offset after Write (Records) is the location in the datalog file where the VI writes the next record.
error out contains error information. This output provides standard error out functionality.