NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding two array in teststand

Need to add two array in teststand locals. Array A need to plus ArrayB -1. I can get GetNumElements(ArrayA) to get max elements.Using a for loop to nest between 0 to 8. Teststand explains there is error, out of bounds, because teststand array stands from zero but when execution everything works.

How to stop the prompt? Or how to get the elements without minus one. Is there a function offsetToIndex(array,offset) which return the elements in the array

0 Kudos
Message 1 of 2
(760 Views)

If you want to ignore something, you can use a #NoValidation() flag. Just wrap the statement that is giving you issues with a #NoValidation. This makes it not error when the sequence loads, or when you run the sequence analyzer. It may still error in runtime though.

ShockHouse_0-1656539418419.png

 

0 Kudos
Message 2 of 2
(739 Views)