NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set TestStand Configuration Directory

Solved!
Go to solution

Hello Rodéric,

                    i would like to know where exactly you have used the Teststand restart vi in "operator interface vi",can u share the used callback vi and screenshots for block diagram of "operator interface vi" with Teststand restart vi. 

Thanks & Regards

Niranjan Kamble
CLAD/Teststand
0 Kudos
Message 11 of 16
(1,416 Views)

Hi,

 

I do not have access to the code right now. I may post something in a few days, but it is very similar to the previously posted code (it is more "brute strenght"). I do not use any callback to restart the engine.

 

hope this helps

Rodéric L
Certified LabVIEW Architect
0 Kudos
Message 12 of 16
(1,414 Views)

Hi,

 

It is not recommended to close and open engine references from within a sequence file as mentioned by amit.  Since the sequence execution is being managed by the engine, shutting down the engine will cause the execution to be destroyed prematurely, which can put the process in a bad state. 

 

The recommended approach to restarting the engine without closing the application would be to modify the operator interface itself. The code to do this is similar to the code provided by nskamble, but you will need to call the shutdown method on the application manager, not the engine. the application manager will handle the engine shutdown procedure automatically.  Once shut down, you can restart the application manager and continue using the TestStand engin within your user interface.  Refer to the simple OI example for an example of shutting down the application manager.

 

 

Al B.
Staff Software Engineer - TestStand
CTA/CLD
Message 13 of 16
(1,395 Views)

Thanks AI B.

 

The method you suggested worked well ! Instead of shutting down TS engine I'm now shutting down TS application manager and it really works !!

 

Let me know if any one needs the source code.

 

AI B. --> You deserve a Kudos Smiley Very Happy

 

Regards

Amit Karia

0 Kudos
Message 14 of 16
(1,381 Views)

Hi Amit! Could you please provide the source code you were talking about?

 

Thanks in advance!

0 Kudos
Message 15 of 16
(1,299 Views)

Another very simple solution is to change the TestStand Cfg location directly in the Windows registry through a .reg file.

 

By exemple :

 

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\TestStand\3.5]
"CfgLocation"="C:\\Bench\\Config\\TestStand\\Cfg"

Jean-Louis SCHRICKE
CTA - Certified TestStand Architect (2008 - 2022)
CTD - Certified TestStand Developer (2004 & 2007)
CLD - Certified LabVIEW Developer (2003 & 2005)

0 Kudos
Message 16 of 16
(1,207 Views)