Programming Manual MSO/UPO2000 Series
87 / 156
Instruments.uni-trend.com
: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
Set I2C bus address direction to READ.
:SBUS:I2C:ADIRection?
Query returns READ.
: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"
Set I2C bus address to X00X00X1.
:SBUS:I2C:ADDRess?
Query returns X00X00X1.
: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
Set I2C bus trigger data length to 2 bytes.
:SBUS:I2C:DATA:LEN?
Query returns 2.