NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to apply Property Loader to all sequences in the Sequence File?

HI,
 
I'm following the help instructions for the Property Loader and it states....
 
Use Current Sequence File—Selects the file where the step is located.
 
  • Sequence—Specifies the name of the sequence into which to import variables and properties. The specified sequence must exist in the specified sequence file. Select the <ALL SEQUENCES> tag from the drop-down list to instruct TestStand to import variables and properties for all of the sequences in the specified sequence file. You must specify a valid sequence name for the step to work properly.
  • In my specific sequence file I added the Callbacks:  SequenceFileLoad, SequenceFileUnload, PreUUT. In addition to that, my MainSequence is calling 2 subsequences.

    I put the propertyLoader step (setting few values of the SequenceFileGlobals) in the setup section of the SequenceFileLoad, checked the 'Use Current Sequence File' and selected ALL SEQUENCES tag in the 'Sequence' option.  I verified that it does what I wanted.  Then, is it entered the PreUUT subsequnce, the values returned to the "original" values.

     

    Is that a bug?

    If not, how do I use the PropertyLoader in a sequenceFile that include several subsequences as well as Callback sequences.

     

    Thanks

    Rafi

     

     

     

    0 Kudos
    Message 1 of 7
    (3,326 Views)

    Rafi,

    I am assuming you are using TestStand 3.1 or higher.
    I am not sure if I understand your problem.
    Are the subsequences in the same sequence file?
    Could you reproduce the behavior in a simple sequence file and attach it to your post?

    Best Regards.

    0 Kudos
    Message 2 of 7
    (3,317 Views)

    I forgot to mention....it is TS 3.5.

    As per your questions-- yes they all in the same sequence file. 

         mySeqFile.seq
               SequenceFileLoad
           

     

    0 Kudos
    Message 3 of 7
    (3,310 Views)

    I forgot to mention....it is TS 3.5.

    As per your questions-- yes they all in the same sequence file. 

         mySeqFile.seq
               SequenceFileLoad
              SdequnceFileUnload

     

    0 Kudos
    Message 4 of 7
    (3,311 Views)

    I forgot to mention....it is TS 3.5.

    As per your questions-- yes they all in the same sequence file. 

         mySeqFile.seq
               SequenceFileLoad
               SdequnceFileUnload

     

    0 Kudos
    Message 5 of 7
    (3,312 Views)
    Ooops, sorry about that...
     
     

    I forgot to mention....it is TS 3.5.

    As per your questions-- yes they all in the same sequence file. 

         mySeqFile.seq
               SequenceFileLoad
               SdequnceFileUnload
               PreUUT
               Seq1
               Seq2

    AS I said....I put the property loader in the setup of the SequenceFileLoad,  I see that it works properly in that subsequence.  Then, after the SuequenceFileLoad is finished, I do Ctl+F5 for Test UUT's.  I put a breakpoint in the first step of the preUUT subsequence and check the context.  I notice that the variables in the FileGlobals to whom the property loader writes, have been changed back to the original values.

    I'll try to create a simple program to duplicate it but it may take me time as this test station is very busy.

    Thanks

    Rafi

     

    0 Kudos
    Message 6 of 7
    (3,310 Views)
    Rafi,

    Try to use the Property Loader step in the Setup step group of your MainSequence instead of in the SequenceFileLoad sequence.  This thread explains why the FileGlobals are reset after the SequenceFileLoad sequence completes:

    http://forums.ni.com/ni/board/message?board.id=330&message.id=9324

    Thanks,

    Tyler T
    0 Kudos
    Message 7 of 7
    (3,288 Views)