Programming Reference / Math / Set Array


Set Array allows you to establish an Array from the Variables list of arrays.The following example will show you how to create the variable “MyArray”.

Creating an Array Variable

When you click the word “Variable” in the entry field, the Variables dialog will be displayed for you to select from. Please note: only array type variables will be displayed here. If you have other variable types, they will not be accessible to this block.

Once we click the “Create New” button, the Variable dialog appears. In this example we enter the name and select a data type, and within the red circle you’ll see the Array specification. Choosing Array here will open up additional options to configure the array.
Enter a name for the array, a data type for the values, and the structure of the array. Then update the size and select the create button. Please note: You can import and export CSV files directly from this dialog box.
After creating your array, either check the check box and press the Select button or double click the array.
The selected array within the block, it is now possible to record values in specific orders in the array.
Example of fully configured block, setting a variable value to the array’s first row, column 2.
Additionally you may choose to select your columns by name.