NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Step Status from .SequenceFile.Data.

Hi,

I can read Step Status from variables:
--- ThisContext.RunState.Sequence.Main["ID#:XaK4ia5CHU6PT0S4upcb4A"].Result.Status
--- RunState.Sequence.Main["ID#:XaK4ia5CHU6PT0S4upcb4A"].Result.Status

But why I don't have same information from SequenceFile.Data variables???
--- ThisContext.RunState.SequenceFile.Data.Seq["MainSequence"].Main["ID#:XaK4ia5CHU6PT0S4upcb4A"].Result.Status
--- RunState.SequenceFile.Data.Seq["MainSequence"].Main["ID#:XaK4ia5CHU6PT0S4upcb4A"].Result.Status

From this variables I read empty strings 😞


Thx
 JCC
0 Kudos
Message 1 of 5
(3,315 Views)
The first two variables are coming from the runtime copy of your sequence.  The last two are coming from the edit time copy of your sequence, so the values are default values.  TestStand makes a copy of your sequence when it executes it to prevent multiple executions from accessing the same variables and to make sure that all variables are initialized to the same values every run.

Allen P.
NI
0 Kudos
Message 2 of 5
(3,301 Views)
Hi Allen,

thank you for reply.
I have this problem. In PreUUTLoop seqence I run LabVIEW GUI VI step in new thread.

In this GUI I want read status (Pass/Fail) of same Steps from MainSequence. How can I do this from other-LabVIEW Thread?

0 Kudos
Message 3 of 5
(3,296 Views)
Hi Allen,

If I am understanding you correctly, you'll want to pass the main sequence's context your GUI.  A great example of doing this is here:

http://zone.ni.com/devzone/cda/epd/p/id/5838

Let me know if you have any questions at all about this program and what it's doing.

Justin
0 Kudos
Message 4 of 5
(3,263 Views)
Justin,

The SequenceContext is not available when PreUUTLoop is called, so that won't work without getting a context every time a new UUT begins testing.

JCC-
What are you trying to accomplish?  Whenever you test a new UUT, do you want the dialog to reset?  If this is the case, you are going to need some type of queing for messages to the GUI to let it know when you have a new Sequence Context available.  You also need to let the GUI know when you are done testing.  It also seems inefficient to constantly be polling these properties to know if a status has changed.  You may want to send a message in the SequenceFilePostStep callback instead of polling.  You also may want to consider using an Operator Interface instead of the GUI you currently are using.  If these solutions aren't helpful enough, try to be as specific as possible in what you are trying to accomplish.

Allen P.
NI


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