The hamamatsu module¶
Autogenerated API documentation for hamamatsu¶
This is a driver for the Hamamatsu LC-L1V5 LED Driver. It is based on the Users’s Manual for LC-L1V5 version W2-0363-5
-
class
PyExpLabSys.drivers.hamamatsu.
LCL1V5
(port='/dev/ttyUSB0')[source]¶ Bases:
object
Driver for the Hamamatsu LC-L1V5 LED Driver
-
select_command_communication
()[source]¶ Selecting command communication opens for sending commands to the controller via the serial interface. in panel control mode the commands are limited to checking the control mode
-
switch_led_on
(channel)[source]¶ select a led to switch on.
Parameters: channel (int) – - {0 : ’switch on all leds’,
- 1 : ‘switch on led 1’, 2 : ‘switch on led 2’, 3 : ‘switch on led 3’, 4 : ‘switch on led 4’}
-
switch_led_off
(channel)[source]¶ select a led to switch off.
Parameters: channel (int) – - {0 : ’switch off all leds’,
- 1 : ‘switch off led 1’, 2 : ‘switch off led 2’, 3 : ‘switch off led 3’, 4 : ‘switch off led 4’}
-
check_led_status
(channel)[source]¶ Check the status of a led. For information about steps, refer to manual page 28
Parameters: channel (int) – Returns: - channel, step
- step ({0 : ‘off’,) – 1 : ‘step 1’, 2 : ‘step 2’, 3 : ‘step 3’}
-
set_step_settings
(channel, intensities, times)[source]¶ Sets the intensity and time for all 3 steps on selected channel
Parameters: - channel (int) –
- (%) (intensities) – range : 000 - 100
- (s) (times) – range : 00 - 99 * if times < 10 s range : 0.1 - 9.9
- --------- –
Example
set_step_settings(1,(‘010’,’050’,’100’),(‘5.0’,’10’,’99’))
-