NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequence Context in Simple OI

Hi,
I'm trying to access SequenceContext info in the Simple OI.vi but the data does not seem to update.
 
(I tried something like this but it only updates when Teststand shutsdown?? http://forums.ni.com/ni/board/message?board.id=330&message.id=10376&requireLogin=False)
 
Specifically, I'm trying to find the name of the current vi that is being run (the vi which is executing the curent test). I figure I couold just load the names into a local and read it from the OI.
 
Thanks.
0 Kudos
Message 1 of 5
(4,084 Views)
Hi kevmi2ca,

How exactly are you trying to access the Local variable from LabVIEW?  Are you using event callbacks as was suggested in the forum that you linked?  If you can provide more detail as to how you are going about accessing this variable, or more optimally, if you could attach your VI here, I will be more than happy to help you get this working!
0 Kudos
Message 2 of 5
(4,044 Views)

Thanks John,

I simple wanted to get all the current sequence context, specially the current Step name. I figured out a way to do it but I'm sure it wasn't the cleanest way.

0 Kudos
Message 3 of 5
(4,038 Views)
To be even more specific-- My sequences call a number of Labview tests. When A Vi is opened, I want to launch a sub-panel displaying the vi front panel on my Simpe Operator Interface. I've labled my Step Names the same as the Vi's, this way I can use the StepName to determine which vi is running.
Hope that makes sense.
0 Kudos
Message 4 of 5
(4,029 Views)
Hi kevmi2ca,

You can have the front panel of the VI that is currently being executed in TestStand appear by enabling the "Show VI Front Panel When Called" Step setting.  In TestStand 4.0, this can be found by clicking on the step you would like to have appear, select the Module tab, and then check the box next to "Show VI Front Panel When Called".  When this step is run in the future, it will display the VI front panel.

In order to retrieve the Sequence Context in the Simple OI.vi, you can connect an event callback which will allow you to retrieve the Sequence Context.  The reason you are only receiving the context at the end of execution is due to the fact that there is nothing forcing it to update in LabVIEW if you do not connect an event callback of some sort.  You can use UI Message objects to pass information between TestStand and your Operator Interface which will essentially force an event callback, and will allow you to access the current Sequence Context.  There is a knowledgebase article titled "How Can I Access Events After the Execution of Each Step in TestStand?" (http://digital.ni.com/public.nsf/allkb/7E03EDE1C2D1BA5D86257158006FC4DD) that should help point you in the correct direction.  Even though this article is for exectuing Post Step, you can easily modify the approach for any UI Message, such as executing at the beginning of each step.
Message 5 of 5
(3,965 Views)