NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to access data within the StationGlobals from a custom Operator Interface without a sequence running?"

I want to access station global data (LW-CVI) in a custom user interface without a sequence running.
Is is possible ? Any ideas how
0 Kudos
Message 1 of 3
(3,129 Views)
Hi,

Yes it is possible.

Using the IEngine reference get a reference to the Globals (Engine.Globals() which returns as PropertyObject ref).
Using this reference you can use the GetVal or SetVal method to access the variable you are interested in the StationGlobals. (eg ProperyObject.SetValBoolean).

Hope this hopes
Regards
Regards
Ray Farmer
0 Kudos
Message 2 of 3
(3,129 Views)
Hi ttb,

As Ray pointed out it is possible, but you may want to consider using FrontEndCallback sequences to perform TestStand engine/variable manipulation with. This is exactly how the login/logout process is done. FrontEndCallbacks give OIs an easy way to execute a sequence that is more related to UI/application operations than test operations and accessing TestStand engine/variables is quite a bit easier from within them than your OIs source as well. Look at the TestStand User Manual for more information on FrontEndCallbacks.

Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
0 Kudos
Message 3 of 3
(3,129 Views)