NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Scope of File Globals

Solved!
Go to solution

While using file globals to pass data to another sequence, is it necessary that called sequence has to be a subsequence of the calling sequence. In other words, if I call a sequence file that is not a subsequence within my calling sequence, will the called sequence be able to access the file globals of the calling sequence?

0 Kudos
Message 1 of 5
(3,408 Views)
Solution
Accepted by topic author Flamboyant

Hi,

 

FileGlobals are in scope to any sequence within the same Sequence File.

 

eg

Sequnce A and Sequence B contained in SequenceFile SF1 which has a FileGlobals FG will be in scope to both sequences.

 

whereas

Sequence A contained in SequenceFile SF1 its' FileGlobals will not be in scope to Sequence B contained in SequenceFile SF2.

 

Hope this is clear

Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,406 Views)

And also FileGlobals are "Execution local", i.e. if you are calling the same sequence from two different executions, e.g. two TestSockets in a parallel model, then you will have two distinct copies of the FileGlobals.

 

Regards

 

Peter

 

0 Kudos
Message 3 of 5
(3,400 Views)

Unless you set the property to Shared FileGlobals.

Regards
Ray Farmer
0 Kudos
Message 4 of 5
(3,379 Views)

Yes, right, forgot that.

 

Peter

0 Kudos
Message 5 of 5
(3,377 Views)