NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

multi-executions and updating variables

Hi everybody,

 

I’m discovering NI multithreading, what a pleasure xD

I have an issue :

I have multiple identicals test bench running into parallels executions (using Sequnce call "use new execution").

Capture d'écran 2025-12-04 112820.png

BUT I need to log some informations, and for that I need to handle filewriting access.

I wanted to use a FileGlobals variable for that, but they are differents from one execution to an other.

So, I wanted to use Parameters passed by reference, but variable update still not working.

 

I could use a StationGlobals variable, but seems not really clean to me (maybe cause I started coding with embedded C, and I have a "DO NOT USE GLOBALS" issue xD)

 

Have you some recommandations for "threadsafe through multi-executions" variable handling in this context ?

 

Thx a lot !

0 Kudos
Message 1 of 4
(158 Views)

You ca configure FileGlobals to be shared in the SequenceFile settings.

 

Yet, if this is not really very much cleaner than using StationGlobals.

 

The clean way IMHO could be setting up an execution which actually performs the file handling and all other executions throwing data at it using a Queue.

0 Kudos
Message 2 of 4
(142 Views)

How can you configure FileGlobals to be shared ? I never heard about that.

 

I’m already using a queue to feed the logfile into a parallel execution.

But I’m encounting an issue to transmit variables for an execution to an other…

0 Kudos
Message 3 of 4
(119 Views)

Oli_Wachno_0-1764912007812.png

 

 

Which transfer mechanism do you use to pass variables between executions?

0 Kudos
Message 4 of 4
(107 Views)