format adc result in test script