ezeio2:scriptref:getinputmode

This is an old revision of the document!


Get the input mode on a native ezeio input.

Description

GetInputMode( inputno )

This will get the hardware input mode on a ezeio input. The command only works on native ezeio inputs - on the ezeio controller or ezeio expansion I/O devices. Third party modules use different methods to change input configuration.

Parameters

inputno Input number to query. Inputs 1-8 are on the ezeio. Use “DVCn+inputno” for expansion devices

Return value

Value Mode Hardware config Input unit Range
0 INMODE_10V High impedance, >60kΩ mV (Volt) 0-10000mV
1 INMODE_30mA 200Ω shunt to ground μA (current) 0-30000μA
2 INMODE_PULLUP Weak pull-up to +5V, <1mA Ohm (resistance) 0-1000000Ω
3 INMODE_TEST internal test mode

Example usage

   SetInputMode(3, INMODE_30mA);         // Set input 3 on ezeio to measure current
   x = GetInputMode(3);                  // x will be assigned the value 1 (INMODE_30mA)
  • ezeio2/scriptref/getinputmode.1752171961.txt.gz
  • Last modified: 2025-07-10 18:26
  • by andreh