06-22-2016 11:36 AM
I had been using system exec.vi the last few weeks to send commands to the command prompt and then bring the output back into labview. All of a sudden this week the vi is not working and I cannot even get an output from system exec.vi when i send the same commands that I have sent before. I was wondering if there was any other way to send & recieve commands from the cmd prompt in labview without having to use system exec?
Solved! Go to Solution.
06-22-2016 12:11 PM
What happens if you send the command thru Windows interface? Does it behave in the same manner?
06-22-2016 02:43 PM
Are you asking if I sent them directly into the command prompt? I send the exact same commands directly into the command prompt and they work just fine. That is the part that I do not understand? Last week it was working and then at the start of this week, the commands do not work through the labview vi but they still work if i manually enter them directly into the command prompt...
06-22-2016 02:54 PM
Sounds like your computer had a case of the Monday's.
Can you share the code that makes the system call? Are you calling custom code, Windows function, etc? Was their an update over the weekend that may have affected the call?
06-22-2016 02:55 PM - edited 06-22-2016 02:55 PM
@KovAcevich7 wrote:Are you asking if I sent them directly into the command prompt? I send the exact same commands directly into the command prompt and they work just fine. That is the part that I do not understand? Last week it was working and then at the start of this week, the commands do not work through the labview vi but they still work if i manually enter them directly into the command prompt...
What exactly are the commands and how exactly are you sending them to the systemexec?
Please attach your code
06-22-2016 03:02 PM
attached below is the problem area for my code. I am connecting a wifi module to a host network that I created and comparing the mac addresses to confirm that the module connects to wifi. sending that command in the vi calls up an app, wifi1vc that connects my module to the network. this works in the command prompt directly and it should work by doing it this way with labview (and it did just last week!) but it is not right now and I am pulling my hair out.
06-22-2016 03:11 PM - edited 06-22-2016 03:11 PM
You don't have a path in your command line. Is the command you are calling in your default path?
06-22-2016 03:24 PM
yes.
06-22-2016 03:25 PM
you have
cmd c/ wifi1vc COM12 edwtest sentine
shoulden't it be
cmd /c wifi1vc COM12 edwtest sentine
06-22-2016 03:26 PM
Also you call out Com12, has the device possibly moved to another COM port?