qcodes_contrib_drivers.drivers.Teledyne package¶
Submodules¶
qcodes_contrib_drivers.drivers.Teledyne.T3PS3000 module¶
- class qcodes_contrib_drivers.drivers.Teledyne.T3PS3000.TeledyneT3PS3000(*args: Any, **kwargs: Any)[source]¶
Bases:
VisaInstrumentTeledyne LeCroy T3PS3000 three-channel DC power supply.
CH1 and CH2 support independent, series, and parallel operation. CH3 has front-panel voltage selection and write-only remote output control. Construction and closing the connection do not change output settings. Writes wait 100 ms after transmission before returning so subsequent commands do not arrive too soon. Queries wait one second before reading, including the initial identification query, to allow the supply time to prepare its response.
- Parameters:
name – Instrument name.
address – VISA resource address (USB or LAN).
**kwargs – Forwarded to
qcodes.instrument.VisaInstrument.
- channels = self.add_submodule( "channels", ChannelTuple( self, "channels", TeledyneT3PS3000Channel, [self.ch1, self.ch2], snapshotable=False, ), )¶
The two programmable channels; CH3 is exposed separately.
- default_terminator = '\n'¶
The default terminator to use if the terminator is not specified when creating the instrument. None means use the default terminator from PyVisa.
- dhcp: Parameter[bool, Self] = self.add_parameter( "dhcp", get_cmd="DHCP?", set_cmd="DHCP {}", get_parser=lambda response: ( response.strip().upper().removeprefix("DHCP:").strip() ), val_mapping={False: "OFF", True: "ON"}, )¶
Enable DHCP. Changing network settings can disconnect a LAN session.
- gateway: Parameter[str, Self] = self.add_parameter( "gateway", get_cmd="GATEaddr?", set_cmd=partial(self._set_network_address, "GATEaddr"), get_parser=str.strip, vals=Strings(), )¶
IPv4 gateway. Setting it requires DHCP to be disabled.
- ip_address: Parameter[str, Self] = self.add_parameter( "ip_address", get_cmd="IPaddr?", set_cmd=partial(self._set_network_address, "IPaddr"), get_parser=str.strip, vals=Strings(), )¶
IPv4 address. Setting it requires DHCP to be disabled.
- operation_mode: Parameter[str, Self] = self.add_parameter( "operation_mode", get_cmd=self._get_operation_mode, set_cmd="OUTP:TRACK {}", val_mapping={"independent": 0, "series": 1, "parallel": 2}, )¶
CH1/CH2 tracking mode. Changing it can change the physical outputs.
- selected_channel: Parameter[str, Self] = self.add_parameter( "selected_channel", get_cmd="INST?", set_cmd="INST {}", get_parser=str.strip, vals=Enum("CH1", "CH2"), )¶
Front-panel selected channel; channel parameters use explicit addressing.
- class qcodes_contrib_drivers.drivers.Teledyne.T3PS3000.TeledyneT3PS3000Channel(parent: TeledyneT3PS3000, name: str, channel: int, **kwargs: Unpack[InstrumentBaseKWArgs])[source]¶
Bases:
InstrumentChannel[TeledyneT3PS3000]An adjustable T3PS3000 output (CH1 or CH2), rated at 32 V / 3.2 A.
Setpoints and limits apply to an individual channel, including when tracking is enabled. Timer operation is supported only in independent mode.
- Parameters:
parent – T3PS3000 supply.
name – Channel name.
channel – Channel number, 1 or 2.
**kwargs – Forwarded to
qcodes.instrument.InstrumentChannel.
- get_timer(group: int) tuple[float, float, float][source]¶
Return a timer step’s (voltage, current limit, duration) in V, A, s.
- set_timer(group: int, voltage: float, current: float, time_sec: float) None[source]¶
Set one timer step without starting the timer.
- Parameters:
group – Step number from 1 through 5.
voltage – Voltage in volts, from 0 through 32.
current – Current limit in amperes, from 0 through 3.2.
time_sec – Duration in seconds, from 0 through 10000.
- current: Parameter[float, Self] = self.add_parameter( "current", label="Current limit", unit="A", get_cmd=f"{prefix}:CURR?", set_cmd=f"{prefix}:CURR {{}}", get_parser=float, vals=Numbers(0, 3.2), )¶
Programmed channel current limit, from 0 to 3.2 A.
- measured_current: Parameter[float, Self] = self.add_parameter( "measured_current", unit="A", get_cmd=f"MEAS:CURR? {prefix}", set_cmd=False, get_parser=float, )¶
Measured channel current.
- measured_power: Parameter[float, Self] = self.add_parameter( "measured_power", unit="W", get_cmd=f"MEAS:POWE? {prefix}", set_cmd=False, get_parser=float, )¶
Measured channel power.
- measured_voltage: Parameter[float, Self] = self.add_parameter( "measured_voltage", unit="V", get_cmd=f"MEAS:VOLT? {prefix}", set_cmd=False, get_parser=float, )¶
Measured channel voltage.
- mode: Parameter[str, Self] = self.add_parameter( "mode", label="Regulation mode", get_cmd=lambda: ( "CC" if self.parent.status() & (1 << (channel - 1)) else "CV" ), set_cmd=False, )¶
Present constant-current (CC) or constant-voltage (CV) mode.
- output: Parameter[bool, Self] = self.add_parameter( "output", label="Output enabled", get_cmd=partial(self._get_status_state, channel + 3), set_cmd=f"OUTP {prefix},{{}}", val_mapping={False: "OFF", True: "ON"}, )¶
Enable the channel output.
- timer_enabled: Parameter[bool, Self] = self.add_parameter( "timer_enabled", get_cmd=partial(self._get_status_state, channel + 5), set_cmd=self._set_timer_enabled, val_mapping={False: "OFF", True: "ON"}, )¶
Enable the five-step timer sequence in independent mode.
- class qcodes_contrib_drivers.drivers.Teledyne.T3PS3000.TeledyneT3PS3000FixedChannel(parent: TeledyneT3PS3000, name: str, **kwargs: Unpack[InstrumentBaseKWArgs])[source]¶
Bases:
InstrumentChannel[TeledyneT3PS3000]T3PS3000 CH3, with front-panel selection of 2.5, 3.3, or 5 V.
Only output switching is supported remotely. Output readback is unavailable in the status register, so
outputis explicitly write-only.- Parameters:
parent – T3PS3000 supply.
name – Channel name.
**kwargs – Forwarded to
qcodes.instrument.InstrumentChannel.
qcodes_contrib_drivers.drivers.Teledyne.T3PS30051P module¶
- class qcodes_contrib_drivers.drivers.Teledyne.T3PS30051P.TeledyneT3PS30051P(*args: Any, **kwargs: Any)[source]¶
Bases:
VisaInstrumentTeledyne LeCroy T3PS30051P single-channel, 30 V / 5 A DC power supply.
Construction does not reset the supply or change its output. Closing the connection does not turn the output off. Identification uses the known vendor and model without sending the unsupported
*IDN?query; serial number and firmware are unavailable. Writes wait 100 ms after transmission before returning so subsequent commands do not arrive too soon. Queries wait one second before reading the response.- Parameters:
name – Instrument name.
address – VISA resource address (USB or LAN).
**kwargs – Forwarded to
qcodes.instrument.VisaInstrument.
- current: Parameter[float, Self] = self.add_parameter( "current", label="Current limit", unit="A", get_cmd="CURR?", set_cmd="CURR {}", get_parser=float, vals=Numbers(0, 5), )¶
Programmed current limit, from 0 to 5 A.
- default_terminator = '\n'¶
The default terminator to use if the terminator is not specified when creating the instrument. None means use the default terminator from PyVisa.
- measured_current: Parameter[float, Self] = self.add_parameter( "measured_current", unit="A", get_cmd="MEAS:CURR? CH1", set_cmd=False, get_parser=float, )¶
Measured output current.
- measured_power: Parameter[float, Self] = self.add_parameter( "measured_power", unit="W", get_cmd="MEAS:POWE? CH1", set_cmd=False, get_parser=float, )¶
Measured output power.
- measured_voltage: Parameter[float, Self] = self.add_parameter( "measured_voltage", unit="V", get_cmd="MEAS:VOLT? CH1", set_cmd=False, get_parser=float, )¶
Measured output voltage.
- mode: Parameter[str, Self] = self.add_parameter( "mode", label="Regulation mode", get_cmd=lambda: "CC" if self.status() & 1 else "CV", set_cmd=False, )¶
Present constant-current (CC) or constant-voltage (CV) mode.
- output: Parameter[bool, Self] = self.add_parameter( "output", label="Output enabled", get_cmd=self._get_output, set_cmd="OUTP CH1,{}", val_mapping={False: "OFF", True: "ON"}, )¶
Enable the output; readback is obtained from status bit 4.
- status: Parameter[int, Self] = self.add_parameter( "status", get_cmd="SYST:STAT?", set_cmd=False, get_parser=lambda response: int(response, 0), )¶
bit 0 selects CC/CV, bit 4 is output enabled, bit 5 is four-wire sense, bit 6 is timer enabled, and bit 8 is waveform display enabled.
- Type:
System status register
Module contents¶
- class qcodes_contrib_drivers.drivers.Teledyne.TeledyneT3PS3000(*args: Any, **kwargs: Any)[source]¶
Bases:
VisaInstrumentTeledyne LeCroy T3PS3000 three-channel DC power supply.
CH1 and CH2 support independent, series, and parallel operation. CH3 has front-panel voltage selection and write-only remote output control. Construction and closing the connection do not change output settings. Writes wait 100 ms after transmission before returning so subsequent commands do not arrive too soon. Queries wait one second before reading, including the initial identification query, to allow the supply time to prepare its response.
- Parameters:
name – Instrument name.
address – VISA resource address (USB or LAN).
**kwargs – Forwarded to
qcodes.instrument.VisaInstrument.
- channels = self.add_submodule( "channels", ChannelTuple( self, "channels", TeledyneT3PS3000Channel, [self.ch1, self.ch2], snapshotable=False, ), )¶
The two programmable channels; CH3 is exposed separately.
- default_terminator = '\n'¶
The default terminator to use if the terminator is not specified when creating the instrument. None means use the default terminator from PyVisa.
- dhcp: Parameter[bool, Self] = self.add_parameter( "dhcp", get_cmd="DHCP?", set_cmd="DHCP {}", get_parser=lambda response: ( response.strip().upper().removeprefix("DHCP:").strip() ), val_mapping={False: "OFF", True: "ON"}, )¶
Enable DHCP. Changing network settings can disconnect a LAN session.
- gateway: Parameter[str, Self] = self.add_parameter( "gateway", get_cmd="GATEaddr?", set_cmd=partial(self._set_network_address, "GATEaddr"), get_parser=str.strip, vals=Strings(), )¶
IPv4 gateway. Setting it requires DHCP to be disabled.
- ip_address: Parameter[str, Self] = self.add_parameter( "ip_address", get_cmd="IPaddr?", set_cmd=partial(self._set_network_address, "IPaddr"), get_parser=str.strip, vals=Strings(), )¶
IPv4 address. Setting it requires DHCP to be disabled.
- operation_mode: Parameter[str, Self] = self.add_parameter( "operation_mode", get_cmd=self._get_operation_mode, set_cmd="OUTP:TRACK {}", val_mapping={"independent": 0, "series": 1, "parallel": 2}, )¶
CH1/CH2 tracking mode. Changing it can change the physical outputs.
- selected_channel: Parameter[str, Self] = self.add_parameter( "selected_channel", get_cmd="INST?", set_cmd="INST {}", get_parser=str.strip, vals=Enum("CH1", "CH2"), )¶
Front-panel selected channel; channel parameters use explicit addressing.
- class qcodes_contrib_drivers.drivers.Teledyne.TeledyneT3PS3000Channel(parent: TeledyneT3PS3000, name: str, channel: int, **kwargs: Unpack[InstrumentBaseKWArgs])[source]¶
Bases:
InstrumentChannel[TeledyneT3PS3000]An adjustable T3PS3000 output (CH1 or CH2), rated at 32 V / 3.2 A.
Setpoints and limits apply to an individual channel, including when tracking is enabled. Timer operation is supported only in independent mode.
- Parameters:
parent – T3PS3000 supply.
name – Channel name.
channel – Channel number, 1 or 2.
**kwargs – Forwarded to
qcodes.instrument.InstrumentChannel.
- get_timer(group: int) tuple[float, float, float][source]¶
Return a timer step’s (voltage, current limit, duration) in V, A, s.
- set_timer(group: int, voltage: float, current: float, time_sec: float) None[source]¶
Set one timer step without starting the timer.
- Parameters:
group – Step number from 1 through 5.
voltage – Voltage in volts, from 0 through 32.
current – Current limit in amperes, from 0 through 3.2.
time_sec – Duration in seconds, from 0 through 10000.
- current: Parameter[float, Self] = self.add_parameter( "current", label="Current limit", unit="A", get_cmd=f"{prefix}:CURR?", set_cmd=f"{prefix}:CURR {{}}", get_parser=float, vals=Numbers(0, 3.2), )¶
Programmed channel current limit, from 0 to 3.2 A.
- measured_current: Parameter[float, Self] = self.add_parameter( "measured_current", unit="A", get_cmd=f"MEAS:CURR? {prefix}", set_cmd=False, get_parser=float, )¶
Measured channel current.
- measured_power: Parameter[float, Self] = self.add_parameter( "measured_power", unit="W", get_cmd=f"MEAS:POWE? {prefix}", set_cmd=False, get_parser=float, )¶
Measured channel power.
- measured_voltage: Parameter[float, Self] = self.add_parameter( "measured_voltage", unit="V", get_cmd=f"MEAS:VOLT? {prefix}", set_cmd=False, get_parser=float, )¶
Measured channel voltage.
- mode: Parameter[str, Self] = self.add_parameter( "mode", label="Regulation mode", get_cmd=lambda: ( "CC" if self.parent.status() & (1 << (channel - 1)) else "CV" ), set_cmd=False, )¶
Present constant-current (CC) or constant-voltage (CV) mode.
- output: Parameter[bool, Self] = self.add_parameter( "output", label="Output enabled", get_cmd=partial(self._get_status_state, channel + 3), set_cmd=f"OUTP {prefix},{{}}", val_mapping={False: "OFF", True: "ON"}, )¶
Enable the channel output.
- timer_enabled: Parameter[bool, Self] = self.add_parameter( "timer_enabled", get_cmd=partial(self._get_status_state, channel + 5), set_cmd=self._set_timer_enabled, val_mapping={False: "OFF", True: "ON"}, )¶
Enable the five-step timer sequence in independent mode.
- class qcodes_contrib_drivers.drivers.Teledyne.TeledyneT3PS3000FixedChannel(parent: TeledyneT3PS3000, name: str, **kwargs: Unpack[InstrumentBaseKWArgs])[source]¶
Bases:
InstrumentChannel[TeledyneT3PS3000]T3PS3000 CH3, with front-panel selection of 2.5, 3.3, or 5 V.
Only output switching is supported remotely. Output readback is unavailable in the status register, so
outputis explicitly write-only.- Parameters:
parent – T3PS3000 supply.
name – Channel name.
**kwargs – Forwarded to
qcodes.instrument.InstrumentChannel.
- class qcodes_contrib_drivers.drivers.Teledyne.TeledyneT3PS30051P(*args: Any, **kwargs: Any)[source]¶
Bases:
VisaInstrumentTeledyne LeCroy T3PS30051P single-channel, 30 V / 5 A DC power supply.
Construction does not reset the supply or change its output. Closing the connection does not turn the output off. Identification uses the known vendor and model without sending the unsupported
*IDN?query; serial number and firmware are unavailable. Writes wait 100 ms after transmission before returning so subsequent commands do not arrive too soon. Queries wait one second before reading the response.- Parameters:
name – Instrument name.
address – VISA resource address (USB or LAN).
**kwargs – Forwarded to
qcodes.instrument.VisaInstrument.
- current: Parameter[float, Self] = self.add_parameter( "current", label="Current limit", unit="A", get_cmd="CURR?", set_cmd="CURR {}", get_parser=float, vals=Numbers(0, 5), )¶
Programmed current limit, from 0 to 5 A.
- default_terminator = '\n'¶
The default terminator to use if the terminator is not specified when creating the instrument. None means use the default terminator from PyVisa.
- measured_current: Parameter[float, Self] = self.add_parameter( "measured_current", unit="A", get_cmd="MEAS:CURR? CH1", set_cmd=False, get_parser=float, )¶
Measured output current.
- measured_power: Parameter[float, Self] = self.add_parameter( "measured_power", unit="W", get_cmd="MEAS:POWE? CH1", set_cmd=False, get_parser=float, )¶
Measured output power.
- measured_voltage: Parameter[float, Self] = self.add_parameter( "measured_voltage", unit="V", get_cmd="MEAS:VOLT? CH1", set_cmd=False, get_parser=float, )¶
Measured output voltage.
- mode: Parameter[str, Self] = self.add_parameter( "mode", label="Regulation mode", get_cmd=lambda: "CC" if self.status() & 1 else "CV", set_cmd=False, )¶
Present constant-current (CC) or constant-voltage (CV) mode.
- output: Parameter[bool, Self] = self.add_parameter( "output", label="Output enabled", get_cmd=self._get_output, set_cmd="OUTP CH1,{}", val_mapping={False: "OFF", True: "ON"}, )¶
Enable the output; readback is obtained from status bit 4.
- status: Parameter[int, Self] = self.add_parameter( "status", get_cmd="SYST:STAT?", set_cmd=False, get_parser=lambda response: int(response, 0), )¶
bit 0 selects CC/CV, bit 4 is output enabled, bit 5 is four-wire sense, bit 6 is timer enabled, and bit 8 is waveform display enabled.
- Type:
System status register