AnsweredAssumed Answered

Query INTERRUPTED (-410) Error

Question asked by Intern on Jul 13, 2010
Latest reply on Jul 15, 2010 by tsilchia
Hello, forum.

I am writing a program to read data from an Agilent E5071C network analyzer using VISA32 in the VB.NET IDE. My program needs to repeatedly take bandwidth data measurements, which looks like this:


Dim bwArray(0 To 3) As Double

Call viPrintf(vi, "CALC1:MARK1:BWID:DATA?" & Chr(10), 0)

Call viScanf(vi, "%,4Lf", bwArray(0))

' . . . Change parameters of measurement here . . .

Call viPrintf(vi, "CALC1:MARK1:BWID:DATA?" & Chr(10), 0)

Call viScanf(vi, "%,4Lf", bwArray(0))

'  . . . Change parameters of measurement . . . etc



My problem is that every even call for the bandwidth data results in a Query Interrupted error. The manual says this about the error:

"

The state that generates a "INTERRUPTED" Query error (see 6.3.2.3, IEEE488.1). This error occurs when data bytes (DAB) or GET are received before the transmission of the response after a query has not been completed, for example.

"


But I'm reading all of the data from each transmission; the bandwidth data has only 4 numbers, both according to the manual and what I've seen when I've read this data using Agilent Interactive IO. How do I avoid this error?

Thank you.

EDIT: Typos fixed.  

Outcomes