From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Math operations on array in TestStand

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

 

0 Kudos
Message 1 of 2
(5,912 Views)

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,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 2
(5,886 Views)