Owning Palette: Accumulate & Collect
Installed With: RT Module
Accumulates numeric input elements when enable is TRUE. The collected data array contains the collection of input elements. If collected data reaches the capacity you specify using the array size input, the function block discards additional input values until you clear the function block by setting the reset input to TRUE.
| 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 function block runs. If an error occurs, the function block does not execute. |
| reset | Clears all outputs and internal states of the function block. |
| array size | Specifies the size of the collected data array. |
| 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. If error in (no error) indicates that an error occurred before this function block ran, error out contains the same error information. Otherwise, it describes the error status that this function block produces. Right click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error. |
| full | Indicates whether collected data has reached capacity by returning TRUE when points collected is greater than or equal to array size. |
| points collected | Returns the number of data values contained in collected data. |
| collected data | Returns the array that collects the input data values. |