LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 5.0's system exec vi

Anyone know of a better VI than "exec" to run a dos program.

The problem is, that the exec vi does NOT wait for it to complete.
I can see that its being called but it doesnt allow it to finish.
The use of a wait VI did not do anything, since the dos window
is already closed at that point.

Eric


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 5
(3,658 Views)
enliteneer@mindless.com wrote:

> Anyone know of a better VI than "exec" to run a dos program.
>
> The problem is, that the exec vi does NOT wait for it to complete.
> I can see that its being called but it doesnt allow it to finish.
> The use of a wait VI did not do anything, since the dos window
> is already closed at that point.

I believe the common solution is to put it into a batch file.
The dos window should stay up until the batch file exits.
The batch file should exit when the program finishes.

This is the best I remember since I use Solaris, I dont have this problem.
Kevin Kent
To steal a tag line:
"I don't do *.bat, *.ini , or plug -n- pray. I have a SysAdmin to do all
that. I have a SUN."
0 Kudos
Message 2 of 5
(3,658 Views)
The following has been tested on NT5.0 only:

When executing something from the command line use:
C:\>cmd.exe

Using the system exec VI feed in "cmd.exe".
Then follow it with the command you want to perform. Some notes:
/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains
/? Get help on this command

Use the "|more" command to page the information.
THANK YOU
_________________________
Michael Aivaliotis
Senior Test System Design Engineer
Microsys Technologies Inc.
Tel: 905-761-5250 Ext.22

-----Original Message-----
From: enliteneer@mindless.com [mailto:enliteneer@mindless.com]
Sent: August 4, 1999 5:44 PM
To: comp.lang.labview@list.deja.com
Subject: Labview 5.0's system exec vi

Message f
rom the Deja.com forum:
comp.lang.labview
Your subscription is set to individual email delivery

Anyone know of a better VI than "exec" to run a dos program.

The problem is, that the exec vi does NOT wait for it to complete.
I can see that its being called but it doesnt allow it to finish.
The use of a wait VI did not do anything, since the dos window
is already closed at that point.

Eric


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.



_____________________________________________________________
Deja.com: Share what you know. Learn what you don't.
http://www.deja.com/
* To modify or remove your subscription, go to
http://www.deja.com/edit_sub.xp?group=comp.lang.labview
* Read this thread at
http://www.deja.com/thread/%3C7oac6b%242j6%241%40nnrp1.deja.com%3E



Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 3 of 5
(3,658 Views)
HI
Try the exec+ vi. You will find it on NI web side.
http://digital.natinst.com/explprog.nsf/75c7cd5de6d387788625663d00558a4c/ebf
11dd1f0feaef3862566790072a983?OpenDocument

"Description: These VIs make calls to the Windows API for managing and
controlling windows (minimize, maximize, move, resize, rename, close, etc.);
managing applications (run application, quit application, print file, etc.);
adding and removing network resources; keyboard filtering; and system
utilities (mouse cursor position, windows path, screen resolution, system
path, etc.). These VIs are intended for use on 32-bit Windows platforms
only."

Geir Kåre Refstie
geirkr@online.no


wrote in message
news:7oac6b$2j6$1@nnrp1.deja.com...
> Anyone know of a better VI than
"exec" to run a dos program.
>
> The problem is, that the exec vi does NOT wait for it to complete.
> I can see that its being called but it doesnt allow it to finish.
> The use of a wait VI did not do anything, since the dos window
> is already closed at that point.
>
> Eric
>
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
0 Kudos
Message 4 of 5
(3,658 Views)
HI
Try the exec+ vi. You will find it on NI web side.
http://digital.natinst.com/explprog.nsf/75c7cd5de6d387788625663d00558a4c/ebf
11dd1f0feaef3862566790072a983?OpenDocument

"Description: These VIs make calls to the Windows API for managing and
controlling windows (minimize, maximize, move, resize, rename, close, etc.);
managing applications (run application, quit application, print file, etc.);
adding and removing network resources; keyboard filtering; and system
utilities (mouse cursor position, windows path, screen resolution, system
path, etc.). These VIs are intended for use on 32-bit Windows platforms
only."

Geir Kåre Refstie
geirkr@online.no



wrote in message
news:7oac6b$2j6$1@nnrp1.deja.com...
> Anyone know of a better VI than
"exec" to run a dos program.
>
> The problem is, that the exec vi does NOT wait for it to complete.
> I can see that its being called but it doesnt allow it to finish.
> The use of a wait VI did not do anything, since the dos window
> is already closed at that point.
>
> Eric
>
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
0 Kudos
Message 5 of 5
(3,658 Views)