InoDrive / IO / get_inputs_data
InoDrive.IO.get_inputs_data(self)
Get Raw Inputs Data from the Module.
Arguments: self (Object): Reference to IO Instance.
Returns:
Dict:
• analog (Float) – Raw Analog Input value.
• digital (Integer) – Voltage State of Inputs.
• polarity (Integer) – Configured Inputs Polarity State.
• safety (Integer) – Connection State of Safety Inputs.
• success (Boolean) – Successfully retrieved Inputs Data, True or False.
import CkInoDriveAPI # Instantiate InoDrive Object and Connect by Name Drive = CkInoDriveAPI.InoDrive(target='Name', autoConnect=True) # Get Inputs Data from the Module data = Drive.IO.get_inputs_data() print(data)