Hi Marc,
Ao and A1 are block, Do and Ai work at 1ms 115 200 / You can put 57600,38400 ../
Config (size=10, id= 1): 50 2 0 16 2 0 32 1 3 0
Debug (id 12, size 10, type 7): 50 2 0 16 2 0 32 1 3 0
Attachment pwr-bb1942d3fbe35a2dd6eaac8fa818de1f.gz not found
For Di : pwr_func.c void readAll(){
----
// Read Digital inputs
for ( i = 0; i < diSize; i++) amsg[ diSize+i] = Di
& diMask;
=>
for ( i = 0; i < diSize; i++) amsg[3 +i] = Di & diMask;
Also working Ao2, Ao3 cannels, but for now there should be a Ao0 and Ao1,
also in pwr_func.c
in:
aoWrite () and writeAll ()
Ao
= msgData & aoMask ; = => Ao = msgData ;
aoMask makes the output 0
On the Arduino pin 11 and 3 I measure from 0-5V analogue
Ao outputs channels also must have a different number, eg 0,1,2,3
Post edited by: ivo1204, at: 2011/05/15 13:24