Owning Palette: Accumulate & Collect Function Blocks
Requires: RT Module
Accumulates input elements into a bounded array. This function block adds input elements to collected data as long as enable is TRUE and full is FALSE.
Use the array size input to specify the size of the array.
| 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. |
| reset | Clears all outputs and internal states of the function block. |
| array size | Specifies the size of the collected data array. |
| input | Specifies the data point to add to the collected data array. |
| 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. |
| 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 | collected data is the array that collects the input points. |