ILX Lighwave LDP3811
- class pymeasure.instruments.ilxlightwave.LDP3811(adapter, name='ILX Lightwave LDP 3811', includeSCPI=False, **kwargs)
Bases:
InstrumentRepresents the ILX Lightwave LDP3811 Pulsed Laser Diode Driver and provides a high-level interface for interacting with the instrument.
- check_errors()
Read all errors from the instrument and log them.
- Returns:
List of error entries.
- check_get_errors()
Check for errors after having gotten a property and log them.
Called if
check_get_errors=Trueis 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=Trueis 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.
- clear()
Clears the instrument status byte
- Return type:
None
- property complete
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 current, in mA (float).
- property current_limit_200: Any
Control the current limit for the 200mA range, in mA (float, strictly in range 0 to 200).
- property current_limit_500: Any
Control the current limit for the 500mA range, in mA (float, strictly in range 0 to 500).
- property current_range_500_enabled: Any
Control whether the 500mA output current range is enabled (bool). If False the 200mA output current range is selected.
- property current_setpoint
Control the current setpoint, in mA (float, strictly in range 0 to (
current_limit_500ifcurrent_range_500_enabledelsecurrent_limit_200)).
- property duty_cycle: Any
Measure the duty cycle (pulse width / pulse repetition interval), as a percentage (float).
- property duty_cycle_setpoint
Control the duty cycle (pulse width / pulse repetition interval) as a percentage (float, strictly in range (100 *
pulse_width/ 6500) to 100).
- property id
Get the identification of the instrument.
- property mode: Any
Control the mode as an
LDP3811Modeenum.
- property next_error
Get the next error of the instrument (tuple of code and message).
- property options
Get the device options installed.
- property output_enabled: Any
Control whether the current output is enabled (bool).
- property pulse_repetition_interval: Any
Measure the pulse repetition interval, in us (float).
- property pulse_repetition_interval_setpoint
Control the pulse repetition interval, in us (float, strictly in range max(1,
pulse_width) to 6500).
- property pulse_width: Any
Measure the pulse width, in us (float).
- property pulse_width_setpoint
Control the pulse width, in us (float strictly in range 0.1 to
pulse_repetition_interval.
- 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()
Resets the instrument.
- Return type:
None
- set_to_max_duty_cycle()
Set the duty cycle to the maximum valid value given the present mode, pulse width, and pulse repetition interval, and return the duty cycle.
- set_to_min_duty_cycle()
Set the duty cycle to the minimum valid value given the present mode, pulse width, and pulse repetition interval, and return the duty cycle.
- shutdown()
Brings the instrument to a safe and stable state
- Return type:
None
- property status
Get the status byte and Master Summary Status bit.
- 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
- write(command, **kwargs)
Write a string command to the instrument appending write_termination.
- Parameters:
command (
str) – command string to be sent to the instrumentkwargs – 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