FileGlobalsScope Property

TestStand 2017 Help

Edition Date: November 2017

Part Number: 370052W-01

»View Product Info

Download Help (Windows Only)
NI TestStand 2014 Help
NI TestStand 2014 SP1 Help
TestStand 2016 Help
TestStand 2016 SP1 Help
TestStand 2017 Help

Syntax

SequenceFile.FileGlobalsScope

Data Type

FileGlobalsScopeOptions

Use the following constants with this data type:

  • FileGlobalsScopeOption_AllExecutionsShare–(Value: 1) Specifies that the first execution that runs the sequence file creates a run-time copy of the global variables and initializes the variables to the default values. Any other execution that runs the sequence file concurrently uses the same global variables. When the last execution that uses the sequence file global variables completes, TestStand discards the file global variables. A common use case for selecting this option might be when you want to share variables among multiple executions you start with the Batch or Parallel process model.
  • FileGlobalsScopeOption_SeparateForEachExecution–(Value: 0) Specifies that each execution that runs the sequence file creates a separate run-time copy of the global variables and initializes the variables to the default values. Threads within an execution share the run-time copy of the variables for the execution.

Purpose

Specifies the lifetime of the sequence file global variables and whether multiple executions share the sequence file global variable values.

Remarks

If a sequence file unloads from memory and an execution later reloads the sequence file, the execution creates a new run-time copy of the file global variables and initializes the variables to the default values.


See Also

SequenceContext.FileGlobals

SequenceFile.FileGlobalsDefaultValues

WAS THIS ARTICLE HELPFUL?

Not Helpful