dwfpy.digital_output.DigitalOutput

class DigitalOutput(device)[source]

Bases: object

Digital Output module (Pattern Generator).

Methods

configure

Configures and starts the instrument.

read_status

Gets the instrument status.

reset

Resets and configures all instrument parameters to default values.

setup

Sets up the pattern generator.

setup_trigger

Sets up the trigger condition.

Attributes

channels

Gets a collection of Digital Output channels.

clock_frequency

Gets the internal clock frequency in Hz.

device

Gets the device.

repeat_count

Gets or sets the repeat count.

repeat_count_max

Gets the maximum repeat count.

repeat_count_min

Gets the minimum repeat count.

repeat_count_status

Gets the remaining repeat count.

run_length

Gets or sets the run length in seconds.

run_length_max

Gets the maximum run length in seconds.

run_length_min

Gets the minimum run length in seconds.

run_length_status

Gets the remaining run length in seconds.

trigger

Gets the trigger unit.

wait_length

Gets or sets the wait length in seconds.

wait_length_max

Gets the maximum wait length in seconds.

wait_length_min

Gets the minimum wait length in seconds.

property channels: Tuple[DigitalOutputChannel, ...]

Gets a collection of Digital Output channels.

Return type

Tuple[DigitalOutputChannel, ...]

property clock_frequency: float

Gets the internal clock frequency in Hz.

Return type

float

configure(start=False)[source]

Configures and starts the instrument.

Return type

None

property device: Device

Gets the device.

Return type

Device

read_status()[source]

Gets the instrument status.

Return type

Status

property repeat_count: int

Gets or sets the repeat count.

Return type

int

property repeat_count_max: int

Gets the maximum repeat count.

Return type

int

property repeat_count_min: int

Gets the minimum repeat count.

Return type

int

property repeat_count_status: float

Gets the remaining repeat count.

Return type

float

reset()[source]

Resets and configures all instrument parameters to default values.

Return type

None

property run_length: float

Gets or sets the run length in seconds.

Return type

float

property run_length_max: float

Gets the maximum run length in seconds.

Return type

float

property run_length_min: float

Gets the minimum run length in seconds.

Return type

float

property run_length_status: float

Gets the remaining run length in seconds.

Return type

float

setup(run_length=None, wait_length=None, repeat_count=None, configure=False, start=False)[source]

Sets up the pattern generator.

run_lengthfloat, optional

The run length in seconds.

wait_lengthfloat, optional

The wait length in seconds.

repeat_countint, optional

The repeat count.

configurebool, optional

If True, then the instrument is configured (default False).

startbool, optional

If True, then the instrument is started (default False).

Return type

None

setup_trigger(source=None, slope=None)[source]

Sets up the trigger condition.

sourcestr, optional

The trigger source. Can be ‘none’, ‘pc’, ‘detector-analog-in’, ‘detector-digital-in’, ‘analog-in’, ‘digital-in’, ‘digital-out’, ‘analog-out1’, ‘analog-out2’, ‘analog-out3’, ‘analog-out3’, ‘external1’, ‘external2’, ‘external3’, ‘external4’, ‘low’, ‘high’, or ‘clock’.

slopestr, optional

The trigger slope. Can be ‘rising’, ‘falling’, or ‘either’.

Return type

None

property trigger: DigitalOutputTrigger

Gets the trigger unit.

Return type

DigitalOutputTrigger

property wait_length: float

Gets or sets the wait length in seconds.

Return type

float

property wait_length_max: float

Gets the maximum wait length in seconds.

Return type

float

property wait_length_min: float

Gets the minimum wait length in seconds.

Return type

float