LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error accessing Sequence Parameters in UI from Testand

Hello,

 

I have modified a UI in LV to run a testing sequence in Teststand. The sequence runs fine and the report gets made too but I am having a tough time getting some indicators on the UI to change depending on where the program is in the execution of this sequence file. If i am to run the program with the lightbulb I'll see that I get error 97 when I try to access the values which I wish to continuously query (err 97 means a previously used refnum was deleted). I'm guessing that the issue is that I haven't properly set up the "Sequence Context Refnum" or I simply am trying to query it at the wrong point in the LV execution. 

 

Any help would be appreciated and thanks in advance!

 

Sebastian

 

problem getting boolean values.png

0 Kudos
Message 1 of 5
(3,312 Views)
I don't understand and your image does not help. The recommended way is to use UI messages and you aren't doing that at all.
0 Kudos
Message 2 of 5
(3,293 Views)

Sorry Dennis for not being clear. I am using the "simple UI" given as a user interface in the Teststand public docs linked here and I wanted to modify it such that an LED would light up on the front panel after each subsequence got executed in a sequence file that I always call.

 

In my sequence I have a set of local variables with their respective names being: Locals.Done_Gen_Test, Locals.Done_T2, Locals.Done_T3 and Locals.Done_MasterTest each representing their own subsequence. When each one of those subsequences is called those boolean values I just mentioned change to true (from their default false).

 

What I am wondering is can this be accomplished with the simple UI, how can I implement this/ what am I doing wrong?

 

Regards,

 

Sebastian Fiorini

0 Kudos
Message 3 of 5
(3,277 Views)
I don't have TestStand installed right now but I'm pretty certain you have the Read of the locals in the wrong place and like I said, you should be using the UI message to pass data from the sequence to the user interface.
Message 4 of 5
(3,257 Views)

Although you didnt say much if I followed a tutorial (loosely) on ui messages and was able to create events to solve exactly this, thanks so much den!

0 Kudos
Message 5 of 5
(3,235 Views)