Class WsDigitalInput


  • public class WsDigitalInput
    extends DigitalInput
    Reads a digital input.
    • Constructor Detail

      • WsDigitalInput

        public WsDigitalInput​(java.lang.String p_name,
                              int channel,
                              boolean p_pullup)
        Construct the digital input.
        Parameters:
        p_name - Descriptive name for the input.
        channel - Hardware channel used for input.
        p_pullup - Whether pull up more should be used.
    • Method Detail

      • readRawValue

        public boolean readRawValue()
        Reads the value from the digital input. Note: if pull up mode is enabled input is reversed.
        Specified by:
        readRawValue in class DigitalInput
        Returns:
        Raw value from input.