ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Easy question...

Is there a way to run DOS commands from LabVIEW? I'm sure there is, but
I can't find it. I just want to execute a simple batch file (.bat).

Any ideas?

Rick
--

rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 1 of 3
(4,068 Views)
It's hidden in the communication palet (well in 5.1 it is anyhow).
Drop the 'system exec' onto your diagram and create a constant on the
'command to execute' terminal. Type in your batch file name (and path if
needed) and away you go.


Rick Nelson wrote in message <379F20FE.418BC9BE@csciences.com>...
>Is there a way to run DOS commands from LabVIEW? I'm sure there is, but
>I can't find it. I just want to execute a simple batch file (.bat).
>
>Any ideas?
>
>Rick
>--
>
>rick@csciences.com
>
>Chesapeake Sciences Corp.
>1127B Benfield Blvd Millersville, MD 21108
>
>Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
>
>
0 Kudos
Message 2 of 3
(4,068 Views)
Under "Communications" use "Exec"

Rick Nelson wrote in message <379F20FE.418BC9BE@csciences.com>...
>Is there a way to run DOS commands from LabVIEW? I'm sure there is, but
>I can't find it. I just want to execute a simple batch file (.bat).
>
>Any ideas?
>
>Rick
>--
>
>rick@csciences.com
>
>Chesapeake Sciences Corp.
>1127B Benfield Blvd Millersville, MD 21108
>
>Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
>
>
0 Kudos
Message 3 of 3
(4,068 Views)