daq function
first test version
from 0 to 16, cleaned
add output