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:
RunState.SequenceFile.Data.FileGlobalDefaults.myFileGlobal = FileGlobals.myFileGlobal
- Use Station Globals, instead.
- In SequenceFileLoad, use the following expression to set the default value of your File Global:
Note that in option 2, the default values will persist until the sequence file is closed.