Dear all,

I have some questions about using MATLAB script to connect to Agilent Scope, my scope is DSO 90254A. I have studied the official ''90000A/90000X Programmer’s

Reference'', Programmer’s Reference, which said, ''Before downloading the waveform data in BYTE format, each 16-bit signed integer is converted into an 8-bit

signed integer.'' And by using a matlab script, I have successfully binblockread the signed 8-bit integers(integers like -34,75,...), the question is, I just want

the origin 8-bits(like 10111001), do you know how to directly read the origin 8-bits(like 10111001) rather than the integer representations(like -34,75..)? Or

could you tell me the format of the 8-bits(if it is two's complement representation?) so that I may convert the 8-bit integers to the origin 8-bits.

Hope I have made it clear.

Thank you for all.

Looking forward to your help.

I have some questions about using MATLAB script to connect to Agilent Scope, my scope is DSO 90254A. I have studied the official ''90000A/90000X Programmer’s

Reference'', Programmer’s Reference, which said, ''Before downloading the waveform data in BYTE format, each 16-bit signed integer is converted into an 8-bit

signed integer.'' And by using a matlab script, I have successfully binblockread the signed 8-bit integers(integers like -34,75,...), the question is, I just want

the origin 8-bits(like 10111001), do you know how to directly read the origin 8-bits(like 10111001) rather than the integer representations(like -34,75..)? Or

could you tell me the format of the 8-bits(if it is two's complement representation?) so that I may convert the 8-bit integers to the origin 8-bits.

Hope I have made it clear.

Thank you for all.

Looking forward to your help.

If using Binary format, how to read it in Matlab, I mean about using which function(fread or something else?)Could you please tell me more about that?

eg,. fread(obj1,...) the details here I am not very sure.

By the way, I have tried binary format, but it didn't work, please just tell me more about this.

Thank you~

75 in decimal is the same as 01001011 in binary

-34 in decimal is the same as 11011110 in binary (twos-complement)

By the way, as I have said before, using the 8-bit values is WRONG. Since you have read the manual, you have seen the chart that compares the BYTE and WORD formats. Under the disadvantages column for BYTE, it says, "Data is less accurate than the WORD format for analog channels."

Al