Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

TestStand variables scope for parallel and batch model

$
0
0

Dear TestStand community!

 

I have the following problem.

 

I use the batch model. In ProcessSetup callback I initialize hardware references, and write them to FileGlobals.

 

But, when sequence is entered to MainSequence callback, and two threads start, FileGlobals are empty (I used Breakpoint and debugging tools to verify it).

 

Does it mean, that FileGlobals for Batch model have some another scope? That before MainSequence callback there is one scope of these variables, and after test sockets are initialized, new scope appears.

And, in parallel model parallel threads share same FileGlobals. But, in Batch model, it seems, that each thread have its own FileGlobals scope. Is it so, please?

 

Thanks in advance!


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>