NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using IEngine.UnloadAllModules to unload Labview

Hi,

I currently have a problem with a DLL I'm using.  The problem with the DLL is understood but as it is from a 3rd party vendor it can't be fixed.

The DLL is called from TestStand, via a labview VI.  If the DLL returns an error, it needs to unloaded from memory - either by closing Labview or by selecting "File->Unload All Modules".

I have included a ActiveX step in the cleanup of the sequence which will call Iengine.UnloadAllModules().  This appears to work for this case but is this safe, i.e. affect database/report generation or any other known issues?

I've attached example code, if it helps.

Message Edited by SandmanUK on 02-08-2006 02:34 PM

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 1 of 3
(3,389 Views)
Hi Charlie,

That kind of step in cleanup is fine as long as it is the last step executed. Alternatively you can set the specific step that uses that dll to Unload after step executes. This setting can be found under the Run Options tab in the step properties. This will always unload that module after it executes whether there was an error or not.

Regards

Jon Bowers
Application Engineer
NIUK
Message 2 of 3
(3,366 Views)

Hi Jon,

Thanks for your help Smiley Happy

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 3 of 3
(3,360 Views)