NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

how to access file globals of a sequence file from within a different sequence file

I have a SeqA.seq with a number of subsequences that I access by checking the "Use Current File" box.  However, we had developers creating two other sequence files (B, C).  SeqA is the primary sequence file and calls SeqB and SeqC (as part of its Setup stage).  SeqB performs a number of RF Normalization tests that store path loss information in file globals (within SeqB.seq).  My question - Can SeqA.seq access the file globals within SeqB.seq?  If so, how is that accomplished?  I don't want to have to embed SeqB inside of SeqA if I don't have to.

0 Kudos
Message 1 of 4
(4,492 Views)

Take a look at the following API:

 

Execution.GetFileGlobals ( sequenceFileParam)

 

Returns a PropertyObject that contains the file globals for the particular sequence file you pass as the sequenceFileParam parameter. It returns the run-time copy of the file globals. If a run-time copy has not yet been created, a new one is created and returned.

 

Scott Richardson
https://testeract.com
0 Kudos
Message 2 of 4
(4,489 Views)

ok, so tell me if I'm on the right track.  I created a File Global (it's an object reference called RfNormParams and I use it in the main sequence file in a statement shown below

 

FileGlobals

.RfNormParams = RunState.Execution.GetFileGlobals (RunState.Engine.GetSequenceFileEx ("Z:\452_tps\SequenceFiles\RFNormalization_CCA.seq",((GetSeqFile_FindFile | GetSeqFile_PreloadModules | GetSeqFile_SearchCurrentDir)), ConflictHandler_Prompt))

 

So I thought I could now just access some of the parameters by just saying FileGlobals.RfNormParams.SomeFileGlobalInsideOtherSeqFile

 

It doesn't seem to be that easy.  Do I have to use something like "AsExpression"?  I'm just not sure how to proceed.  I have quite a few file globals to access, so I'm hoping it's not too cumbersome.

0 Kudos
Message 3 of 4
(4,471 Views)

This should help: http://digital.ni.com/public.nsf/allkb/F970E072B4B41EF786256E30007505B2

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(4,429 Views)