NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Closing/Releasing VIs From TestStand

Hi Everyone,
 
    I have a (hopefully) simple question. I'm working on an automated test system and everything is working great , modbus, activex, excel, yadayada, file I/o,etc (i luv teststand/labview!). However, When my TestStand codes finishes it doesn't release the VIs it called in the sequences.
 
Question:
Is there a way to close/release the VIs from TestStand upon completion of the sequence (within TestStand)? It's not major issue, but it is a little annoying!
 
I'm using TestStand 3.1 & Labview 7.1
 
Thanks,
BK
0 Kudos
Message 1 of 4
(3,074 Views)

Hi,

Usually teststand releases the steps when it unloads the sequence file.

You can change this property for individual steps by selecting the step and selecting the Properties...

Select the Runtime Tab, you will find some drop down controls which define the action to take when loading and unloading a step.

Hope this helps

Regards

Ray Farmer

 

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,063 Views)
Hi BK,

As Ray said usually code modules (VIs) are unloaded when the sequence file is unloaded.  If you want to manually unload code modules, there is a method called UnloadAllModules that can be called from the engine, sequencefile, sequence, or step.  Have a good one!
Pat P.
Software Engineer
National Instruments
0 Kudos
Message 3 of 4
(3,038 Views)

Hey Guys,

    Excellent! that's exactly what I was looking for! For some reason TS wasn't unloading my Vis ( but just for one sequence call, weird?), but the UnloadModule works exactly like I need it to.

Thanks Again,

BK

0 Kudos
Message 4 of 4
(3,033 Views)