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 |
close_unit()
Closes the PicoScope device and releases the hardware handle.
This calls the PicoSDK CloseUnit
function to properly disconnect from the device.
Returns: |
|
---|
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: |
|
---|
get_unit_info(unit_info)
Get specified information from unit. Use UNIT_INFO.XXXX or integer.
Parameters: |
|
---|
Returns: |
|
---|
get_unit_serial()
Get and return batch and serial of unit.
Returns: |
|
---|
open_unit(serial_number=None, resolution=0)
Opens a connection to a PicoScope unit and retrieves USB power details.
Parameters: |
|
---|
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.