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.
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.
Use the rating system, otherwise its useless; and please don't forget to tip your waiters! using LV 2010 SP 1, Windows 7 ________________________________________________________
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 ________________________________________________________
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?
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
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 ________________________________________________________