NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get list of loaded seq. files

Hi all.
 
How can I get af list of all loaded seq. files, I have tried with ApplicationMgr.Executions, but it only gives me the executions there is running at that moment. I have also tried with ApplicationMgr.SequenceFiles, but it seems only to work when you have used "OpenSequenceFile" to open the file.
 
What I am trying to is to make a button on my OI that can unload all seq. files from memory, so next time they are called, then they are reloaded from the file.
 
I need to use this button after I have changed something on the editor, and want to reload the seq without shutting the OI down...
 
 
So how do I get a list of all seq. loaded.
 
Kind regards Thomas
 
 
 
0 Kudos
Message 1 of 3
(2,861 Views)

Thomas,

How are you creating the references to the sequence files?
Are you using sequence call steps?
If you are using sequence call steps and you want to unload the sequence files references  you can use the Engine method:
Engine.UnloadAllModules().
You can also change the unload option for the sequence call steps to 'Unload after step execute'. (Step properties -> RunOptions).

Hope it helps.

Antonio Lie.

Message 2 of 3
(2,857 Views)
Thanks Antonio.
 
It worked very well....even that I have a "background" seq there is still running.
 
 
Kind regards Thomas
0 Kudos
Message 3 of 3
(2,841 Views)