To download NI software, including the products shown below, visit ni.com/downloads.
This example demonstrates various methods of using the TestStand expression language to resize arrays and populate all elements of the array with an initial value.
TestStand allows you to define array variables which are initially empty. In some cases, you may want to programmatically set the size and dimensions of the array, as well as assign an initial value to all elements of the array. The TestStand expression language includes a set of array functions that can be used to perform these operations.
The example demonstrates the following techniques for performing these tasks:
Initialize Arrays_NIVerified.zip
TestStand 2010 or Compatible
Initialize Arrays Legacy_NIVerified.zip
TestStand 2.0 or Compatible
LabVIEW Development System 5.1.1 or Compatible
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.