Owning Palette: Accumulate & Collect Function Blocks
Requires: RT Module
Calculates a trapezoidal Riemann sum to approximate the integral of input.
If you apply new values to timebase or gain while the function block runs, the new values do not take effect until you reset the function block.
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description |
|---|---|
| Inputs | Contains the following configuration options:
|
| Outputs | Contains the following configuration options:
|
| Parameter | Description |
|---|---|
| error in (no error) | Describes error conditions that occur before this node runs. |
| gain | Specifies the amount of gain to apply. The function block multiplies input by gain when calculating total. |
| timebase | Specifies the units of the time interval between successive input points. |
| reset | Clears all outputs and internal states of the function block. |
| input | Specifies the input signal for the function block to process. |
| enable | Specifies whether to process input. If enable is TRUE (default), the function block updates output terminals based on the current input. If enable is FALSE, the function block does not process input. |
| Parameter | Description |
|---|---|
| error out | Contains error information. This output provides standard error out functionality. |
| total | Returns the approximate integral of input. |