jcontrol.io
Class ADC

java.lang.Object
  extended by jcontrol.io.ADC

public class ADC
extends Object

Control of JControls analog-digital converter. This is used to read out analog devices, e.g. thermometers, voltmeters connected to JControl.

The number of available ADC-channels is hardware dependent, you can

Author:
Marcus Timmermann, Andreas Wesseler
Available on JControl Devices:
all

Constructor Summary
ADC()
           
 
Method Summary
static int getValue(int channel)
          Returns the current Value of the selected channel (analog digital conversion is performed immediately).
 
Methods inherited from class java.lang.Object
clone, equals, notifyAll, wait
 

Constructor Detail

ADC

public ADC()
Method Detail

getValue

public static int getValue(int channel)
Returns the current Value of the selected channel (analog digital conversion is performed immediately).

Returns:
the actual ADC value (range: 0 ... 255)