NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

sequenceFileLoad dose not run in parallel Model and cannot pass fileglobals into the main sequence

Hi helper,

 

I have two questions please.

 

Please have a look the attached sequence file. In the main sequence, I have added sequenceFileLoad and sequenceFileUnload two callbacks, and have one fileglobals, FileLoadPass.

 

  1. I have added a fileglobals, FileLoadPass, so that the main sequence can check the sequenceFileLoad is OK or not before running. Although the main sequence can see the FileLoadPass, but the value of FileLoadPass will be reset after the sequenceFileLoad runs, which means, I have to use stationglobals to pass the values of variables from the sequenceFileLoad to main sequence. Do you have better way to do so?
  2. If the main sequence runs under parallel process, when I load the main sequence, the sequenceFileLoad callback will be run. The sequenceFileUnload callback will be run when I exit the main sequence. But, if I run the main sequence once, sequenceFileLoad and the sequenceFileUnload will never run again until I exit the TestStand. This problem is only happened under parallel process model, Sequential or Batch Model are all OK. Do you have any idea?

Many thanks

 

Wei

0 Kudos
Message 1 of 3
(3,015 Views)

Hi,

 

The two callbacks SequenceFileLoad and SequenceFileUnload only run when the SequenceFile is first loaded and when the SequenceFile. They do not run at any other time ie when running MainSequence or have anything to do with the execution of the MainSequence either on it's own or with the Entry Callbacks Single Pass and Test UUTs.

 

Once the two callbacks having finished running, if you are writing to FileGlobals within the Callbacks, that data will be lost as you would have been writing to the runtime version of the FileGlobals. If you what to use this data during the execution of the MainSequence then you have to change the FileGlobalsDefault values which is the static version of the FileGlobals ("RunState.SequenceFile.Data.FileGlobalDefaults") or you have to use StationGlobals.

 

 

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

Hi Ray,

 

Thank you very much for the 1st item.

 

Wei

0 Kudos
Message 3 of 3
(2,993 Views)