LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

question about system exce.vi

I got a question using System exec.VI, attached is my code, when I input "cmd /c help" in the command line, i can not get anything in the standard output, any one can tell me the reason for that, thanks.
 
Mike 
0 Kudos
Message 1 of 21
(3,719 Views)
just typing help in the command line control yielded expected results on my machine
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 21
(3,705 Views)
You can drop the cmd /c part. Several versions of Windows ago (like early WinNT) you needed that sort of explicit call to the command processor, but not now.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 21
(3,697 Views)
are there anyway I can input the command continuesly? now i can only input one command a time, i can not use a while loop,because the command prompt will apear every time. So can I modifiy it so that it is just like a command prompt embedded in Labview?
0 Kudos
Message 4 of 21
(3,696 Views)
There's an input that tells the VI to not open the command prompt window (Run Minimized?) that defaults to false. Set it to true and you should be in good shape.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 21
(3,693 Views)

I have modified the code (see attached), but it still doesnt work, it apprears that there's an error.

 

0 Kudos
Message 6 of 21
(3,690 Views)
I don't get any error as long as I send a valid command and enter that command in the string control before running the VI. What command are you sending and what kind of error do you get?
0 Kudos
Message 7 of 21
(3,687 Views)
What version of LabVIEW and what OS are you using?
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 8 of 21
(3,682 Views)
My LV version is 8.0 in WinXP.
0 Kudos
Message 9 of 21
(3,678 Views)
When I input "help" ,i can get the correct output, but when I try to enter a sub-directory like" cd Tcl", i will get the error status.
0 Kudos
Message 10 of 21
(3,672 Views)