Dennis Knutson wrote in message news:<506500000005000000E7C40000-1042324653000@exchange.ni.com>...
> I'm assuming that you're using System Exec to run the DOS program. The
> function has an input called wait until completion. The default is
> True. If you've wired a False to it, change it and the function will
> not return until the exe you're called has finished.
Yes system exec.
Ah, yes.. I tried "wait until completion". But I never got it to work
which is the reason why i dont use it. Actually labview crashed each
time i put it on TRUE. I tried again right now.. and it crashed. (The
dos program comes up but nothing happens!, Cant close the dos program
or labview. Labview then says "resetting VI: xxxxxx.vi" but nothing
happens and i have to close both program through task manager.) What
am I doing wrong???
I found the solution to this problem though. (To see if dos program is
closed)
A pack of windows utilities for labview can be downloaded from NI
site. One of them returns an array of all open apps/windows. Which i
do once a second or so until the string (name of app) cannot be found.
This works good also.
> I'm also curious to know what it is about the device that you can't do
> in LabVIEW and have to do in DOS.
Its a compiled exe which uploads necessary data to device.
It also shows how much percentage thats been uploaded.
Is there any way to integrate this in labview i would be very happy!
Other question:
system.ini
[386Enh]
'No line' (which is the same as COM1Autoassign=-1 ?) don't work,
because of other badly coded programs running in background
(necessary though)
COM1AutoAssign=0 worked. (of course as long as only one program access
comport at one time.)
COM1AutoAssign=2 worked also! (2=The port is released after two
seconds of inactivity (correct?)) But i thought that it wouldnt work
because when dos program is closed labview directly tries to access
the port. But in that case there isnt two seconds of inactivity on
port which needed for release the port, or am i wrong here? And I dont
even think it takes two seconds when switching com1 from dos program
to labview.
Thanks in advance!
/ape