I am currently writing a piece of functional test software that confirms basic functionality of a programmed module.
Confirmation of the programming will be done by finding the module in the device manager. With the program, I would like to use the system exec VI with a command line prompt. The prompt used is
wmic path win32_pnpentity where name="Kohler Multilink Lite Module"
When the device is plugged in and is programmed properly, the command line returns a long string that displays the information on the device. When is it not plugged in, it returns "No Instance(s) available."
Currently, the VI does not return what I had hoped.
My current block diagram to get this to work is attached, along with the output from System Exec. Can someone point me in the right direction?
Solved! Go to Solution.
It works just fine for me. Make sure to wire the command line with the command to execute. And use the standard error output which outputs you the error information if the device has not been found.
Well that's odd. I've wired in the error to view that as well and no matter what, it kicks back "No instances found." The standard output does not give a string either.
I also did it again on the command prompt and it works without issue. I wonder what I could be missing.