11-07-2017 01:40 AM
Hi everyone,
I have an automated test system which is using Veristand 2016, LabVIEW 2016, and Teststand 2016. The following automation scenario runs without any issue:
The issue comes when user incidentally open system definition of the same project. My test framework can't acknowledge if system definition of the same project is opened. It just wait until user realize that and close system definition manually.
What i want to have is:
To all NI Veristand expert.. is it possible to have poin #1 ?
Thanks and regards,
Rajamodol
11-09-2017 07:26 AM
That's more like a security feature that you are facing If the SysExplorer is opened (from a project) the NIVS gateway is going to wait until it's closed in case modifications are made to the Sys Def file.
There is no function or tool in my mind that checks that state, but you can certainly use the brute force to achieve the sanity check you're looking for. Search for the System Explorer.exe process in the Windows task list and prompt the user to close it if it's opened before trying to deploy the definition file.
Look around for examples
http://digital.ni.com/public.nsf/allkb/5447A43D84C54E778625788D003A8A36
https://forums.ni.com/t5/LabVIEW/How-can-i-get-get-the-process-list-Windows/td-p/267084
And there are more examples using .NET and Windows API functions.
Eric M. - Senior Software Engineer
Certified LabVIEW Architect - Certified LabVIEW Embedded Systems Developer - Certified LabWindows™/CVI Developer
Neosoft Technologies inc.