UNI-T MSO/UPO2000 Series Programming Manual page 87

Digital phosphor oscilloscope
Table of Contents

Advertisement

Programming Manual
:SBUS:I2C:ADIRection
Command format:
:SBUS:I2C:ADIRection { READ | WRITE }
:SBUS:I2C:ADIRection?
Functional description:
This command is used to set I2C bus address direction of the oscilloscope.
Return format:
Query returns { READ | WRITE }.
For example:
:SBUS:I2C:ADIRection READ
:SBUS:I2C:ADIRection?
:SBUS:I2C:ADDRess
Command format:
:SBUS:I2C:ADDRess <value>
:SBUS:I2C:ADDRess?
Functional description:
This command is used to set I2C bus address of the oscilloscope. Binary character string data presented
by parameter is 0 , 1 or X. X represents it is unsure. And its rang is related to the value set by
instruction :SBUS:I2C:ASIZe, which is [0~2^addressbit – 1].
Return format:
Query returns binary character string address value
For example:
:SBUS:I2C:ADDRess "X00X00X1"
:SBUS:I2C:ADDRess?
:SBUS:I2C:DATA:LEN
Command format:
:SBUS:I2C:DATA:LEN <length>
:SBUS:I2C:DATA:LEN?
Functional description:
This command is used to set I2C bus trigger data length of the oscilloscope. It can take value from 1~5.
Return format:
Query returns I2C bus trigger data length of the oscilloscope, it is integer data.
For example:
:SBUS:I2C:DATA:LEN 2
:SBUS:I2C:DATA:LEN?
Instruments.uni-trend.com
Set I2C bus address direction to READ.
Query returns READ.
.
Set I2C bus address to X00X00X1.
Query returns X00X00X1.
Set I2C bus trigger data length to 2 bytes.
Query returns 2.
MSO/UPO2000 Series
87 / 156

Advertisement

Table of Contents
loading

Table of Contents