NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error while accessing station global in LabVIEW

I am trying to access the teststand station global value in the LabVIEW using activex methods.

If I am reading default station global (TS.LastUserName) i am able to read the value.

However if i am trying to read the value of the string station global which i am updating through running sequence i am getting an error as follows:

 

"Unknown variable or property name 'ExecutionTime'.
Error accessing item 'ExecutionTime'. in GetGlobal.vi" where ExecutionTime is the name of my station global.

Error code is -17306.

 

What is going wrong?

 

0 Kudos
Message 1 of 2
(3,131 Views)

Couple of suggestions for you:

If you are trying to read the execution time in your user interface, I suggest: http://zone.ni.com/reference/en-XX/help/370052K-01/tsapiref/reftopics/obsolete_thread_postuimessage_... method to pass data to UI

Also, station globals are not dynamic like other variables (Locals / FileGlobals etc) which means that you wont get an updated value until the stationglobals.ini file is saved. So depending on what you are trying to read, this may or may not be your best choice.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 2
(3,116 Views)