Reading Binary Data - Keysight B2980 Series Programming Manual

Femto / picoammeter electrometer / high resistance meter
Table of Contents

Advertisement

Measurement
Result Example
Programming Examples

Reading Binary Data

Reading Binary Data
A program example for reading binary data is shown in Table 2-8. This example is
used to read data in the ASCII format and the 8-byte binary format.
This example code can be replaced with the code used to read data in a measurement
program. For example, it can be used instead of the lines from 38 to 44 of the
staircase sweep measurement program shown in Table 2-3.
Data output format can be controlled by using the following commands.
Function
Sets the data output format
Sets byte order of binary data
format is ASC for the ASCII data output format, REAL,32 for the IEEE-754 single
precision format (4-byte data), or REAL,64 for the IEEE-754 double precision
format (8-byte data).
byte_order is NORM for the normal byte order from byte 1 to byte 4 or 8, or SWAP
for the reverse byte order from byte 4 or 8 to byte 1.
Result: V (V), I (A), Time (sec), Status: -5.88E-05,2.85297E-06,0
.021938,21120.0222637,0.006749,0.030997,36480.0499995,0.0151897,0
.037096,41600.0750008,0.022776,0.041071,41600.0999998,0.0303624,0
.045048,4160
2- 30
Command
:FORM[:DATA] format
:FORM:BORD byte_order
Keysight B2980 Programming Guide, Ed ition 1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents