NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

operator interface station globals access

Solved!
Go to solution
Hello,
 
i need help by accessing the station globals from TestStand in the operator interface Smiley Surprised. How can display and manipulate station globals in the operator interface (LabView Version) Smiley Indifferent.
 
thankyou  Smiley Happy
 
Schwede
 
 
0 Kudos
Message 1 of 7
(4,996 Views)

You can access the station globals from ApplicationMgr.GetEngine().Globals.

You can use PropertyObject methods via the Get Property Value and Set Property Value VIs to get and set variable values.  Display the values in whichever LabVIEW front panel control is most appropriate.

Note that there is no prebuilt control that replicates the tree/list view variable display in the sequence editor.

0 Kudos
Message 2 of 7
(4,988 Views)

Thanks for your answer,

i have tried it, but i can`t connect the IApplicationMgr.GetEngine to Get Property Value and Set Property Value VIs. What is wrong? Can somebody send me some examples?

 

Thankyou

 

Schwede

0 Kudos
Message 3 of 7
(4,970 Views)
You can't use Get Property Value and Set Property Value VIs on the globals-object because the VIs are using the SequenceContext-object to set the values.

Instead use the Globals.SetValVariant and Globals.GetValVariant methods to get and set values in TestStand
Message 4 of 7
(4,965 Views)
Solution
Accepted by topic author Schwede

Hi,

 

I have attached a sample vi for your reference- i have not closed any of the references. Please close it appropriately.

 

Thank you,

Sasi

Message 5 of 7
(4,960 Views)

Smiley Very Happy

That´s great! Thankyou!

One more question: how can i display this informations (string) in the status bar. In the standard OI it is made with caption source and i want to use the standard status bar and insert my informations from the station globals.

 

greetings

 

Schwede 

0 Kudos
Message 6 of 7
(4,956 Views)
Hi,
 
I  am new to test stand and I want to access the TestStand local and global variables from either the simple OI or full featured OI.  Attaching the Accesing Station Globals.vi file to my timeout case of event structure does not give any output. Is this code supposed to display the Last User Name on the front panel.
Any help with accessing the local/global variables will be greatly appereciated Smiley Happy

~Sambit~
0 Kudos
Message 7 of 7
(4,738 Views)