LabVIEW Control Design and Simulation Module

CD Linear Simulation VI

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

CD Linear Simulation VI

Owning Palette: Time Response VIs

Requires: Control Design and Simulation Module

Calculates the output when the Inputs excite the given system using discrete simulation. Wire data to the State-Space Model input to determine the polymorphic instance to use or manually select the instance.

Details  

Linear Simulation (State-Space)

Delta t is the integration time step.
Initial Time represents the time at the beginning of the simulation.
State-Space Model contains a mathematical representation of and information about the system of which this VI calculates a response.
Inputs is the stimulus signal this VI applies to the system model. When you use this VI with a discrete model, you must ensure that the time step of the model matches the time step of this input signal.

If you have only one input signal, specify Inputs as a 2D array with only one row or column. If you have two or more input signals, this VI considers the smaller dimension of the 2D array to be the number of channels and the larger dimension to be the number of points in each channel.
Initial Conditions is the initial state vector. The ith element of the array corresponds to the ith initial state. If Initial Conditions is empty, then this VI uses zero initial conditions to determine the time response.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Method specifies the method this VI uses to convert a continuous system to a discrete system before simulating the output. This VI uses the sampling interval (dt) from the Inputs signal.

0ZOH (default)—Zero-Order-Hold
1FOH—First-Order-Hold
Simulation Graph displays all the outputs resulting from inputs to the system.
State Trajectory Graph displays the individual trajectories of each state of the system.
Simulation Data returns the outputs and state data from the linear simulation. To access the Simulation Data, use the CD Get Time Response Data VI.
Time returns the uniformly-spaced time vector against which this VI plots the impulse, initial, or step response and the state trajectories.
Outputs Data returns data about the time response of the outputs to the inputs.
States Data returns data about the time response of the states to the inputs. For transfer function and zero-pole-gain models, this array is empty.
error out contains error information. This output provides standard error out functionality.

Linear Simulation (Transfer Function)

Delta t is the integration time step.
Initial Time represents the time at the beginning of the simulation.
Transfer Function Model contains a mathematical representation of and information about the system of which this VI calculates a response.
Inputs is the stimulus signal this VI applies to the system model. When you use this VI with a discrete model, you must ensure that the time step of the model matches the time step of this input signal.

If you have only one input signal, specify Inputs as a 2D array with only one row or column. If you have two or more input signals, this VI considers the smaller dimension of the 2D array to be the number of channels and the larger dimension to be the number of points in each channel.
Initial Conditions is the initial state vector. The ith element of the array corresponds to the ith initial state. If Initial Conditions is empty, then this VI uses zero initial conditions to determine the time response.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Method specifies the method this VI uses to convert a continuous system to a discrete system before simulating the output. This VI uses the sampling interval (dt) from the Inputs signal.

0ZOH (default)—Zero-Order-Hold
1FOH—First-Order-Hold
Simulation Graph displays all the outputs resulting from inputs to the system.
Simulation Data returns the outputs and state data from the linear simulation. To access the Simulation Data, use the CD Get Time Response Data VI.
Time returns the uniformly-spaced time vector against which this VI plots the impulse, initial, or step response and the state trajectories.
Outputs Data returns data about the time response of the outputs to the inputs.
States Data returns data about the time response of the states to the inputs. For transfer function and zero-pole-gain models, this array is empty.
error out contains error information. This output provides standard error out functionality.

Linear Simulation (Zero-Pole-Gain)

Delta t is the integration time step.
Initial Time represents the time at the beginning of the simulation.
Zero-Pole-Gain Model contains a mathematical representation of and information about the system of which this VI calculates a response.
Inputs is the stimulus signal this VI applies to the system model. When you use this VI with a discrete model, you must ensure that the time step of the model matches the time step of this input signal.

If you have only one input signal, specify Inputs as a 2D array with only one row or column. If you have two or more input signals, this VI considers the smaller dimension of the 2D array to be the number of channels and the larger dimension to be the number of points in each channel.
Initial Conditions is the initial state vector. The ith element of the array corresponds to the ith initial state. If Initial Conditions is empty, then this VI uses zero initial conditions to determine the time response.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Method specifies the method this VI uses to convert a continuous system to a discrete system before simulating the output. This VI uses the sampling interval (dt) from the Inputs signal.

0ZOH (default)—Zero-Order-Hold
1FOH—First-Order-Hold
Simulation Graph displays all the outputs resulting from inputs to the system.
Simulation Data returns the outputs and state data from the linear simulation. To access the Simulation Data, use the CD Get Time Response Data VI.
Time returns the uniformly-spaced time vector against which this VI plots the impulse, initial, or step response and the state trajectories.
Outputs Data returns data about the time response of the outputs to the inputs.
States Data returns data about the time response of the states to the inputs. For transfer function and zero-pole-gain models, this array is empty.
error out contains error information. This output provides standard error out functionality.

Linear Simulation (State-Space with Waveforms)

State-Space Model contains a mathematical representation of and information about the system of which this VI calculates a response.
Inputs is an array of waveforms. There must be as many waveforms in the array as the number of inputs to the system. The size of Inputs must equal the number of columns of matrices B and D of the State-Space Model. When you use this VI with a discrete model, you must ensure that the time step of the model matches the time step of this input signal.
Initial Conditions is the initial state vector. The ith element of the array corresponds to the ith initial state. If Initial Conditions is empty, then this VI uses zero initial conditions to determine the time response.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Method specifies the method this VI uses to convert a continuous system to a discrete system before simulating the output. This VI uses the sampling interval (dt) from the Inputs signal.

0ZOH (default)—Zero-Order-Hold
1FOH—First-Order-Hold
Outputs is a waveform graph that plots all the outputs resulting from Inputs to the system as the model represents.
State Trajectories is a waveform graph that shows the individual trajectories of each state of the system.
Simulation Data returns the outputs and state data from the linear simulation. To access the Simulation Data, use the CD Get Time Response Data VI.
Time returns the uniformly-spaced time vector against which this VI plots the impulse, initial, or step response and the state trajectories.
Outputs Data returns data about the time response of the outputs to the inputs.
States Data returns data about the time response of the states to the inputs. For transfer function and zero-pole-gain models, this array is empty.
error out contains error information. This output provides standard error out functionality.

Linear Simulation (Transfer Function with Waveforms)

Transfer Function Model contains a mathematical representation of and information about the system of which this VI calculates a response.
Inputs is an array of waveforms. There must be as many waveforms in the array as the number of inputs to the system. The size of Inputs must equal the number of columns of matrices B and D of the State-Space Model. When you use this VI with a discrete model, you must ensure that the time step of the model matches the time step of this input signal.
Initial Conditions is the initial state vector. The ith element of the array corresponds to the ith initial state. If Initial Conditions is empty, then this VI uses zero initial conditions to determine the time response.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Method specifies the method this VI uses to convert a continuous system to a discrete system before simulating the output. This VI uses the sampling interval (dt) from the Inputs signal.

0ZOH (default)—Zero-Order-Hold
1FOH—First-Order-Hold
Outputs is a waveform graph that plots all the outputs resulting from Inputs to the system as the model represents.
Simulation Data returns the outputs and state data from the linear simulation. To access the Simulation Data, use the CD Get Time Response Data VI.
Time returns the uniformly-spaced time vector against which this VI plots the impulse, initial, or step response and the state trajectories.
Outputs Data returns data about the time response of the outputs to the inputs.
States Data returns data about the time response of the states to the inputs. For transfer function and zero-pole-gain models, this array is empty.
error out contains error information. This output provides standard error out functionality.

Linear Simulation (Zero-Pole-Gain with Waveforms)

Zero-Pole-Gain Model contains a mathematical representation of and information about the system of which this VI calculates a response.
Inputs is the stimulus signal this VI applies to the system model. When you use this VI with a discrete model, you must ensure that the time step of the model matches the time step of this input signal.

If you have only one input signal, specify Inputs as a 2D array with only one row or column. If you have two or more input signals, this VI considers the smaller dimension of the 2D array to be the number of channels and the larger dimension to be the number of points in each channel.
Initial Conditions is the initial state vector. The ith element of the array corresponds to the ith initial state. If Initial Conditions is empty, then this VI uses zero initial conditions to determine the time response.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Method specifies the method this VI uses to convert a continuous system to a discrete system before simulating the output. This VI uses the sampling interval (dt) from the Inputs signal.

0ZOH (default)—Zero-Order-Hold
1FOH—First-Order-Hold
Outputs is a waveform graph that plots all the outputs resulting from Inputs to the system as the model represents.
Simulation Data returns the outputs and state data from the linear simulation. To access the Simulation Data, use the CD Get Time Response Data VI.
Time returns the uniformly-spaced time vector against which this VI plots the impulse, initial, or step response and the state trajectories.
Outputs Data returns data about the time response of the outputs to the inputs.
States Data returns data about the time response of the states to the inputs. For transfer function and zero-pole-gain models, this array is empty.
error out contains error information. This output provides standard error out functionality.

CD Linear Simulation Details

The CD Linear Simulation VI ignores the transport delay in a system. You can reduce the nonzero delay entries in the transport delay matrix with the CD Distribute Delay VI. However, the system inputs and outputs cannot accommodate all delay elements. Therefore, the CD Linear Simulation VI ignores the residue, or transport delay.

This VI supports input and output delays. This VI ignores the transport delay information. Refer to the LabVIEW Control Design User Manual for more information about delays.

Log in to get a better experience