177 Examples 980 X=ADVAL(3) 125 TEMP=ADVAL(X) intensity=ADVAL(1) Syntax = ADVAL ( ) Description A function which returns the last known value of the analogue to digital channel given in its argument. There are four channels, each of 10 bit resolution, but the returned value is scaled to 16 bits. The analogue to digital converter cycles repeatedly through the selected channels and keeps a table of the result so that the function ADVAL returns very quickly. New samples are taken about every ten milliseconds. Therefore with four channels selected results will be updated every 40ms. See chapter 43 for information on changing the number of channels selected.