01-18-2010 01:09 AM
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
01-18-2010 02:42 AM
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
01-18-2010 03:00 AM
Great, that gives a way to standardize the storage of volatile, global data very well.
Thank you!
Peter
01-18-2010 05:11 AM
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
01-18-2010 09:52 AM
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
01-19-2010 12:58 AM
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
01-19-2010 10:44 AM
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