Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
en:python-ivi:readme [2013/02/19 01:48] alex [Included drivers] |
en:python-ivi:readme [2013/04/08 03:14] alex [Usage example] |
||
---|---|---|---|
Line 65: | Line 65: | ||
# read out channel 1 waveform data | # read out channel 1 waveform data | ||
waveform = mso.channels[0].measurement.fetch_waveform() | waveform = mso.channels[0].measurement.fetch_waveform() | ||
+ | # measure peak-to-peak voltage | ||
+ | vpp = mso.channels[0].measurement.fetch_waveform_measurement("voltage_peak_to_peak") | ||
+ | # measure phase | ||
+ | phase = mso.channels['channel1'].measurement.fetch_waveform_measurement("phase", "channel2") | ||
</code> | </code> | ||
Line 109: | Line 113: | ||
#psu = ivi.agilent.agilentE3649A("ASRL::/dev/ttyUSB0,9600::INSTR") | #psu = ivi.agilent.agilentE3649A("ASRL::/dev/ttyUSB0,9600::INSTR") | ||
# configure output | # configure output | ||
+ | psu.outputs[0].configure_range('voltage', 12) | ||
psu.outputs[0].voltage_level = 12.0 | psu.outputs[0].voltage_level = 12.0 | ||
psu.outputs[0].current_limit = 1.0 | psu.outputs[0].current_limit = 1.0 |