I have a MSO9404A, I want to use pyvisa to capture when I2C address write: 0x37 and inform the PC catching waveform data calculation time sequence.
What command does pyvisa have?
Is there a similar example?
In the Programmer's Guide for Infiniium Oscilloscopes (see http://www.keysight.com/find/9000a-manual), there is a basic PyVISA example in the "Sample Programs" chapter. The ":SBUS<N>:IIC:TRIGger:TYPE" command description has an example of triggering on a 7-bit address frame read. You'll want to use the ":SBUS1:IIC:TRIGger:TYPE WRITe7" and ":SBUS1:IIC:TRIGger:PATTern:ADDRess '0x37'" commands instead to trigger on a write of 0x37, and if you don't care what the data value is, the ":SBUS1:IIC:TRIGger:PATTern:DATA '0xXXXXXX'" command.
Python is no different than any other language when controlling a Keysight Oscilloscope. Command and/or Request ASCII strings are sent, and Responses (ASCII or binary) are received. There are quite a few Python examples available here: Search Results | Keysight (formerly Agilent’s Electronic Measurement) . You will need to filter by "Oscilloscopes". The Programming manual for your scope is part of the help system. It is also available online, and downloadable. I don't know what version of scope SW you have, so I can't add a link.
Retrieving data ...