ekpy.control.instruments.tektronix3252 package¶
Submodules¶
ekpy.control.instruments.tektronix3252.core module¶
-
ekpy.control.instruments.tektronix3252.core.set_amplitude(pulse_gen, amplitude: str, channel=1, both=False)¶ Specify amplitude.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
amplitude (str) – Delay. Example ‘10mV’
channel (int) – Which channel.
both (bool) – Set for both channels.
-
ekpy.control.instruments.tektronix3252.core.set_burst_mode_off(pulse_gen, channel=1, both=False)¶ Set the pulse generator to off of burst (most commonly to cont.)
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
channel (int) – 1 or 2. Which channel
both (bool) – Set both channels to burst
-
ekpy.control.instruments.tektronix3252.core.set_frequency(pulse_gen, frequency, channel=1, both=False)¶ Specify the frequency.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
frequency (str) – Pulsewidth. Example ‘100khz’
channel (int) – Which channel.
both (bool) – Set for both channels.
-
ekpy.control.instruments.tektronix3252.core.set_function_to_pulse(pulse_gen, channel=1, both=False)¶ Set the pulse generator to output a pulse.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
channel (int) – 1 or 2. Which channel
both (bool) – Set both channels
-
ekpy.control.instruments.tektronix3252.core.set_function_to_ramp(pulse_gen, channel=1, both=False)¶ Set the pulse generator to output a ramp (triangle wave)
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
channel (int) – 1 or 2. Which channel
both (bool) – Set both channels
-
ekpy.control.instruments.tektronix3252.core.set_function_to_sine(pulse_gen, channel=1, both=False)¶ Set the pulse generator to output a sinewave.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
channel (int) – 1 or 2. Which channel
both (bool) – Set both channels
-
ekpy.control.instruments.tektronix3252.core.set_high_voltage(pulse_gen, high_v, channel=1, both=False)¶ Specify the high voltage for the pulse generator.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
high_v (str) – High voltage. Example ‘1V’
channel (int) – Which channel.
both (bool) – Set high voltage for both channels.
-
ekpy.control.instruments.tektronix3252.core.set_low_voltage(pulse_gen, low_v, channel=1, both=False)¶ Specify the low voltage for the pulse generator.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
low_v (str) – Low voltage. Example ‘0V’
channel (int) – Which channel.
both (bool) – Set high voltage and pulsewidth for both channels.
-
ekpy.control.instruments.tektronix3252.core.set_ncylces_for_burst_mode(pulse_gen, ncycles=1, channel=1, both=False)¶ Set ncycles in burst mode
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
ncycles (int) – How many cycles.
channel (int) – 1 or 2. Which channel
both (bool) – Set both channels
-
ekpy.control.instruments.tektronix3252.core.set_offset(pulse_gen, offset='0 mV', channel=1, both=False)¶ Set offset.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
offset (str) – Offset
channel (int) – 1 or 2. Which channel
both (bool) – Set both channels
-
ekpy.control.instruments.tektronix3252.core.set_phase(pulse_gen, phase: float, channel=1, both=False)¶ Set the phase of the pulse generator.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
phase (float) – Phase in degrees
channel (int) – 1 or 2. Which channel to turn on
both (bool) – Turn on both channels
-
ekpy.control.instruments.tektronix3252.core.set_polarity(pulse_gen, inverted=False, channel=1, both=False)¶ Set the polarity of the channel.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
inverted (bool) – Invert.
channel (int) – 1 or 2. Which channel
both (bool) – Set both channels
-
ekpy.control.instruments.tektronix3252.core.set_pulse_delay(pulse_gen, delay: str, channel=1, both=False)¶ Specify the delay for channel in pulse mode.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
delay (str) – Delay. Example ‘1us’
channel (int) – Which channel.
both (bool) – Set for both channels.
-
ekpy.control.instruments.tektronix3252.core.set_pulsewidth(pulse_gen, pw, channel=1, both=False)¶ Specify the pulse width.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
pw (str) – Pulsewidth. Example ‘1ms’
channel (int) – Which channel.
both (bool) – Set pulsewidth for both channels.
-
ekpy.control.instruments.tektronix3252.core.set_run_mode_to_burst(pulse_gen, channel=1, both=False)¶ Set the pulse generator to burst mode.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
channel (int) – 1 or 2. Which channel
both (bool) – Set both channels to burst
-
ekpy.control.instruments.tektronix3252.core.start_pulse_gen(pulse_gen, channel=1, both=False)¶ Start the pulse generator.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
channel (int) – 1 or 2. Which channel to turn on
both (bool) – Turn on both channels
-
ekpy.control.instruments.tektronix3252.core.stop_pulse_gen(pulse_gen, channel=1, both=False)¶ Stop the pulse generator.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252
channel (int) – 1 or 2. Which channel to turn off
both (bool) – Turn off both channels
-
ekpy.control.instruments.tektronix3252.core.trigger(pulse_gen)¶ Manual trigger for the 3252.
- Parameters
pulse_gen (pyvisa.resources.gpib.GPIBInstrument) – Tektronix AFG 3252