LabVIEW Control Design and Simulation Module

SIM Construct Default System VI

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

SIM Construct Default System VI

Owning Palette: Optimal Design VIs

Requires: Control Design and Simulation Module

Constructs a dynamic system model you can wire to the System Data input of the SIM Optimal Design VI. This dynamic system model consists of a controller, a plant, a sensor, and three filters.

Details  Examples

G2 specifies information about the output feedforward filter.
F2 specifies information about the control feedforward filter.
F1 specifies information about the reference filter.
G1 specifies information about the plant.
C specifies information about the controller.
S specifies information about the sensor.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
R specifies information about the reference input signal to the controller C. Refer to the Details section for the information about how this signal applies to the dynamic system model.
Signal Type specifies the type of reference signal.

0None—Specifies a reference signal of 0.
1Step (default)—Specifies a step input signal. You can control the height of the step signal using the Step/impulse scaling factor parameter.
2Impulse—Specifies an input impulse signal. You can control the height of the impulse signal using the Step/impulse scaling factor parameter.
3User defined—Specifies a custom signal.
Step/impulse scaling factor specifies the factor by which this VI scales the input signal. This parameter is valid only if you specify Step or Impulse for the Signal Type parameter.
User Defined Input specifies a custom input signal. This parameter is valid only if you select User defined for the Signal Type parameter. The values you enter in this parameter must be uniformly-spaced. The time step between values is determined by the Time Step of the fixed step-size ordinary differential equation (ODE) solver you specify in the Solver Parameters parameter of the SIM Optimal Design VI. If you specify a variable step-size ODE solver, this VI resamples the custom input values based on the current Time Step of the ODE solver.
Ru specifies information about the input signal to the plant G1. This input signal passes through the control feedforward filter F2. Refer to the Details section for the information about how this signal applies to the dynamic system model.
Signal Type specifies the type of reference signal.

0None—Specifies a reference signal of 0.
1Step (default)—Specifies a step input signal. You can control the height of the step signal using the Step/impulse scaling factor parameter.
2Impulse—Specifies an input impulse signal. You can control the height of the impulse signal using the Step/impulse scaling factor parameter.
3User defined—Specifies a custom signal.
Step/impulse scaling factor specifies the factor by which this VI scales the input signal. This parameter is valid only if you specify Step or Impulse for the Signal Type parameter.
User Defined Input specifies a custom input signal. This parameter is valid only if you select User defined for the Signal Type parameter. The values you enter in this parameter must be uniformly-spaced. The time step between values is determined by the Time Step of the fixed step-size ordinary differential equation (ODE) solver you specify in the Solver Parameters parameter of the SIM Optimal Design VI. If you specify a variable step-size ODE solver, this VI resamples the custom input values based on the current Time Step of the ODE solver.
Ry specifies information about the input signal that this VI combines with output from the plant G1. This input signal passes through the output feedforward filter G2. Refer to the Details section for the information about how this signal applies to the dynamic system model.
Signal Type specifies the type of reference signal.

0None—Specifies a reference signal of 0.
1Step (default)—Specifies a step input signal. You can control the height of the step signal using the Step/impulse scaling factor parameter.
2Impulse—Specifies an input impulse signal. You can control the height of the impulse signal using the Step/impulse scaling factor parameter.
3User defined—Specifies a custom signal.
Step/impulse scaling factor specifies the factor by which this VI scales the input signal. This parameter is valid only if you specify Step or Impulse for the Signal Type parameter.
User Defined Input specifies a custom input signal. This parameter is valid only if you select User defined for the Signal Type parameter. The values you enter in this parameter must be uniformly-spaced. The time step between values is determined by the Time Step of the fixed step-size ordinary differential equation (ODE) solver you specify in the Solver Parameters parameter of the SIM Optimal Design VI. If you specify a variable step-size ODE solver, this VI resamples the custom input values based on the current Time Step of the ODE solver.
System Data returns information about the dynamic system that this VI constructs. You can wire this output to the System Data input of the SIM Optimal Design VI. Refer to the Details section for the structure of this dynamic system.
error out contains error information. This output provides standard error out functionality.

SIM Construct Default System Details

Dynamic System Structure

This VI constructs a dynamic system model with the following structure:

Dynamic System Components

G2, F2, F1, G1, C, and S consist of one or more transfer functions and information about the transfer function(s), such as delays.

By default, C is a parallel proportional integral derivative (PID) controller defined by the following equation:

Defining a Custom Reference Signal

The System Data parameter of this VI contains the Signal Parameters Array parameter, which specifies values for reference signals ru, ry, and r. If you define a custom dynamic system, ru and ry must be the first two elements of the Signal Parameters Array, respectively. You can define custom reference signals starting with the third element.

Examples

Refer to the following VIs for examples of using the SIM Construct Default System VI:

  • PID Design for Second Order Continuous System VI: labview\examples\Control and Simulation\Simulation\Optimal Control Design
  • PID Design for Second Order Discrete System VI: labview\examples\Control and Simulation\Simulation\Optimal Control Design

Log in to get a better experience