LED Control
The LED's on the 3000E are controllable via hue, saturation and brightness. To control them these rules need to be met:
- To control each LED
set_led_states([led], 'on')
must be called first per LED.
Here is an example of the three different methods of changing the LEDs
import pypicosdk as psdk
import time
scope = psdk.psospa()
scope.open_unit()
# Set channel A to red (hue=0, sat=100)
scope.set_led_states('A', 'on')
scope.set_led_colours('A', 0, 100)
time.sleep(2)
# OR set A, B and C to red, green and blue (sat=100)
scope.set_led_states(['A', 'B', 'C'], ['on', 'on', 'on'])
scope.set_led_colours(['A', 'B', 'C'], ['red', 'green', 'blue'], [100, 100, 100])
time.sleep(2)
# or set all LEDs to pink.
scope.set_all_led_states('on')
scope.set_all_led_colours('pink')
input('Waiting for user... ')
The LEDs are controlled via the functions below:
Bases: PicoScopeBase
, shared_ps6000a_psospa
PicoScope OSP (A) API specific functions
Methods:
Name | Description |
---|---|
set_all_led_colours |
Sets all LED's on the PicoScope to a single colour |
set_all_led_states |
Sets the state of all LED's on the PicoScope. |
set_led_brightness |
Set the brightness of all configurable LEDs. |
set_led_colours |
Sets the colour of the selected LED using HUE and Saturation |
set_led_states |
Sets the state for a selected LED. Between default behaviour (auto), |
set_all_led_colours(hue, saturation=100)
Sets all LED's on the PicoScope to a single colour
Parameters: |
|
---|
set_all_led_states(state)
Sets the state of all LED's on the PicoScope.
Parameters: |
|
---|
set_led_brightness(brightness)
Set the brightness of all configurable LEDs.
It will not take affect until one of the following functions are ran: - run_block_capture() - run_streaming() - set_aux_io_mode() - siggen_apply()
Parameters: |
|
---|
set_led_colours(led, hue, saturation)
Sets the colour of the selected LED using HUE and Saturation
It will not take affect until one of the following functions are ran: - run_block_capture() - run_streaming() - set_aux_io_mode() - siggen_apply()
Parameters: |
|
---|
set_led_states(led, state)
Sets the state for a selected LED. Between default behaviour (auto), on or off.
Parameters: |
|
---|