Setup / Initialization

Bases: PicoScopeBase, shared_ps6000a_psospa

PicoScope OSP (A) API specific functions

Methods:

Name Description
close_unit

Closes the PicoScope device and releases the hardware handle.

get_device_resolution

Return the currently configured resolution.

get_enumerated_units

Returns count, serials and serial string length of a specific PicoScope unit.

get_unit_info

Get specified information from unit. Use UNIT_INFO.XXXX or integer.

get_unit_serial

Get and return batch and serial of unit.

open_unit

Opens a connection to a PicoScope unit and retrieves USB power details.

ping_unit

Check that the device is still connected.

set_device_resolution

Configure the ADC resolution using ps6000aSetDeviceResolution.

close_unit()

Closes the PicoScope device and releases the hardware handle.

This calls the PicoSDK CloseUnit function to properly disconnect from the device.

Returns:
  • None

    None

get_device_resolution()

Return the currently configured resolution. Returns: :class:RESOLUTION: Device resolution.

get_enumerated_units()

Returns count, serials and serial string length of a specific PicoScope unit.

Returns:
  • int

    Number of devices of this type

  • str

    Comma separated string of all serials

  • int

    Length of string

get_unit_info(unit_info)

Get specified information from unit. Use UNIT_INFO.XXXX or integer.

Parameters:
  • unit_info (UNIT_INFO) –

    Specify information from PicoScope unit i.e. UNIT_INFO.PICO_BATCH_AND_SERIAL.

Returns:
  • str( str ) –

    Returns data from device.

get_unit_serial()

Get and return batch and serial of unit.

Returns:
  • str( str ) –

    Returns serial, e.g., "JR628/0017".

open_unit(serial_number=None, resolution=0)

Opens a connection to a PicoScope unit and retrieves USB power details.

Parameters:
  • serial_number (str, default: None ) –

    Serial number of the specific PicoScope unit to open (e.g., "JR628/0017"). If None, the first available unit is opened.

  • resolution (RESOLUTION | resolution_literal, default: 0 ) –

    The desired device resolution. Can be a RESOLUTION enum or literal integer. Defaults to 0.

Returns:

ping_unit()

Check that the device is still connected. This wraps ps6000aPingUnit which verifies communication with the PicoScope. If the call succeeds the method returns True. Returns: bool: True if the unit responded.

set_device_resolution(resolution)

Configure the ADC resolution using ps6000aSetDeviceResolution. Args: resolution: Desired resolution as a :class:RESOLUTION value.