LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2012 gpib sleep issue on Mac OS X

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(3,007 Views)

Hi erikj,

 

What happens if you programmatically reset the GPIB  (using something like SendIFC or ResetSys) at the beginning of your program? 

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(2,986 Views)

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

0 Kudos
Message 3 of 5
(2,978 Views)
Solution
Accepted by topic author erikj

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.

0 Kudos
Message 4 of 5
(2,952 Views)

I just tested this on my iMac 2012.  When sleeping the USB-GPIB device light "ready" is powered off.  When re-awakening my Mac this light does go back on.  The GPIB Explorer still shows the device working and available.

LabVIEW ChampionLabVIEW Channel Wires

0 Kudos
Message 5 of 5
(2,938 Views)