Integrates the input using forward rectangular (Euler) integration, backward rectangular (Euler) integration, or trapezoidal integration. Details Example
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description |
|---|---|
| Polymorphic instance | Specifies whether this function is Scalar or Vector. The default value is Scalar. |
| Execution Mode | Configures the function to be either a Direct or Indirect feedthrough function. Enable this control by selecting a parameter from the Parameters list and then selecting Terminal from the Parameter source pull-down list. If you select Configuration Dialog Box from the Parameter source pull-down list, LabVIEW disables this control and calculates the feedthrough behavior automatically.
Refer to the Details section for a description of the parameters that determine the feedthrough behavior of this function. |
| Parameters | Lists all the parameters associated with this function. Select a parameter from this list to configure the parameter. When you select a parameter, the parameter and its associated Parameter source control appear in the Parameter Information section of the configuration dialog box. |
| Preview | Displays a graphical preview, if available, of the function output or configuration. |
| Parameter Information | Contains the parameters you can configure for this function. You must select a parameter from the Parameters list to make that parameter and its associated Parameter source control visible in the Parameter Information section of the configuration dialog box. |
| Parameter source | Specifies whether you configure this parameter using the Configuration Dialog Box or a Terminal on the simulation diagram. The default value is Configuration Dialog Box. If you select Terminal, LabVIEW displays an input for that parameter on the simulation diagram, and you can wire values to that input to configure this function programmatically. If you select Configuration Dialog Box, LabVIEW removes that input from the simulation diagram. You then must set the value for this parameter inside the configuration dialog box. |
| sample period (sec) | Specifies the length of the discrete time step, in seconds, of this function. If you enter a value of –1, this function inherits the discrete time step you specify for the simulation diagram. Otherwise, the value of sample period (sec) must be a multiple of the discrete time step you specify for the simulation diagram. The default value of sample period (sec) is 1. |
| sample skew (sec) | Specifies the length of time by which you want to delay the execution of this function. The default value is 0. The value of this parameter must satisfy the following relationship:
0 ≤ sample skew (sec) ≤ sample period (sec) |
| discrete integrator | Specifies the discrete integration method this function uses. You can choose from the following options:
Refer to the Details section for information about how these options affect the feedthrough behavior of this function. |
| limit type | Specifies the limit behavior of the integral. You can choose from the following options:
|
| lower limit | Specifies the lower limit of the output. The LabVIEW Simulation Module uses this parameter only if you set limit type to lower or both. The default value of lower limit is 0. |
| upper limit | Specifies the upper limit of the output. The Simulation Module uses this parameter only if you set limit type to upper or both. The default value of upper limit is 0. |
| initial condition | Specifies the initial output of the integrator on the first time step. The default value is 0. |
| Parameter | Description |
|---|---|
| sample period (sec) | Specifies the length of the discrete time step, in seconds, of this function. If you enter a value of –1, this function inherits the discrete time step you specify for the simulation diagram. Otherwise, the value of sample period (sec) must be a multiple of the discrete time step you specify for the simulation diagram. The default value of sample period (sec) is 1. |
| sample skew (sec) | Specifies the length of time by which you want to delay the execution of this function. The default value is 0. The value of this parameter must satisfy the following relationship:
0 ≤ sample skew (sec) ≤ sample period (sec) |
| discrete integrator | Specifies the discrete integration method this function uses. You can choose from the following options:
Refer to the Details section for information about how these options affect the feedthrough behavior of this function. |
| limit type | Specifies the limit behavior of the integral. You can choose from the following options:
|
| lower limit | Specifies the lower limit of the output. The LabVIEW Simulation Module uses this parameter only if you set limit type to lower or both. The default value of lower limit is 0. |
| upper limit | Specifies the upper limit of the output. The Simulation Module uses this parameter only if you set limit type to upper or both. The default value of upper limit is 0. |
| initial condition | Specifies the initial output of the integrator on the first time step. The default value is 0. |
| input | Specifies the input to the system. |
| Parameter | Description |
|---|---|
| output | Returns the integral of the input signal over time. This integral also is the state value. |
This function uses the following equations to calculate the output:
Forward Rectangular (Euler) Integration:
y(tk) = u(tk – 1) * T + y(tk – 1)
Backward Rectangular (Euler) Integration:
y(tk) = u(tk) * T + y(tk – 1)
Trapezoidal Integration:

| where | u is the input |
| tk = initial time + sample skew (sec) + k * sample period (sec), for k = 0, 1, 2, … | |
| t is the current simulation time | |
| y is the output | |
| T is the sample period (sec) of this function |
When you select the Vector instance of this function, the input and output parameters must be the same size as the initial condition parameter.
All other Discrete Integrator function parameters must be either the same size as the initial condition parameter or of size one. If the parameter array is of size one, the function assumes that array[i] equals array[0] for all values of i.
The value you specify for the discrete integrator parameter determines the feedthrough behavior of this function.
When you use the configuration dialog box to specify a value for the discrete integrator parameter, LabVIEW verifies that the feedthrough behavior is correct. For example, if you set the Execution Mode parameter to Indirect, and you set the value of the discrete integrator parameter to trapezoidal, LabVIEW changes the Execution Mode parameter to Direct.
If you specify a value for the discrete integrator parameter programmatically by wiring values to the parameter terminals, LabVIEW does not adjust the feedthrough behavior for you. You must ensure that you specify the proper feedthrough behavior for the value of the discrete integrator parameter that you specify.
Refer to the discrete integrator VI in the labview\examples\simulation\Getting Started\Discrete Linear directory for an example of using the Discrete Integrator VI.