msl.equipment.resources.picotech.picoscope.channel module

Contains the information about a PicoScope channel.

class msl.equipment.resources.picotech.picoscope.channel.PicoScopeChannel(channel, enabled, coupling, voltage_range, voltage_offset, bandwidth, max_adu_value)[source]

Bases: object

Contains the information about a PicoScope channel.

This class is used by PicoScope and is not meant to be called directly.

Parameters:
  • channel (enum.IntEnum) – The PSX000xChannel enum.

  • enabled (bool) – Whether the channel is enabled.

  • coupling (enum.IntEnum) – The PSX000xCoupling enum, e.g. AC or DC.

  • voltage_range (float) – The voltage range, in Volts.

  • voltage_offset (float) – The voltage offset, in Volts.

  • bandwidth (enum.IntEnum or None) – The PSX000xBandwidthLimiter enum.

  • max_adu_value (int) – The maximum analog-to-digital unit.

property channel

The PSX000xChannel enum.

Type:

enum.IntEnum

property enabled

Whether the channel is enabled.

Type:

bool

property coupling

The PSX000xCoupling enum, e.g. AC or DC.

Type:

enum.IntEnum

property voltage_range

The voltage range, in Volts.

Type:

float

property voltage_offset

The voltage offset, in Volts.

Type:

float

property bandwidth

The PSX000xBandwidthLimiter enum.

Type:

enum.IntEnum or None

property volts_per_adu

The conversion factor to convert ADU to volts

Type:

float

property raw

The raw data, in ADU

Type:

numpy.ndarray

property buffer

The raw data, in ADU

Type:

numpy.ndarray

property volts

The data, in volts

Type:

numpy.ndarray

property num_samples

The size of the data array.

Type:

int

allocate(num_captures, num_samples)[source]

Allocate memory to save the data.

Parameters:
  • num_captures (int) – The number of captures

  • num_samples (int) – The number of samples