Getting Started 3Keysight InfiniiVision DSOX1204A/G Oscilloscopes Programmer's Guide 43Vertical is set to 16 V full-scale (2 V/div) with center of screen at 1 V and probeattenuation set to 10. This example sets the time base at 1 ms full-scale (100ms/div) with a delay of 100 μs.Example Oscilloscope Setup CodeThis program demonstrates the basic command structure used to program theoscilloscope.' Initialize the instrument interface to a known state.myScope.IO.ClearmyScope.IO.Timeout = 10000 ' Set interface timeout to 10 seconds.' Initialize the instrument to a preset state.myScope.WriteString "*RST"' Set the time base mode to normal with the horizontal time at' 50 ms/div with 0 s of delay referenced at the center of the' graticule.myScope.WriteString ":TIMebase:RANGe 5E-4" ' Time base to 50 us/div.myScope.WriteString ":TIMebase:DELay 0" ' Delay to zero.myScope.WriteString ":TIMebase:REFerence CENTer" ' Display ref. at' center.' Set the vertical range to 1.6 volts full scale with center screen' at -0.4 volts with 10:1 probe attenuation and DC coupling.myScope.WriteString ":CHANnel1:PROBe 10" ' Probe attenuation' to 10:1.myScope.WriteString ":CHANnel1:RANGe 1.6" ' Vertical range' 1.6 V full scale.myScope.WriteString ":CHANnel1:OFFSet -0.4" ' Offset to -0.4.myScope.WriteString ":CHANnel1:COUPling DC" ' Coupling to DC.' Configure the instrument to trigger at -0.4 volts with normal' triggering.myScope.WriteString ":TRIGger:SWEep NORMal" ' Normal triggering.myScope.WriteString ":TRIGger:LEVel -0.4" ' Trigger level to -0.4.myScope.WriteString ":TRIGger:SLOPe POSitive" ' Trigger on pos. slope.' Configure the instrument for normal acquisition.myScope.WriteString ":ACQuire:TYPE NORMal" ' Normal acquisition.Capturing Data with the :DIGitize CommandThe :DIGitize command captures data that meets the specifications set up by the:ACQuire subsystem. When the digitize process is complete, the acquisition isstopped. The captured data can then be measured by the instrument ortransferred to the controller for further analysis. The captured data consists of twoparts: the waveform data record, and the preamble.