01-09-2013 01:26 PM
I have upgraded my LabVIEW to the 2012 edition (with f3 update applied) and also my iMac to OS X Lion (10.7.5). I am finding an issue with LabVIEW losing its connections to any GPIB device after waking the computer from sleep. I am using a GPIB-USB-HS to interface to my GPIB chain (5 devices). I don't detect any issues with GPIB using the Explorer or Troubleshooting Wizard apps after waking from sleep. So far it seems to be confined to LabVIEW 2012. I reinstalled the latest NI-488 drivers but that had no effect. LabVIEW seems to be fine again if I quit and re-run LabVIEW and reload all my VIs. I don't have any other apps that access the NI-488 drivers.
Are others seeing an issue with GPIB after waking from sleep? I previously had LV 2011 running on 10.5.8 and never noticed this issue. For now I have disabled automatic sleep, but since I am only in the lab sporadically this semester, I would prefer to let it sleep in between working on the experiment.
Thanks,
Erik.
Solved! Go to Solution.
01-10-2013 01:11 PM
Hi erikj,
What happens if you programmatically reset the GPIB (using something like SendIFC or ResetSys) at the beginning of your program?
01-10-2013 03:45 PM
Erik,
My guess is that when the computer sleeps, the USB port goes to some kind of idle (low power) state and does not restore operation properly when it awakes. There are several posts on Apple's Support web pages regarding audio devices and disk drives which do not recover nicely after sleep. No response form Apple on those threads. It seems to be worse on Mountain Lion than on Lion.
Perhaps you should let the monitor and hard drive sleep but not the computer.
Lynn
01-17-2013 01:34 PM
Thanks for the suggestions. It looks like Lynn has the right idea. Trying IFC or SysReset has no effect, and in fact give an error that the NI-488 "Interface Has Lost Power". For now I will disable computer sleep.
01-18-2013 05:06 PM