NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem by Message Popup Teststand

Solved!
Go to solution

sonnyanderson wrote:

forgiveness is that you can explain to me how you doing? that is what you used? and why ? please


max(x,y) returns the maximum value in the list.  Since ButtonHit is default to 0 before actually running, you have an index of 0-1 = -1.  This is an invalid index for the array we made.  So by using the max() function, I insured that the minmum value that can used to index our array is 0.

 

So let's step through the evaluation.  Before running, ButtonHit = 0.  max(ButtonHit-1,0) = max(0-1,0) = max(-1,0) = 0.  Hey, 0 is a valid index.  Therefore the analyzer doesn't yell at you.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 21 of 22
(1,319 Views)

The other possible way to circumvent the warning popup is to disable the sequence analyzer before execution of the sequence.

You can do this by clicking on the marked symbol in the icon bar that it also displayes the red "x" top right as seen here:

SequenceAnalyzer.PNG

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 22 of 22
(1,317 Views)