With the release of TestStand 2012, we added a number of expression functions for manipulating arrays including Sort, FindIndex, FindOffset, Contains, IndexToOffset, OffsetToIndex, and SetElements. We also added the Split and Trim functions for handling strings and the Max and Min expression functions now support arrays. Finally, we added drag-and-drop functionality to the Variables view for arrays so elements can now be interactively inserted, deleted, moved and so on. For more details on any of these features, check the New Features section in the NI TestStand 2012 Help under What's New in TestStand>>TestStand 2012>>New Features. Thanks for your feedback and keep it coming!
Handling arrays in TestStand is pretty limiting and more often that not you have to pop into a code module to perform any sort of array handling.
The following is the default functions that can be used in expressions:
[Array GetArrayBounds(array, lower, upper) Retrieves the upper and lower bounds of an array. GetNumElements(array) Returns the number of elements in an array. InsertElements(array, index, numElements) Inserts new elements into a one-dimensional array. RemoveElements(array, index, numElements) Removes elements from a one-dimensional array. SetArrayBounds(array, lower, upper) Changes the bounds of an array. SetNumElements(array, numElements) Sets the number of elements in a one-dimensional array.
I would like to see this expanded to avoided have to resort to using code module. The following is some suggestion:
Array Subset function Array Max & Min Replace Array Subset function Search 1D Array Sort 1D Array