AnsweredAssumed Answered

Problem with reading trace data from E5061B

Question asked by hefetzs on Sep 8, 2011
Latest reply on Nov 5, 2012 by rfee

I trying to read trace data for impedance Z measurement on E5061b. I'm using a USB connection and a VISA object in Matlab.
I using a sweep of 1601 points and I keep getting 1601 zeros.

I'm reading the data from the E5061 using binary read, the form is set by the command "':FORM:DATA REAL'"
Data reading is done using the command ":CALC1:DATA:FDAT?"

The data srting I'm recieiving seem valid, the header is "#6025616" which, as I understand means that I have valid data with 3202 points, when every second point is secondary data, and therefore 0.
I'm getting a vector of 1601 points, after I have written a code in Matlab converting the string data into double according to IEEE 754. I couldn't find a standard function to do this, and I don't think I have a problem with the number conversion, since I compared with web site that do the conversions.
Does anyone knows a a good way to do this conversion in Matlab ???

Why am I getting 1601 zeros ??

Am I supose to check if the data is available ? do I need to config anything else ?

I'll appriciate any advice...