From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,991 Views)
Solution
Accepted by topic author 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,976 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,931 Views)