NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Read station global variable from teststand simple user interface code.

Solved!
Go to solution

Hi,

 

How to read a station global variable from testsstand simple user interface code.

 

sample code would help.

 

Regards,

Anand.

0 Kudos
Message 1 of 3
(2,999 Views)
Solution
Accepted by AnandR

Assume you have a global named StationGlobals.Foo that is of type string.

 

ApplicationManager.GetEngine.Globals.GetValSring("Foo", 0).

 

Attached is an image in LabVIEW.

 

Hope this helps,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(2,984 Views)

Hi Jigg,

 

Thanks, I want to read station global variable after some specific steps run in my application sequence file. May I know which part of the state machine in simple user interface block diagram I need to include the code(you suggested).

 

The simple user interface has below states.

 

Initialize

Configure Connections

Register Event Callbacks

Start Application

Handle Events

Shutdown

Handle Errors

 

Regards,

Anand

0 Kudos
Message 3 of 3
(2,939 Views)