From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

Showing results for 
Search instead for 
Did you mean: 

Labview running in TestStand creating Class not registered error when called repeatedly

Hi - I have a Labview program running in TestStand that launches another application, using automation open with an ActiveX class and pass the opened class out to a local in Test Stand.  Using that reference, I can login to the application, run some functions, then exit close the ref in Labview and set the reference to Nothing in TestStand.  Trouble is, next time the test is run, when I try the automation open, I get a class not registered error.  I end up having to close Labview and then next time, we're fine.  This happens in the dev environment and in a built application (which I exit the program to fix).  If I may have reference still open could this happen?  How can I find it?

0 Kudos
Message 1 of 4


Please try if this helps .

Goto file --> Unload all modules after your application is closed.

It will try to unload the LabVIEW before the next step executes.


You can also do it programmatically :



0 Kudos
Message 2 of 4

Yes thanks, I have tried that, but the only thing that works is to close Labview completely. (or close the built application if exe)

0 Kudos
Message 3 of 4

In addition, if I call the COM object with Visual Basic, it works fine.  What is it about Labview?  See code snippet below very basic

Download All
0 Kudos
Message 4 of 4