C/C++ Equivalent: NISCOPE_VAL_VOLTAGE_CYCLE_AVERAGE

Voltage Cycle Average = (Σ waveform[i]) / pointsPerPeriod

The number of points in a period in volts is calculated using the equation:

pointsPerPeriod = period / dt

where period is the measured period of the signal and dt is the time between two points. The result will then be converted to an integer from a floating point value.