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:
  • hue (int | str) –

    Colour as a hue in [0-359] or a basic colour from the following: ['red', 'green', 'blue', 'yellow', 'pink']

  • saturation (int, default: 100 ) –

    Saturation of the colour [0-100]. Defaults to 100.

set_all_led_states(state)

Sets the state of all LED's on the PicoScope.

Parameters:
  • state (str) –

    ['auto', 'on', 'off']

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:
  • brightness (int) –

    Brightness percentage [0 - 100]

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:
  • led (str | list[str]) –

    The selected LED. Must be one or a list of these values: 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'AWG', 'AUX'.

  • hue (int | list[int]) –

    Colour as a hue in [0-359] or a basic colour from the following: ['red', 'green', 'blue', 'yellow', 'pink']

  • saturation (int | list[int]) –

    Saturation of the LED, [0-100].

set_led_states(led, state)

Sets the state for a selected LED. Between default behaviour (auto), on or off.

Parameters:
  • led (str) –

    The selected LED. Must be one of these values: 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'AWG', 'AUX'.

  • state (str) –

    State of selected LED: 'auto', 'off', 'on'.