Chapter 2 Command System RIGOL
MSO1000Z/DS1000Z Programming Guide 2-207
:TRIGger:IIC:WHEN
:TRIGger:IIC:WHEN <trig_type>
:TRIGger:IIC:WHEN?
Set or query the trigger condition in I2C trigger.
{STARt|RESTart|STOP|NACKnowledge|
ADDRess|DATA|ADATa}
 STARt: trigger when the SDA data transitions from high to low while the SCL is
high.
 RESTart: trigger when another start condition occurs before a stop condition.
 STOP: trigger when the SDA data transitions from low to high while the SCL is
high.
 NACKnowledge: trigger when the SDA data is high during any acknowledgement
of the SCL clock position.
 ADDRess: search for the specified address value and trigger on the read/write
bit.
 DATA: search for the specified data value on the data line (SDA) and trigger on
the jump edge of the clock line (SCL) corresponding to the last bit of the data.
 ADATa:search for the specified address value and data value at the same time
and trigger when the "Address" and "Data" conditions are met at the same time.
The query returns STAR, STOP, NACK, REST, ADDR, DATA, or ADAT.
:TRIGger:IIC:WHEN RESTart /*Set the trigger condition to restart*/
:TRIGger:IIC:WHEN? /*The query returns REST*/
:TRIGger:IIC:AWIDth
:TRIGger:IIC:AWIDth <bits>
:TRIGger:IIC:AWIDth?
Set or query the address bits when the trigger condition is ADDRess or ADATa in
I2C trigger.
The query returns 7, 8, or 10.
:TRIGger:IIC:AWIDth 10 /*Set the address bits to 10*/
:TRIGger:IIC:AWIDth? /*The query returns 10*/
:TRIGger:IIC:DIRection
:TRIGger:IIC:ADDRess