NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract data from Teststand UI StatusBar Control

Hi Guru,

 

In Labview User Interface Full-Features, i can see that it have StatusBar function, 

i would like to know how can i extract the data from the StatusBar and show it as string indicator?

as you can see from the attachment, how can i extract the "administrator" and put it in string indicator?

Download All
0 Kudos
Message 1 of 3
(3,926 Views)

The status bar gets data from various locations.  Usually it comes in as UI messages.  However, some of it comes from the station options and in the case of "administrator" it is coming from the engine (technically a station global).

 

To get the current user in your UI you just need to simply call the Engine.CurrentUser property.  So use your engine reference and place down a property node.  Select CurrentUser as the property to get.

 

Hope this helps,

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

I guess that technically if you want to follow the true form of creating a UI you should use the UI Manager controls and connect a TestStand Label Control to the Application Manager.  Use the ConnectCaption method and CaptionSource_UserName as the captionSource.

 

Something like the attachment.

 

Cheers,

 

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