Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 68861

Using System exec.vi to run devcon and wait for a device to be seen by device manager

$
0
0

I am running devcon with System exec.vi and using the "standard output" to read the response, but the trouble is, it works fine when I run cmd as an administrator manually and I can read the output, but when I run the same command with labview system exec.vi , devcon seems to open another cmd window and runs in it and then close quickly resulting in a blank output. I don't know how to run cmd as an administrator pragmatically.

I would appreciate if someone has an example code of running devcon with system exec.vi and getting a response in the  "standard output" to be used to make a decision using labview.


Viewing all articles
Browse latest Browse all 68861

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>