Variable = MPHADIn (ID, Channel)
ID | The ID of the module |
Channel | The number of the channel to read (1~4) |
Reads from one of the 4 channels on the MD-HADIN4 module.
If the module cannot be found, 199,999 is returned. In 1~5V mode, -111,111 is returned if voltage is less than 1V and 222,222 is returned if value is greater than 5V. Values falling within the 1~5V rage will return a value between 0 and 100,000 (13.3 bit resolution).
A = MPHADIn(2, 3) ' Read from module 2, channel 3 and store value in A