dwfpy.digital_io.DigitalIoChannel
- class DigitalIoChannel(module, channel)[source]
Bases:
objectRepresents an Digital IO channel.
Methods
Sets up the channel.
Attributes
Returns True of the pin can be read.
Returns True of the pin can be written.
Gets the device.
Enables or disables the pin as an output.
Gets the channel index.
Gets the input state of the pin.
Gets or sets the channel label.
Gets the Digital IO module.
Gets or sets the ouput state of the pin.
- property can_read: bool
Returns True of the pin can be read.
- Return type
bool
- property can_write: bool
Returns True of the pin can be written.
- Return type
bool
- property enabled: bool
Enables or disables the pin as an output.
- Return type
bool
- property index: int
Gets the channel index.
- Return type
int
- property input_state: bool
Gets the input state of the pin. Before calling this function, call the ‘read_status()’ function to read the Digital I/O states from the device.
- Return type
bool
- property label: str
Gets or sets the channel label.
- Return type
str
- property output_state: bool
Gets or sets the ouput state of the pin.
- Return type
bool