Hi,
In my sequence I have used the Process Cleanup Callback in the SequentialModel.seq to store two commands very useful for my sequence:
RunState.Engine.StationOptions.BreakpointsEnabled = True
RunState.Engine.UnloadAllModules()
In my mind I have supposed that even if an error or an exception arise during an execution this callback will be called for sure for ensuring the releases of the Code Modules, Vi and DLL called in the sequence. Unfortunately, it doesn’t seem to work like that. What have I missed in my analysis?
Since it appears also that moving UnloadAllModules() around in the sequence does not produce the wanted effect I start reading about the command here: https://www.ni.com/docs/en-US/bundle/teststand/page/tsapiref/reftopics/engine_unloadallmodules_m.htm. Where I have found this sentence “Typically, you only call this method when no executions are running.” So what the purpose to have it as a function that can be called in a sequence during an execution? And how can I automate its use? I can think only to a vi that continuously what the execution status, but that vi can’t be lunched by the sequence so how can I manage this thing?
Thank you for the help!
Best Regards,
Zuc