AnsweredAssumed Answered

Query INTERRUPTED

Question asked by yshin on Mar 23, 2011
Hi,

I'm using NI-VISA library for communicating with my DSO9404A scope.
I had had frequent "Query INTERRUPTED" error for "DATA?" query so that I updated the software to Version 03.03.0002.
Before updating it seemed OK for some time after rebooting the scope until get the error.
Now I'm having the error for every "DATA?" query.

Here is my setup and query

  ACQ:MODE SEGM
  ACQ:POIN 100
  ACQ:INT 0
  ACQ:SEGM:COUN 4096
  WAV:FORM WORD
  WAV:BYT MSBF
  WAV:SEGM:ALL

  const int MaxPoints = 100*4096;
  int nPoints = MaxPoints;
  short curWfm[MaxPoints]
  viQueryf(_vi, "WAV:DATA?\n", "%#hb\n", &nPoints, curWfm);

I'm calling the function after checking "ADER" register value.

I have other queries including waveform preamble info.  I also checked if there is any other query that may interrupt the "DATA?" or may be interrupted by the "DATA?" but couldn't find.  When "DATA?" query is commented out everything works well.  I tried everything that I can think of such as waiting for some time before and after asking the data and using slightly different read format in the query.  But nothing works.

I'm not sure but it seems tåo me that it is related to "Data out of range" errors which I'm having from LabVIEW codes.

Could you help me to fix the problem?

I also have couple of questions.

  - Does viQueryf() return after it gets all the data that is requested?
  - Is there any way to roll-back the scope to the factory default setup?   I mean undoing software updates.

Thank you in advance for any comments and advices,
Yun-Ha  

Outcomes