dwfpy.digital_output.DigitalOutput
- class DigitalOutput(device)[source]
Bases:
objectDigital Output module (Pattern Generator).
Methods
Configures and starts the instrument.
Gets the instrument status.
Resets and configures all instrument parameters to default values.
Sets up the pattern generator.
Sets up the trigger condition.
Attributes
Gets a collection of Digital Output channels.
Gets the internal clock frequency in Hz.
Gets the device.
Gets or sets the repeat count.
Gets the maximum repeat count.
Gets the minimum repeat count.
Gets the remaining repeat count.
Gets or sets the run length in seconds.
Gets the maximum run length in seconds.
Gets the minimum run length in seconds.
Gets the remaining run length in seconds.
Gets the trigger unit.
Gets or sets the wait length in seconds.
Gets the maximum wait length in seconds.
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
- 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
- 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