Arrays and Buffers

Reset the Sample Buffer

easy

Clears old measurements from an array and resets the recorded reading count to zero.

What it teaches

A buffer holds readings in an array, with a separate count of how many were recorded. Reset clears all eight elements, not just the counted ones, and clears again every scan while the request stays on. It never records.

Parameters

TagDirectionTypeDefaultDescription
In_ResetInputBOOL0Hold at 1 to keep the readings and their count at zero
Ref_SamplesInOutREAL[8]Eight measurements to clear
Ref_CountInOutDINTNumber of readings recorded in Ref_Samples

Required behavior