Array Fill
The Array Fill action sets the values
of an array's elements, based on an index and count, to a
specified value.
The result of the array update, the entire array with an
updated element value, is returned as a separate output
variable.
Parameter descriptions
The action provides these parameters:
Parameter | Description |
---|---|
Array Data Type | The data type of the array elements. The list of the available data types for the node. For example, BYTE, WORD, DWORD, or INT1, INT2, INT4 and so forth. |
Array Size | The total number of elements in the array. |
Input tab
Parameter | Description |
---|---|
Array | The source array (the first element)
is entered in the
Value column. The result of the Array Fill action is copied from the internal replica of the source array to the destination array. If you want to update a source array's elements directly with the value specified, then the Output tabArray parameter should be set to the same device variable as the Input tabArray parameter. |
Index
|
The starting array index element to be set. The Count parameter specifies how many elements to fill. Array indexes start at zero. |
Count
|
The number of array elements to fill
(set) with the
Value. |
Value
|
The value to be copied into the
array elements. |
Output tab
Parameter | Description |
---|---|
Array
|
Specifies the destination array that
stores the result of the Array
Fill action. The result of the Array Fill action is copied from the internal replica of the source array to the destination array. If you want to update a source array's elements directly with the value specified, then the Output tabArray parameter should be set to the same device variable as the Input tabArray parameter. |