anritsu ms2691a

4 views (last 30 days)
nasz13
nasz13 on 22 Jan 2016
Commented: Walter Roberson on 23 Jan 2016
Hello, I'm using Anritsu MS2691A Signal Analyzer connected with Matlab via GPIB cable.
I have problem on reading the file that was captured by Matlab.
Can you please help to advice how can I read those file. I'm using binblockread command which the format of return data from the instrument is REAL 32. However, I didn't get the signal that I want to.
fprintf(signalAnalyzerObject,'FORM REAL,32');
% Read the IQ data
datacapture = query(signalAnalyzerObject,'DATA?');
disp(['IQ Data Captured: ' datacapture]);
fprintf(signalAnalyzerObject,'DATA?');
data = binblockread(signalAnalyzerObject,'float32');

Accepted Answer

Walter Roberson
Walter Roberson on 22 Jan 2016
Use
num2hex(data(1))
to look at the bytes of the response, and compare that to (for example)
num2hex(single(1.234))
or a value in the range you are expecting for the response. My guess is that the bytes are in a different order than you need, and that you will need to swapbytes(data)
  2 Comments
nasz13
nasz13 on 22 Jan 2016
If I swapbytes(data), will it not change the data that I get?
Walter Roberson
Walter Roberson on 23 Jan 2016
If you are not getting the signal you want, and swapbytes gives you the signal you want, then is there a difficulty?

Sign in to comment.

More Answers (0)

Categories

Find more on Instrument Control Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!