NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Negate 2D Array

Hi All,

I have a 2D array with numbers in (Locals.numbers) that are passsed into a Labview VI to control a motor (the Labview VI attached is just a demo to try and solve the problem). This works fine as it is but I would like to send the motor in the opposite direction and thought I could use the same Array (Locals.numbers) but negate it. I can fix this in Labview (numbers Array * -1) but can't seem to find the answer in TestStand. Can this be done?

Download All
0 Kudos
Message 1 of 4
(4,209 Views)

There are similar threads http://forums.ni.com/t5/NI-TestStand/Math-operations-on-array-in-TestStand/td-p/2738060 which have no solution.

So the awnser is most problably it's not suported in teststand as a simple math operaion. Ofcourse you code do some jugeling in a parameterized subsequnce but that is not what youare looking for if I'm correct.

Would be nice hough if it did exist.

 

0 Kudos
Message 2 of 4
(4,186 Views)

OK Thanks. Looks like I'll have to create another array but with minus numbers

0 Kudos
Message 3 of 4
(4,181 Views)

Or as you stated make a LabVIEW VI which inverts the array. That would prevent making chnages in two places if (or most probably when 🙂 ) you get new requirments.

0 Kudos
Message 4 of 4
(4,179 Views)