NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand station globals sharing between two applications

Hi,

 

I am having two applications developed with CVI 8.5 and TestStand 2010. Both are accessing same station global variable”ESSX2_0.Aux.Status”. Please create a station global in TestStand 2010.

 

The idea is the Write application shall get the status of the Aux status control at an interval of 1 sec and updates the station global. The Display application shall read the station global and displays the value of the station global.

 

The write application is updating the station global and I can see the status in Teststand Sequence editor. But my updated value is not getting reflected to my Display application unless I restart the application. I am understanding that the status of the station global variables is taken at the time of the application start in my display application and is not getting refreshed to get the changes from external applications till we restart.

 

Please help me out so that the display application keeps looking for the updated values.

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

Hi,

 

In this thread there were 2 other ways pointed out

http://forums.ni.com/t5/NI-TestStand/passing-information-between-callbacks/m-p/1260452/highlight/tru...

 

regards

juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 3
(3,402 Views)

Station globals are not shared across processes unless you pass a reference to them across processes. There are several ways to do so. The easiest thing to do is create a TestStand sync object like a notification or queue which can transfer a reference to the station globals across processes. Or use the notification or queue directly as your communication mechanism. TestStand sync objects whose name you start with an asterisk '*' character are automatically shared across processes. You can use Engine.GetSyncManager() to get the appropriate sync manager and then use the SyncManager API. Please see the help for more details.

 

-Doug

0 Kudos
Message 3 of 3
(3,393 Views)