Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to abort waveform acquisition with iviscope when not triggered ?

I am developping some functions expoiting Keysigth DSO-X 3014 throught class driver Iviscope.

I have made a function using IviScope_ReadWaveform (), with a correct trigger configuration (edge, positive slope...). No problem when the signal occurs, I get wafeform data.

But if there is no signal after 5 seconds, function exits with BFFF0015 timeout error code. Everything is OK. But scope is in run mode (waiting signal) and do not accept any command anymore (from iviscope class or even specific ag2k3k driver).

 

A viClear sent by Visa test panel is a solution, but I can't get visa handle session handle thougth iviscope.h.

 

A solution could be to call IviScope_ConfigureInitiateContinuous (viSession, VI_FALSE); 

 

but timeout again and again...

 

Anyone has a solution?

Thanx

0 Kudos
Message 1 of 3
(2,980 Views)

Found an old thread with same problem :

http://forums.ni.com/ni/board/crawl_message?board.id=140&message.id=58397

No real solution...

 

Agilent documentation said: 

Aborting a Digitize Operation Over the Programming Interface When using the programming interface, you can abort a digitize operation by sending a Device Clear over the bus (for example, myScope.IO.Clear).

 

So, how to send a viClear from Iviscope?

I tried to get visa handle with  viHandle = Ivi_IOSession (prHandle->viSession);

but viHandle = 0 

 

 

0 Kudos
Message 2 of 3
(2,961 Views)

I'm up to date with all drivers:

I use last driver version 3.2.1.4 agx2k3k, last ICP 4.6.1....

 

0 Kudos
Message 3 of 3
(2,960 Views)