dwfpy.device.ElectronicsExplorer

class ElectronicsExplorer(configuration=None, serial_number=None, device_type=None, device_index=None)[source]

Bases: DeviceBase

Digilent Electronics Explorer device.

Parameters
  • configuration – Select the active configuration.

  • serial_number – Filter devices by serial number.

  • device_id – Filter devices by device ID.

  • device_type – Filter devices by device type.

  • device_index – Filter devices by device index.

Methods

close

Closes the device.

get_parameter

Gets a device parameter.

get_trigger

Gets the configured trigger setting for a trigger I/O pin.

open

Opens the device.

reset

Resets and configures all device and instrument parameters to default values.

set_parameter

Sets a device parameter.

set_trigger

Sets the trigger I/O pin with a specific TriggerSource option.

trigger_pc

Generates one pulse on the PC trigger line.

Attributes

analog_input

Gets the Analog Input module (Oscilloscope).

analog_io

Gets the Analog IO module.

analog_output

Gets the Analog Output module (Arbitrary Waveform Generator).

application

Gets the WaveForms application.

auto_configure

Gets or sets a value indicating to automatically configure the device when parameters are changed.

auto_reset

Gets or sets a value indicating to reset the device automatically on exit.

configuration

Gets the selected configuration index.

configurations

Returns a list of device configurations.

digital_input

Gets the Digital Input module (Logic Analyzer).

digital_io

Gets the Digital IO module.

digital_output

Gets the Digital Output module (Pattern Generator).

handle

Gets a handle to the device.

id

Gets the device ID.

is_open

Returns true if the device has been opened.

name

Gets the device name.

protocols

Gets the Digital Protocols module.

revision

Gets the device revision.

serial_number

Gets the 12-digit, unique device serial number.

supplies

Gets the power supplies.

trigger_info

Gets the supported trigger source options for the global trigger bus.

trigger_slope_info

Gets the supported trigger slopes.

user_name

Gets the user-defined device name.

voltmeters

Gets the voltmeters.

class Supplies(device)[source]

Bases: object

The power supplies.

class Fixed(device)[source]

Bases: object

The fixed power supply.

property current: float

Gets the current of the fixed power supply.

Return type

float

property enabled: bool

Enables or disables the fixed power supply.

Return type

bool

setup(voltage, enabled=True)[source]

Sets up the power supply.

voltagefloat

The output voltage.

enabledbool, optional

If True, then the power supply is enabled (default True).

Return type

None

property voltage: float

Gets or sets the voltage of the fixed power supply.

Return type

float

class Negative(device)[source]

Bases: object

The negative power supply.

property current: float

Gets the current of the negative power supply.

Return type

float

property current_limit: float

Gets or sets the current limit of the negative power supply.

Return type

float

property enabled: bool

Enables the negative power supply.

Return type

bool

setup(voltage, current_limit=None, enabled=True)[source]

Sets up the negative power supply.

voltagefloat

The output voltage (must be a negative value).

current_limitfloat, optional

The power supply current limit in A.

enabledbool, optional

If True, then the power supply is enabled (default True).

Return type

None

property voltage: float

Gets or sets the voltage of the negative power supply.

Return type

float

class Positive(device)[source]

Bases: object

The positive power supply.

property current: float

Gets the current of the positive power supply.

Return type

float

property current_limit: float

Gets or sets the current limit of the positive power supply.

Return type

float

property enabled: bool

Enables or disables the positive power supply.

Return type

bool

setup(voltage, current_limit=None, enabled=True)[source]

Sets up the positive power supply.

voltagefloat

The output voltage.

current_limitfloat, optional

The power supply current limit in A.

enabledbool, optional

If True, then the power supply is enabled (default True).

Return type

None

property voltage: float

Gets or sets the voltage of the positive power supply.

Return type

float

class Reference1(device)[source]

Bases: object

The voltage reference 1.

property enabled: bool

Enables the voltage reference 1.

Return type

bool

setup(voltage, enabled=True)[source]

Sets up the voltage reference.

voltagefloat

The output voltage.

enabledbool, optional

If True, then the voltage reference is enabled (default True).

Return type

None

property voltage: float

Gets or sets the voltage of the voltage reference 1.

Return type

float

class Reference2(device)[source]

Bases: object

The voltage reference 2.

property enabled: bool

Enables the voltage reference 2.

Return type

bool

setup(voltage, enabled=True)[source]

Sets up the voltage reference.

voltagefloat

The output voltage.

enabledbool, optional

If True, then the voltage reference is enabled (default True).

Return type

None

property voltage: float

Gets or sets the voltage of the voltage reference 2.

Return type

float

property fixed: Fixed

Gets the fixed power supply.

Return type

Fixed

property master_enable: bool

Gets or sets the master enable switch.

Return type

bool

property master_enable_status: bool

Gets the master enable status.

Return type

bool

property negative: Negative

Gets the negative power supply.

Return type

Negative

property positive: Positive

Gets the positive power supply.

Return type

Positive

property reference1: Reference1

Gets the voltage reference 1.

Return type

Reference1

property reference2: Reference2

Gets the voltage reference 2.

Return type

Reference2

class Voltmeters(device)[source]

Bases: object

The devices voltmeters.

property voltmeter1: float

Reads the voltage of voltmeter 1.

Return type

float

property voltmeter2: float

Reads the voltage of voltmeter 2.

Return type

float

property voltmeter3: float

Reads the voltage of voltmeter 3.

Return type

float

property voltmeter4: float

Reads the voltage of voltmeter 4.

Return type

float

property analog_input: AnalogInput

Gets the Analog Input module (Oscilloscope).

Return type

AnalogInput

property analog_io: AnalogIo

Gets the Analog IO module.

Return type

AnalogIo

property analog_output: AnalogOutput

Gets the Analog Output module (Arbitrary Waveform Generator).

Return type

AnalogOutput

property application: Application

Gets the WaveForms application.

Return type

Application

property auto_configure: int

Gets or sets a value indicating to automatically configure the device when parameters are changed.

Return type

int

property auto_reset: bool

Gets or sets a value indicating to reset the device automatically on exit.

Return type

bool

close()

Closes the device.

Return type

None

property configuration: Optional[Union[int, str]]

Gets the selected configuration index.

Return type

Union[int, str, None]

property configurations: Tuple[Configuration, ...]

Returns a list of device configurations.

Return type

Tuple[Configuration, ...]

property digital_input: DigitalInput

Gets the Digital Input module (Logic Analyzer).

Return type

DigitalInput

property digital_io: DigitalIo

Gets the Digital IO module.

Return type

DigitalIo

property digital_output: DigitalOutput

Gets the Digital Output module (Pattern Generator).

Return type

DigitalOutput

get_parameter(parameter)

Gets a device parameter.

Return type

int

get_trigger(pin)

Gets the configured trigger setting for a trigger I/O pin.

Return type

TriggerSource

property handle: object

Gets a handle to the device.

Return type

object

property id: DeviceId

Gets the device ID.

Return type

DeviceId

property is_open: bool

Returns true if the device has been opened.

Return type

bool

property name: str

Gets the device name.

Return type

str

open()

Opens the device.

Return type

None

property protocols: Protocols

Gets the Digital Protocols module.

Return type

Protocols

reset()

Resets and configures all device and instrument parameters to default values.

Return type

None

property revision: str

Gets the device revision.

Return type

str

property serial_number: str

Gets the 12-digit, unique device serial number.

Return type

str

set_parameter(parameter, value)

Sets a device parameter.

Return type

None

set_trigger(pin, trigger_source)

Sets the trigger I/O pin with a specific TriggerSource option.

Return type

None

property supplies: Supplies

Gets the power supplies.

Return type

Supplies

property trigger_info: Tuple[TriggerSource, ...]

Gets the supported trigger source options for the global trigger bus.

Return type

Tuple[TriggerSource, ...]

trigger_pc()

Generates one pulse on the PC trigger line.

Return type

None

property trigger_slope_info: Tuple[TriggerSlope, ...]

Gets the supported trigger slopes.

Return type

Tuple[TriggerSlope, ...]

property user_name: str

Gets the user-defined device name.

Return type

str

property voltmeters: Voltmeters

Gets the voltmeters.

Return type

Voltmeters