07-19-2017 10:01 AM
I am trying to unload all modules inside TestStand at the end of my sequence.
I want to do it using code and not manually doing it. But when I write in
RunState.Engine.UnloadAllModules() and run the program. It works properly but when running it the second time, I get an error saying "Error calling sequence |V|Driver"
Is there a reason for this or another way to unload all modules?
07-19-2017 10:31 PM
Hi, you could try UnloadAllModules Method
Syntax
Engine.UnloadAllModules
Purpose
Unloads all code modules associated with steps, step types, and substeps.
Remarks
Call this method to force all modules to be unloaded and then reloaded when they are next called so you can rebuild DLLs and other code modules. This method also unloads the station model sequence file. Typically, you only call this method when no executions are running.
07-20-2017 03:24 AM
Hi,
You are able to specify loading options for Sequence Files as a whole. In the Sequence File Properties dialog there is a drop down for steps to unload when the sequence finishes execution. This might be easier than having an API call in your sequence.
You can also specify the Loading option, so when it runs again you can have it preload all steps when it begins.
Is this method an option for you?
Nico