Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

"OS error" after idle time (KUSB-488B and Keithley2010) C++

Post Reply
DMKeithleyUser
Posts: 4
Joined: March 2nd, 2017, 8:28 am
Country: Germany

"OS error" after idle time (KUSB-488B and Keithley2010) C++

Post by DMKeithleyUser » May 4th, 2018, 6:47 am

Hello!

Here is my setting:
- KUSB-488B connected to Keithley2010
- Keithley2010 uses multiplexer card for multiple 4-wire channels
- Driver version 3.13.0 (NI command compatible)
- Windows 7 32 Bit Enterprise (Service Pack 1)
- Visual Studio 2010 C++

I have a problem with my KUSB-488B and a connected Keithley2010 multimeter.
I measure resistances with my C++ software.

The KUSB-488B is "opened" (SendIFC) and the Keithley2010 configured at startup of my software.
I start measuring directly after start of my software and a sequence of resistances are measured fine.
If I repeat the same sequence after a few minutes, everything works fine.

After idle time of about 1 hour, when I start the measuring sequence again, I get an "OS error" (iberr=0) from the driver on the first command sent out ("Send(...)" command of gpib-32.dll/GPIB.h - e.g. "SENS:FRES:AVER:STAT 1").

Are there any known issues here?
I already played around with USB-HUB settings in the Windows device manager
I did not configure the GPIB with the configuration utility. All values are standard here. Would changing the values help in some way e.g. timing?

Best regards,
Kai

DMKeithleyUser
Posts: 4
Joined: March 2nd, 2017, 8:28 am
Country: Germany

Re: "OS error" after idle time (KUSB-488B and Keithley2010) C++

Post by DMKeithleyUser » May 6th, 2018, 4:19 am

Here is some additional information:

If the Send command was executed successfully, the ibsta status bits are set to (as listed in GPIB_user.h):
  • RQS - device requesting service
  • CMPL - I/O completed
  • LOK - lockout status
  • LACS - gpib board is addressed as Listener
If the Send command was NOT successful (after some idle time). the ibsta status bits are set as followed:
  • ERR - function returned error
  • (SRQI - SRQ asserted) -> only sometimes
  • CMPL - I/O completed
  • LOK - lockout status
  • REM - remote status
  • TACS - gpib board is addresses as Talker
Another interesting thing is:
I took a look into the GPIB configuration utility when the error occured:
My device was not there anymore but the following:

error3.PNG

I tried to send commands with the KI-488 Diagnostic Tool. This did not work either - always timeouts.
After resetting the GPIB configuration utility the Keithley 2010 was listed again:

error4.PNG
Attachments
error3.PNG
error3.PNG (15.14 KiB) Viewed 9463 times
error4.PNG
error4.PNG (14.79 KiB) Viewed 9463 times

Andrea C
Keithley Applications
Keithley Applications
Posts: 1323
Joined: October 15th, 2010, 10:35 am
Country: United States
Contact:

Re: "OS error" after idle time (KUSB-488B and Keithley2010) C++

Post by Andrea C » May 6th, 2018, 8:43 am

Sounds like a Power Management setting on the PC for the USB port. You mentioned the settings in Windows Device Manager for the USB Root Hub. On the Power Management tab, make sure you have disabled the "Allow the computer to turn off this device.....".

DMKeithleyUser
Posts: 4
Joined: March 2nd, 2017, 8:28 am
Country: Germany

Re: "OS error" after idle time (KUSB-488B and Keithley2010) C++

Post by DMKeithleyUser » May 7th, 2018, 11:25 am

Hi Andrea,

thank you for your quick response.

Yes, I should have mentioned that I already disabled that option for all USB-Hubs listed in the Windows Device Manager.
I also disabled the "Selective Suspend" in the Windows energy settings.

The error still occurs... :(

Post Reply

Return to “Instrument Accessories & GPIB”

Who is online

Users browsing this forum: No registered users and 2 guests