IOWJ (advertising) supports new SpecialModeFunction ADC of IO-Warrior 56

This is the English forum for all topics related to IO-Warrior. Please post in English only

Moderator: Guido Körber

Post Reply
towaibw
Posts: 195
Joined: Sat Dec 27, 2003 10:55 pm
Location: Berlin / Germany
Contact:

IOWJ (advertising) supports new SpecialModeFunction ADC of IO-Warrior 56

Post by towaibw »

One channel with reference Gnd...4,16V is activated by:

Iow56 dev56 = devs.getIow56Device();
ADC adc = new ADC(1,7,0);
dev56.addSpecialModeFunctionImpl(adc);

This method allows reading the first channel at any time:

int val = adc.getValue(0);

A Change Listener is also available. This call back function is called when the value changed.

Post Reply