There are two vis that can be combined :
- the threshold peak detector (in the Analyse/Signal processing/Time domain sub-palette), gives the number of peaks above a threshold value, in an array of data;
- the DataqueuePtbyPt in the Analyse/Point by Point/Other functions sub palette) that builds a queue (array) of a given length. This second vi can be used to collect points from your microcontroller ADC.
Have a look at the attached vi.
CC
Chilly Charly (aka CC)