Solution
File Global variable values will reset to their defaults between executions. When the SequenceFileLoad callback is executed, that is a different execution than when you run another sequence, and the values set in SequenceFileLoad will not persist. Here are a couple of potential solutions:
- Use Station Globals, instead.
- In SequenceFileLoad, use the following expression to set the default value of your File Global:
RunState.SequenceFile.Data.FileGlobalDefaults.myFileGlobal = FileGlobals.myFileGlobalNote that in option 2, the default values will persist until the sequence file is closed.