NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Share variables between independent sequences

Hello,

I would like ask if is possible to share some variable between two independent sequences?

 

In one sequence I create an Object reference (C# .net object) and sometimes I would like to have an access to exactly this Object from the second independent sequence or from somewhere else. 

Can I do it somehow? 

 

Thank you 

Pavol

0 Kudos
Message 1 of 3
(842 Views)

Station Globals are the easiest way to do this.  I'm not sure what you mean by independent though?  You mean they are different threads or different executions?

 

Generally I recommend against Station Globals, only because they can cause more headache than they are worth and you also get race conditions.  

 

Another options is to use TestStand Queues.  You can name them with a * at the beginning and they will be shared across processes and executions.  I would be hesitant to pass an object reference around in a queue though, unless you know what you are doing.

 

Hope this helps,

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

Thank you a lot. 

I know that the Station Globals is usable, I will have a lot of the objects, so I tried to find an another way. 

I will look on the TestStand Queues as you mention.

 

 Thank you

0 Kudos
Message 3 of 3
(793 Views)