LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to give command to the command prompt.

Solved!
Go to solution

I have tried to give command in both standard input and command line inputs of system exec.vi that work on directory specified in working directory input. But  I am unable to compile the command. I followed the tutorial given in below link...

How Do I Execute a Windows Command in LabVIEW? - National Instruments.

Can anyone suggest me what to do?

 

0 Kudos
Message 1 of 5
(2,799 Views)
Solution
Accepted by kimhyun

You did not quite follow the instructions since you are not sending a \r\n. You aren't sending even a \r though you probably think you are. Change the constant to '\' Code Display. It works for me when I remove the working directory path since I do not have those folders.

0 Kudos
Message 2 of 5
(2,786 Views)

By sending termination characters also, its not working for me.

0 Kudos
Message 3 of 5
(2,768 Views)

You are still in normal display which means you are sending a backslash then an "r".

 

You didn't follow Dennis' directions about changing your constant to \ display.

0 Kudos
Message 4 of 5
(2,763 Views)

I got it. Changed the display now. Thanks for your suggestions...

0 Kudos
Message 5 of 5
(2,760 Views)