LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview program fails to close properly!

Hello

I am using Labview 8.2.  I have built an application that communicates with a GPIB device.  This application also uses WINUTIL.llb and active X control STI.ocx for minimizing to the system tray.  On occasion when shutting down the PC (Windows XP) that is using the application, the machine will fail to properly shutdown because Windows is still trying to shut down the Labview application.  What could possibly be holding up the shutdown process?  Could it be the active X control or one of the vi's within the WINUTIL.llb library or possibly the communication with the GPIB device causing this problem?  Any help would be greatly appreciated.
0 Kudos
Message 1 of 31
(4,302 Views)
There could be a ton of reasons. What triggers the LabVIEW app to shut down in the first place? How is it supposed to be shut down normally?
0 Kudos
Message 2 of 31
(4,293 Views)
When I say shutdown, I simply mean shutting Windows down.  For some reason Windows is having difficulties shutting down the Labview application.  Windows should remove the program icon from the system tray and properly shutdown the application.  I am begginning to wonder if their is some sort of close that I need to perform within the application so that Windows can handle this properly.  My hunch is that this has something to do with the active X control or something within the WINUTIL.llb library.


Message Edited by Acelhp on 04-07-2008 09:39 AM
0 Kudos
Message 3 of 31
(4,289 Views)
Are you telling labview to quit at the end of your application???
That always helps...
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 4 of 31
(4,285 Views)
At the moment, I am closing a UDP socket and removing the STI.ocx active X control.
0 Kudos
Message 5 of 31
(4,277 Views)
Make sure you are closing all references and calling the "Quit LabView" vi located in the Applications Control palette...If you need further help please post the vi.
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 6 of 31
(4,274 Views)
Thanks for the help thus far.  Is it necessary to send a DCL (Device Clear) message to the GPIB device?  What must I do to properly 'close' this GPIB device?
0 Kudos
Message 7 of 31
(4,272 Views)
You need to trigger an event so that your application knows to shutdown when you select shutdown or restart from the start menu. You can see how to do that here:
http://digital.ni.com/public.nsf/allkb/94346203032A2EDB86256F38006EA796

Chris
0 Kudos
Message 8 of 31
(4,259 Views)
You don't "have to", but it might be recommended to clear or reset the device. Other than that close the VISA reference (if using), and/or check the manual for equipment on what command may be needed to end communications (may not be needed).
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 9 of 31
(4,258 Views)
The GPIB device is actually NI's GPIB-ENET/100 Ethernet-to-GPIB controller.  I should have mentioned this earlier.
0 Kudos
Message 10 of 31
(4,241 Views)