Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

SRQ problems when using ag6000 driver with DS05032A over USB

Our code works fine when the DS05032A  is controled via GPIB interface. But we don't want to use an extra GPIB-controler only for the scope in that setup. So we decided to switch to the USB interface of that scope. That was done by connecting the device over USB, adapting  the Resource_ID in ag6000_init()  and checking the connection with the VISA test panel. But now we are getting problems with the ag6000_ReadWaveformMeasurement(), which fails with BFFA2003 errors. Debugging into the driver shows the driver calls ag6000_InitiateAcquisition() and emits a :DIG to the scope and then waits for the finishing of that operation with ag6000_WaitForOPC (). There it waits for a SRQ  from the scope , which doesn't happen when the scope is controled over USB.  But there is no problem when doing the same thing over GPIB. Any ideas what would cause such problems ?

I've allready tried to switch USB ports and hubs. And it used to work until today 😞

0 Kudos
Message 1 of 4
(3,479 Views)

Hello Markus,

       When you say that "it used to work until today", do you mean over USB?  Does it work with the example program?   Can you please try increasing the timeout value or decreasing the number of samples that you are requesting?

 

Thanks,

 

NathanT

0 Kudos
Message 2 of 4
(3,460 Views)

"It worked until today" meant it worked over USB until today. And it works with same settings for samples and timeout ( 1 s is enough here ) over GPIB. And I tried even "infinite" timeout over USB, which only caused the program to hang at that point, waiting for a SRQ for over one hour before I killed it.

 

Now I've switched to another PC, and it started to work again. So it looks like that something is broken in the USB hardware or drivers on the first PC. But I've no idea what is broken. It seems only to break the SRQ handling, the complete setup commands, which don't use a SRQ , work fine.

0 Kudos
Message 3 of 4
(3,454 Views)

Hello Markus,

       I am glad to hear that changing machines took care of the issue.

 

Cheers,

 

NathanT

0 Kudos
Message 4 of 4
(3,445 Views)