Programming Guide
Digital Oscilloscopes Series
142
Response message:
As follow picture:
The head of message: C1:WF ALL. These are followed by the string
#900000070, the beginning of a binary block in which nine ASCII integers are
used to give the length of the block (70 bytes).After the length of block, is
beginning of wave data. At the last meet ―0A 0A‖, means the end of data.
How to use the data recovery waveform:
1. To calculate the voltage value corresponding to the data point.
Using the formula : voltage value(V) = code value *( vdiv /25)- voffset.
code value: The decimal of wave data .
Note: If the decimal is greater than ―127‖, it should minus 255.Then the
value is code value. Such as the wave data is ―FC‖ convert to decimal is
―252‖. So the code value is 252-255=-3.
vdiv: The Volts/div value.
voffset: The voltage position value.
The following picture as an example:
Send command ―C1:VDIV?‖,return‖ C1:VDIV 5.00E-01V‖.
Get the current Volts/div values: vdiv = 0.5V.
Send command ―C1:OFST?‖,return‖ C1:OFST -5.00E-01V‖
Get the current voltage position values: voffset = -0.5V.
According the wave data, we can know the first point of wave data is the
―02‖ convert to decimal is ―2‖(Hexadecimal converted to decimal).
The first point of wave data voltage value = 2*(0.5/25)-(-0.5) = 0.54V.
2. To calculate the time value of the first data point.
Using the formula : time value(S) = trdl-( timebase*grid/2).