Implement NI-SCOPE's Sample Mode of InstrumentStudio in LabVIEW

Updated Sep 29, 2023

Issue Details

In InstrumentStudio, sample mode (such as Peak Detection and Averaging) can be configured as illustrated by the image below.
acd524d8-d552-4f81-bced-6b0a451cf5df.png

May I know how Peak Detection and Averaging sample modes can be implemented within LabVIEW?

Solution

The Averaging and Peak Detection modes are implemented in the InstrumentStudio application code, as post-processing on the acquired waveforms. There is no driver setting or API that will directly replicate those modes in LabVIEW.

Additional Information

To get similar results in LabVIEW, user has to implement the averaging or peak detect algorithms themselves. For averaging, InstrumentStudio do an exponential moving average as waveforms are acquired up to the averaging count. For Peak Detect, InstrumentStudio acquire the record at the maximum sample rate and then bucket the samples to find the min and max for each "sample" at the user-configured sample rate.