LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with built application

I have a VI, which quits execution by "Exit Labview", when the user
closes the panel. This event is read out via "VI property node"
item "Front Panel.Open". When the VI is executed in LabView, everything
works ok. When I build an application from this VI, the VI doesn't quit
when I close the front panel. Instead of this I have to kill the task
via the taskmanager. I use Windows 2000 and LabView5.0. Any comments
on this behaviour?
0 Kudos
Message 1 of 5
(2,849 Views)
You might be experiencing some problems using Windows 2000 with Labview 5.0. It was released before Windows 2000 so it wasn't necessarily designed to run on that OS.

I'm running Labview 6.0.2 on Windows 2000 and don't experience any problems. Whenever I close a running executable, it automatically disappears from the task manager. I don't use the "Exit Labview" to accomplish this either.
0 Kudos
Message 2 of 5
(2,849 Views)
Hi,

I can verify anithing of this (I'm using LV6), but something like this might
be the problem...

Is the name of the window still correct? E.g. in LabVIEW hte name of the
window is something like "Front Panel.VI". The executable's window name is
"Front Panel.exe".

You can test if something like this happens, by wirering an error cluster to
the output of all the attribute stuff. Place it on your Front Panel, and
build the executable, the Open Reference will create an error.

In LV6, (don't know for sure about LV5) you don't have to wire a "Open VI
Reference" to the FP.Open property. Just don't wire anything, and the FP of
the VI itself is used by default.

Regards,

Wiebe.



"Gerd W." wrote in message
news:76b760f5.0112180501.771b738d@posting
.google.com...
> I have a VI, which quits execution by "Exit Labview", when the user
> closes the panel. This event is read out via "VI property node"
> item "Front Panel.Open". When the VI is executed in LabView, everything
> works ok. When I build an application from this VI, the VI doesn't quit
> when I close the front panel. Instead of this I have to kill the task
> via the taskmanager. I use Windows 2000 and LabView5.0. Any comments
> on this behaviour?
0 Kudos
Message 3 of 5
(2,849 Views)
Hi Gerd,
two things:
- make sure you have a small time delay in your while loop 5-10ms
- stop all the while loops before exiting your application ( keep the exit function outside the while loop)

Good luck,

Alberto
0 Kudos
Message 4 of 5
(2,849 Views)
Hi,

I can't verify anything of this (I'm using LV6), but something like this
might
be the problem...

Is the name of the window still correct? E.g. in LabVIEW hte name of the
window is something like "Front Panel.VI". The executable's window name is
"Front Panel.exe".

You can test if something like this happens, by wirering an error cluster to
the output of all the attribute stuff. Place it on your Front Panel, and
build the executable, the Open Reference will create an error.

In LV5.1 & LV6, (don't know for sure about LV5.0) you don't have to wire a
"Open VI
Reference" to the FP.Open property. Just don't wire anything, and the FP of
the VI itself is used by default.

Regards,

Wiebe.



"Gerd W." wrote in message
news:76b760f5.0112180501.771b
738d@posting.google.com...
> I have a VI, which quits execution by "Exit Labview", when the user
> closes the panel. This event is read out via "VI property node"
> item "Front Panel.Open". When the VI is executed in LabView, everything
> works ok. When I build an application from this VI, the VI doesn't quit
> when I close the front panel. Instead of this I have to kill the task
> via the taskmanager. I use Windows 2000 and LabView5.0. Any comments
> on this behaviour?
0 Kudos
Message 5 of 5
(2,849 Views)