Setup / Initialization

Bases: PicoScopeBase, Sharedps5000aPs6000a

PicoScope 5000 (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 PicoScope unit.

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=cst.RESOLUTION.BIT_8)

Opens PicoScope unit.

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

    Serial number of specific unit, e.g., JR628/0017.

  • resolution (RESOLUTION, default: 0 ) –

    Resolution of device.

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.