Channel Configuration

Bases: PicoScopeBase, shared_ps6000a_psospa, shared_4000a_6000a

PicoScope 6000 (A) API specific functions

Methods:

Name Description
get_accessory_info

Return accessory details for the given channel.

get_adc_limits

Gets the ADC limits for specified devices.

get_analogue_offset_limits

Get the allowed analogue offset range for range and coupling.

get_channel_combinations

Return valid channel flag combinations for a proposed timebase.

report_all_channels_overvoltage_trip_status

Return the overvoltage trip status for each channel.

reset_channels_and_report_all_channels_overvoltage_trip_status

Reset channels and return overvoltage trip status for each.

set_all_channels_off

Turns all channels off, based on unit number of channels

set_channel

Enable/disable a channel and specify certain variables i.e. range, coupling, offset, etc.

set_channel_off

Sets a channel to OFF (6000E)

set_channel_on

Sets a channel to ON at a specified range (6000E)

get_accessory_info(channel, info)

Return accessory details for the given channel. This wraps the driver GetAccessoryInfo call which retrieves information about any accessory attached to channel. Args: channel: Channel the accessory is connected to. info: Information field requested from :class:UNIT_INFO. Returns: str: Information string provided by the driver.

get_adc_limits()

Gets the ADC limits for specified devices.

Currently tested on: 6000a.

Returns:
  • tuple( tuple ) –

    (minimum value, maximum value)

Raises:
  • PicoSDKException

    If device hasn't been initialized.

get_analogue_offset_limits(range, coupling)

Get the allowed analogue offset range for range and coupling.

get_channel_combinations(timebase)

Return valid channel flag combinations for a proposed timebase. This wraps ps6000aChannelCombinationsStateless and requires the device to be opened first. Args: timebase: Proposed timebase value to test. Returns: list[int]: Sequence of bit masks using :class:PICO_CHANNEL_FLAGS. Raises: PicoSDKException: If the device has not been opened.

report_all_channels_overvoltage_trip_status()

Return the overvoltage trip status for each channel. This wraps ps6000aReportAllChannelsOvervoltageTripStatus to query whether any channel's 50 Ω input protection has tripped. Returns: list[PICO_CHANNEL_OVERVOLTAGE_TRIPPED]: Trip status for all channels.

reset_channels_and_report_all_channels_overvoltage_trip_status()

Reset channels and return overvoltage trip status for each. Wraps ps6000aResetChannelsAndReportAllChannelsOvervoltageTripStatus. Returns: list[PICO_CHANNEL_OVERVOLTAGE_TRIPPED]: Trip status for all channels.

set_all_channels_off()

Turns all channels off, based on unit number of channels

set_channel(channel, range=RANGE.V1, enabled=True, coupling=COUPLING.DC, offset=0.0, bandwidth=BANDWIDTH_CH.FULL, probe_scale=1.0)

Enable/disable a channel and specify certain variables i.e. range, coupling, offset, etc.

For the ps6000a drivers, this combines set_channel_on/off to a single function. Set channel on/off by adding enabled=True/False

Parameters:
  • channel (CHANNEL) –

    Channel to setup.

  • range (RANGE, default: V1 ) –

    Voltage range of channel.

  • enabled (bool, default: True ) –

    Enable or disable channel.

  • coupling (COUPLING, default: DC ) –

    AC/DC/DC 50 Ohm coupling of selected channel.

  • offset (int, default: 0.0 ) –

    Analog offset in volts (V) of selected channel.

  • bandwidth (BANDWIDTH_CH, default: FULL ) –

    Bandwidth of channel (selected models).

  • probe_scale (float, default: 1.0 ) –

    Probe attenuation factor such as 1 or 10.

set_channel_off(channel)

Sets a channel to OFF (6000E)

set_channel_on(channel, range, coupling=COUPLING.DC, offset=0.0, bandwidth=BANDWIDTH_CH.FULL)

Sets a channel to ON at a specified range (6000E)