dwfpy.digital_input.DigitalInputChannel

class DigitalInputChannel(module, channel)[source]

Bases: object

Represents a Digital Input channel.

Methods

setup_reset_trigger

Sets up the trigger reset condition for this channel.

setup_trigger

Sets up the trigger condition for this channel.

Attributes

device

Gets the device.

index

Gets the channel index.

label

Gets or sets the channel label.

module

Gets the Digital Input module.

trigger

Gets the trigger unit.

property device: Device

Gets the device.

Return type

Device

property index: int

Gets the channel index.

Return type

int

property label: str

Gets or sets the channel label.

Return type

str

property module: DigitalInput

Gets the Digital Input module.

Return type

DigitalInput

setup_reset_trigger(condition)[source]

Sets up the trigger reset condition for this channel.

conditionstr

The trigger condition. Can be ‘ignore’, ‘low’, ‘high’, ‘rise’, ‘fall’, or ‘edge’.

Return type

None

setup_trigger(condition)[source]

Sets up the trigger condition for this channel.

conditionstr

The trigger condition. Can be ‘ignore’, ‘low’, ‘high’, ‘rise’, ‘fall’, or ‘edge’.

Return type

None

property trigger: DigitalInputChannelTrigger

Gets the trigger unit.

Return type

DigitalInputChannelTrigger