Hi Bob,
You need to create an array to store the readings in, this is untested but here goes:/Henrik.Code:n CON 5 ' Number of sample Readings VAR [n] ' Create array of size n i VAR BYTE ' Get values For i = 0 to (n-1) ' Take n readings ADCIN 0, Readings[i] Pause 10 NEXT ' Display values For i = 0 to (n-1) HSEROUT ["Reading ", #i, ": ", #Readings[i],13 Next
Bookmarks