02-12-2014 10:25 PM
Hi.
I have 2 questions
1. Is it possible to multiply an array by a number in TestStand?
I know there are some numeric functions available in TestStand but I don't know if like LabVIEW I can multiple ( subtract/add/divide...) all the elements of an array by a number
2. Let's say I want to pass a 1D array of numbers ( size 10) to a code module but I would like to just pass the first 5 elements . How can I do it in TestStand ? I have checked the array function but I couldn't find something like Array Subset?
Could you please help me with these question
02-13-2014 08:10 AM
In TS 2012 and later they added some new array functions such as Min, Max, Split, Sort, etc... They also added the ability to do Locals.MyArray[4..8]. Which will give you elements 4 through 8 of the 0 indexed array.
As for the adding to each number I don't think that capability exists. If it did it would be something like Locals.MyArray + 100. It defnitely doesn't work in TS 2010.
Hope this helps,