03-13-2012 07:50 AM
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.
03-13-2012 07:53 AM
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
03-14-2012 01:52 PM
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.
03-29-2012 12:36 AM
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
Regards
Amit Karia
04-04-2013 03:22 PM
Hi Amit! Could you please provide the source code you were talking about?
Thanks in advance!
03-25-2014 01:13 PM
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)