pypicosdk.constants

Classes:

Name Description
ACTION

Action codes used to manage and clear data buffers.

BANDWIDTH_CH

Class for different bandwidth configurations.

CHANNEL

Constants for each channel of the PicoScope.

COUPLING

Enum class representing different types of coupling used in signal processing.

DATA_TYPE

Class for different data types.

POWER_SOURCE

Defines different power source connection statuses.

RANGE

Enum class representing different voltage ranges used in signal processing.

RATIO_MODE

Defines various ratio modes for signal processing.

RESOLUTION

Resolution constants for PicoScope devices.

TRIGGER_DIR

Trigger direction constants for configuring PicoScope triggers.

UNIT_INFO

Unit information identifiers for querying PicoScope device details.

WAVEFORM

Waveform type constants for PicoScope signal generator configuration.

ACTION

Action codes used to manage and clear data buffers.

These action codes are used with functions like setDataBuffer to specify the type of operation to perform on data buffers.

Attributes:
  • CLEAR_ALL

    Clears all data buffers.

  • ADD

    Adds data to the buffer.

  • CLEAR_THIS_DATA_BUFFER

    Clears the current data buffer.

  • CLEAR_WAVEFORM_DATA_BUFFERS

    Clears all waveform data buffers.

  • CLEAR_WAVEFORM_READ_DATA_BUFFERS

    Clears the waveform read data buffers.

BANDWIDTH_CH

Class for different bandwidth configurations.

Attributes:
  • FULL

    Full bandwidth configuration.

  • BW_20MHZ

    Bandwidth of 20 MHz.

  • BW_200MHZ

    Bandwidth of 200 MHz.

CHANNEL

Constants for each channel of the PicoScope.

Attributes:
  • A

    Channel A

  • B

    Channel B

  • C

    Channel C

  • D

    Channel D

  • E

    Channel E

  • F

    Channel F

  • G

    Channel G

  • H

    Channel H

COUPLING

Enum class representing different types of coupling used in signal processing.

Attributes:
  • AC

    Represents AC coupling.

  • DC

    Represents DC coupling.

  • DC_50OHM

    Represents 50 Ohm DC coupling.

DATA_TYPE

Class for different data types.

Attributes:
  • INT8_T

    8-bit signed integer.

  • INT16_T

    16-bit signed integer.

  • INT32_T

    32-bit signed integer.

  • UINT32_T

    32-bit unsigned integer.

  • INT64_T

    64-bit signed integer.

POWER_SOURCE

Defines different power source connection statuses.

These values represent the connection status of a power supply or USB device.

Attributes:
  • SUPPLY_CONNECTED

    Power supply is connected.

  • SUPPLY_NOT_CONNECTED

    Power supply is not connected.

  • USB3_0_DEVICE_NON_USB3_0_PORT

    USB 3.0 device is connected to a non-USB 3.0 port.

RANGE

Enum class representing different voltage ranges used in signal processing.

Attributes:
  • mV10

    Voltage range of ±10 mV.

  • mV20

    Voltage range of ±20 mV.

  • mV50

    Voltage range of ±50 mV.

  • mV100

    Voltage range of ±100 mV.

  • mV200

    Voltage range of ±200 mV.

  • mV500

    Voltage range of ±500 mV.

  • V1

    Voltage range of ±1 V.

  • V2

    Voltage range of ±2 V.

  • V5

    Voltage range of ±5 V.

  • V10

    Voltage range of ±10 V.

  • V20

    Voltage range of ±20 V.

  • V50

    Voltage range of ±50 V.

RATIO_MODE

Defines various ratio modes for signal processing.

Attributes:
  • AGGREGATE

    Aggregate mode for data processing.

  • DECIMATE

    Decimation mode for reducing data resolution.

  • AVERAGE

    Averaging mode for smoothing data.

  • DISTRIBUTION

    Mode for calculating distribution statistics.

  • SUM

    Mode for summing data.

  • TRIGGER_DATA_FOR_TIME_CALCULATION

    Mode for calculating trigger data for time-based calculations.

  • SEGMENT_HEADER

    Mode for segment header data processing.

  • TRIGGER

    Trigger mode for event-based data.

  • RAW

    Raw data mode, without any processing.

RESOLUTION

Resolution constants for PicoScope devices.

WARNING: Not all devices support all resolutions.

Attributes:
  • _8BIT

    8-bit resolution.

  • _10BIT

    10-bit resolution.

  • _12BIT

    12-bit resolution.

  • _14BIT

    14-bit resolution.

  • _15BIT

    15-bit resolution.

  • _16BIT

    16-bit resolution.

Examples:

>>> scope.open_unit(resolution=RESOLUTION._16BIT)

TRIGGER_DIR

Trigger direction constants for configuring PicoScope triggers.

Attributes:
  • ABOVE

    Trigger when the signal goes above the threshold.

  • BELOW

    Trigger when the signal goes below the threshold.

  • RISING

    Trigger on rising edge.

  • FALLING

    Trigger on falling edge.

  • RISING_OR_FALLING

    Trigger on either rising or falling edge.

UNIT_INFO

Unit information identifiers for querying PicoScope device details.

Attributes:
  • PICO_DRIVER_VERSION

    PicoSDK driver version.

  • PICO_USB_VERSION

    USB version (e.g., USB 2.0 or USB 3.0).

  • PICO_HARDWARE_VERSION

    Hardware version of the PicoScope.

  • PICO_VARIANT_INFO

    Device model or variant identifier.

  • PICO_BATCH_AND_SERIAL

    Batch and serial number of the device.

  • PICO_CAL_DATE

    Device calibration date.

  • PICO_KERNEL_VERSION

    Kernel driver version.

  • PICO_DIGITAL_HARDWARE_VERSION

    Digital board hardware version.

  • PICO_ANALOGUE_HARDWARE_VERSION

    Analogue board hardware version.

  • PICO_FIRMWARE_VERSION_1

    First part of the firmware version.

  • PICO_FIRMWARE_VERSION_2

    Second part of the firmware version.

Examples:

>>> scope.get_unit_info(picosdk.UNIT_INFO.PICO_BATCH_AND_SERIAL)
"JM115/0007"

WAVEFORM

Waveform type constants for PicoScope signal generator configuration.

Attributes:
  • SINE

    Sine wave.

  • SQUARE

    Square wave.

  • TRIANGLE

    Triangle wave.

  • RAMP_UP

    Rising ramp waveform.

  • RAMP_DOWN

    Falling ramp waveform.

  • SINC

    Sinc function waveform.

  • GAUSSIAN

    Gaussian waveform.

  • HALF_SINE

    Half sine waveform.

  • DC_VOLTAGE

    Constant DC voltage output.

  • PWM

    Pulse-width modulation waveform.

  • WHITENOISE

    White noise output.

  • PRBS

    Pseudo-random binary sequence.

  • ARBITRARY

    Arbitrary user-defined waveform.