07-02-2013 04:43 PM
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.
07-02-2013 08:26 PM
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.
07-03-2013 10:00 AM
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.
07-08-2013 09:31 AM
This should help: http://digital.ni.com/public.nsf/allkb/F970E072B4B41EF786256E30007505B2