NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Station Globals and File Globals Scope in Sequential Model

Solved!
Go to solution

Hi,

 

[Also, as an addition to your summary of how the scoping works, File Globals have a setting option to make them shared across all executions. In the Sequence File Properties dialog you can choose All Executions Share the Same File Globals in order to get this behavior on a per sequence file basis.]

 

with regards to Shared FileGlobals, this only works when used with the Batch Process Model.

 

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 11 of 17
(4,610 Views)

Hi,

 

thank you for the information. Are you sure that it is only the batch model? I think I have successfully tested it in the Parallel Model.

Very important, though, to know that there are restrictions on using Shared FileGlobals!

 

Best regards

 

Peter Waszkewitz

0 Kudos
Message 12 of 17
(4,607 Views)

Great, that gives a way to standardize the storage of volatile, global data very well.

 

Thank you!

 

Peter

0 Kudos
Message 13 of 17
(4,606 Views)

Peter,

 

your are right its for both Batch and Parallel.

 

All Executions Share the Same File Globals—Specifies that the first execution that runs the sequence file creates a run-time copy of the global variables and initializes them to their default values. You can use this setting to share variables between multiple executions that you start with the Batch or Parallel process model. Any other execution that runs the file concurrently uses the same global variables. When the last execution that uses the file globals completes, TestStand discards the file globals.

 

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 14 of 17
(4,602 Views)

The setting All Executions Share the Same File Globals is NOT specific to, nor does it require a specific process model (it even works when you aren't using process models). That sentence in the help is just to explain a common use case.

 

Sorry if it has led to confusion.

-Doug

0 Kudos
Message 15 of 17
(4,592 Views)

Hi Doug,

 

Has this changed recently, as I have tried to use it with the Sequence Model Process and it do not work!!

 

Regards

Ray

Regards
Ray Farmer
0 Kudos
Message 16 of 17
(4,573 Views)

It's always been this way. The setting effects all executions, regardless of whether or not they were created by a process model. If you are able to reproduce a case where it does not work, please let us know.

 

-Doug

0 Kudos
Message 17 of 17
(4,560 Views)