NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to close LV development environment from Teststand

Hi,

 

Is it possible to get Teststand (2019) to close the Labview Development Environment (2020)? I have an issue with a 3rd party DLL reference not closing correctly and my temporary work around / bodge is to close LV at the end of the Teststand sequence, but I have to do this manually.

I've tried using a LV action to call the Quit Labview vi from the Application Control palette, which works, but Teststand throws an error 'LabVIEW : VI execution terminated by the server.'

 

I found this post (link below) which suggests it can be done through ActiveX, but I cant find the correct automation server.

 

https://forums.ni.com/t5/NI-TestStand/How-can-I-exit-and-restart-LabVIEW-from-within-Teststand/td-p/...

 

Thanks in advance,

 

Al

0 Kudos
Message 1 of 5
(98 Views)

Hi, 

 

I think you will likely get the same error even when you use the ActiveX adapter. 

 

You might be able to change the LV adapter setting to use the RTE and then back to using the LV Development System using LabVIEWAdapter.SetServerInfo.

SetServerInfo Method - TestStand 2019 Help - National Instruments (ni.com)

 

Note: This will only work if you do not manually activate LV after TS launches it. Once you do that, LV will not shutdown after TS releases LV's ActiveX reference. 

 

Hope this helps. 

Regards

Anand Jain

NI

 

 

 

 

0 Kudos
Message 2 of 5
(86 Views)

Have you tried selecting the ignore runtime error option for the step that closes LV?

Message 3 of 5
(71 Views)

No I haven't, but I'll give it a go. Its probably not the best solution, but good enough for my temporary bodge job!

0 Kudos
Message 4 of 5
(63 Views)

Hi, 

I want to call out that the LV adapter will be in a bad state once the error is generated and you will have to restart the execution to call LV modules again. 

 

If you use the APIs I referenced above you can still call VIs. 

 

Regards, 

Anand Jain

NI

0 Kudos
Message 5 of 5
(60 Views)