LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I make a VI that's runnable on cmd.exe?

Solved!
Go to solution

I want to make a VI that accepts command line arguments and prints out the result on stdout.

 

I also want it to be runnable on cmd.exe.

 

I want such a command as "A.vi arg1 arg2 arg3" to produce some texts on stdout.

 

Is it possible?

0 Kudos
Message 1 of 5
(2,174 Views)

Hi

 

 

You can use some ideas from the following link http://digital.ni.com/public.nsf/allkb/17C3AD70493CE0208625666A00763364 to pass arguments to labview.

 

Using System Exec.vi you can view the output of the command on the stdout terminal.

 

 

Regards

 

Javed

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

Also, have a look at this:-

 

getcmd.zip

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 3 of 5
(2,164 Views)

The VI is in labview version 4. Can you convert it to a later version (8 or above)?

0 Kudos
Message 4 of 5
(2,155 Views)
Solution
Accepted by topic author iCat

@iCat wrote:

I want to make a VI that accepts command line arguments and prints out the result on stdout.

 

I also want it to be runnable on cmd.exe.

 

I want such a command as "A.vi arg1 arg2 arg3" to produce some texts on stdout.

 

Is it possible?


See this post regarding using the console: http://forums.ni.com/t5/LabVIEW/Call-Library-Node-with-Console/m-p/2024248#M663187

Message 5 of 5
(2,134 Views)