dwfpy.device.DigitalDiscovery
- class DigitalDiscovery(configuration=None, serial_number=None, device_type=None, device_index=None)[source]
Bases:
DeviceBaseDigilent Digital Discovery 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
Closes the device.
Gets a device parameter.
Gets the configured trigger setting for a trigger I/O pin.
Opens the device.
Resets and configures all device and instrument parameters to default values.
Sets a device parameter.
Sets the trigger I/O pin with a specific TriggerSource option.
Generates one pulse on the PC trigger line.
Attributes
Gets the Analog Input module (Oscilloscope).
Gets the Analog IO module.
Gets the Analog Output module (Arbitrary Waveform Generator).
Gets the WaveForms application.
Gets or sets a value indicating to automatically configure the device when parameters are changed.
Gets or sets a value indicating to reset the device automatically on exit.
Gets the selected configuration index.
Returns a list of device configurations.
Gets or sets the frequency for DIO lines.
Gets the Digital Input module (Logic Analyzer).
Gets the Digital IO module.
Gets the Digital Output module (Pattern Generator).
Gets or sets the weak pull for DIN lines.
Gets or sets the drive strength for DIO lines.
Gets or sets the pull enable for DIO 39-24 as bit-field set.
Gets or sets the pull up/down for DIO 39-24 as bit-field set.
Gets or sets the slew rate for DIO lines.
Gets a handle to the device.
Gets the device ID.
Returns true if the device has been opened.
Gets the device name.
Gets the Digital Protocols module.
Gets the device revision.
Gets the 12-digit, unique device serial number.
Gets the power supplies.
Gets the supported trigger source options for the global trigger bus.
Gets the supported trigger slopes.
Gets the USB line current.
Gets the USB line voltage.
Gets the user-defined device name.
Gets the VIO current reading.
Gets the VIO voltage reading.
- class Supplies(device)[source]
Bases:
objectThe power supplies.
- class Digital(device)[source]
Bases:
objectThe digital power supply.
- property voltage: float
Gets or sets the voltage of the digital power supply.
- Return type
float
- 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 analog_input: AnalogInput
Gets the Analog Input module (Oscilloscope).
- Return type
- property analog_output: AnalogOutput
Gets the Analog Output module (Arbitrary Waveform Generator).
- Return type
- property application: Application
Gets the WaveForms application.
- Return type
- 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_frequency: float
Gets or sets the frequency for DIO lines.
- Return type
float
- property digital_input: DigitalInput
Gets the Digital Input module (Logic Analyzer).
- Return type
- property digital_output: DigitalOutput
Gets the Digital Output module (Pattern Generator).
- Return type
- property din_pull_up_down: float
Gets or sets the weak pull for DIN lines. Can be 0.0=low, 0.5=middle, 1.0=high
- Return type
float
- property dio_drive_strength: float
Gets or sets the drive strength for DIO lines. Can be 0 (auto based on digital voltage), 2, 4, 6, 8, 12, or 16mA
- Return type
float
- property dio_pull_enable: int
Gets or sets the pull enable for DIO 39-24 as bit-field set.
- Return type
int
- property dio_pull_up_down: int
Gets or sets the pull up/down for DIO 39-24 as bit-field set.
- Return type
int
- property dio_slew: int
Gets or sets the slew rate for DIO lines. 0=QuietIO, 1=Slow, 2=Fast
- Return type
int
- 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
- property handle: object
Gets a handle to the device.
- Return type
object
- 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
- 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 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 usb_current: float
Gets the USB line current.
- Return type
float
- property usb_voltage: float
Gets the USB line voltage.
- Return type
float
- property user_name: str
Gets the user-defined device name.
- Return type
str
- property vio_current: float
Gets the VIO current reading.
- Return type
float
- property vio_voltage: float
Gets the VIO voltage reading.
- Return type
float