Keithley 2510 TEC SourceMeter

class pymeasure.instruments.keithley.Keithley2510(adapter, name='Keithley 2510 TEC SourceMeter', **kwargs)

Bases: SCPIMixin, Instrument

Represents the Keithley 2510 TEC Sourcemeter and provides a high-level interface for interacting with the instrument.

check_errors()

Read all errors from the instrument.

Returns:

List of error entries.

check_get_errors()

Check for errors after having gotten a property and log them.

Called if check_get_errors=True is set for that property.

If you override this method, you may choose to raise an Exception for certain errors.

Returns:

list – List of error entries.

check_set_errors()

Check for errors after having set a property and log them.

Called if check_set_errors=True is set for that property.

If you override this method, you may choose to raise an Exception for certain errors.

Returns:

list – List of error entries.

check_temperature_stability(tolerance=0.1, period=10, points=64)

Determine whether the temperature is stable at the temperature setpoint over a specified period.

Parameters:
  • tolerance – Maximum allowed deviation from temperature setpoint, in degrees Centigrade. (default: 0.1)

  • period – Time period over which stability is checked, in seconds. (default: 10)

Returns:

True if stable, False otherwise.

clear()

Clear the instrument status byte.

property complete: Any

Get the synchronization bit.

This property allows synchronization between a controller and a device. The Operation Complete query places an ASCII character 1 into the device’s Output Queue when all pending selected device operations have been finished.

property current: Any

Measure the DC current through the thermoelectric cooler, in Amps.

disable_source()

Disables the source.

disable_temperature_protection()

Disable temperature protection.

enable_source()

Enables the source.

enable_temperature_protection()

Enable temperature protection.

property id: Any

Get the identification of the instrument.

property next_error: Any

Get the next error in the queue. If you want to read and log all errors, use check_errors() instead.

property options: Any

Get the device options installed.

read(**kwargs)

Read up to (excluding) read_termination or the whole read buffer.

Return type:

str

read_binary_values(**kwargs)

Read binary values from the device.

read_bytes(count, **kwargs)

Read a certain number of bytes from the instrument.

Parameters:
  • count (int) – Number of bytes to read. A value of -1 indicates to read the whole read buffer.

  • kwargs – Keyword arguments for the adapter.

Returns bytes:

Bytes response of the instrument (including termination).

Return type:

bytes

reset()

Reset the instrument.

shutdown()

Brings the instrument to a safe and stable state

Return type:

None

property source_enabled: Any

Control whether the source is enabled (bool). The convenience methods enable_source() and disable_source() can also be used.

property status: Any

Get the status byte and Master Summary Status bit.

property temperature: Any

Measure the temperature using the thermistor, in degrees centigrade.

property temperature_pid

Control the temperature PID loop constants through the tuple (proportional_const, integral_const, derivative_const).

property temperature_pid_d: Any

Control the derivative constant of the temperature PID loop.

property temperature_pid_i: Any

Control the integral constant of the temperature PID loop.

property temperature_pid_p: Any

Control the proportional constant of the temperature PID loop.

property temperature_protection_enabled: Any

Control whether temperature protection is enabled. Takes values True or False. The convenience methods enable_temperature_protection() and disable_temperature_protection() can also be used.

property temperature_protection_high: Any

Control the upper temperature limit in degrees centigrade (float strictly from -50 to 225)

property temperature_protection_low: Any

Control the lower temperature limit in degrees centigrade (float strictly from -50 to 225)

property temperature_protection_range

Control the lower and upper temperature limits in degrees centigrade through the tuple (lower_limit, upper_limit).

property temperature_setpoint: Any

Control the temperature setpoint, in degrees centigrade (float strictly from -50 to 225)

property voltage: Any

Measure the DC voltage through the thermoelectric cooler, in Volts.

wait_for(query_delay=None)

Wait for some time. Used by ‘ask’ to wait before reading.

Parameters:

query_delay (Optional[float]) – Delay between writing and reading in seconds. None is default delay. (default: None)

Return type:

None

wait_for_temperature_stable(tolerance=0.1, period=10, should_stop=<function Keithley2510.<lambda>>, timeout=60)

Block the program, waiting for the temperature to stabilize at the temperature setpoint.

Parameters:
  • tolerance – Maximum allowed deviation from temperature setpoint, in degrees Centigrade. (default: 0.1)

  • period – Time period over which stability is checked, in seconds. (default: 10)

  • should_stop – Function that returns True to stop waiting. (default: <function Keithley2510.<lambda> at 0x76f1f4089f80>)

  • timeout – Maximum waiting time, in seconds. (default: 60)

Returns:

True when stable, False if stopped by should_stop.

Raises:

TimeoutError – If the temperature does not stabilize within the timeout period.

write(command, **kwargs)

Write a string command to the instrument appending write_termination.

Parameters:
  • command (str) – command string to be sent to the instrument

  • kwargs – Keyword arguments for the adapter.

Return type:

None

write_binary_values(command, values, *args, **kwargs)

Write binary values to the device.

Parameters:
  • command (str) – Command to send.

  • values (Sequence[Union[int, float]]) – The values to transmit.

  • **kwargs (*args,) – Further arguments to hand to the Adapter.

Return type:

None

write_bytes(content, **kwargs)

Write the bytes content to the instrument.

Return type:

None