Source file: /~heha/ewa/Reluktanzmotor/maweig-Motor-200831.zip/DLOG_4CH.cpp

#include "DLOG_4CH.h"

void DLOG_4CH<float>::operator()() {
 if (triggered) {
  if (++skip_count==pre_scalar)     {
   skip_count=0;
   output[0][count]=input[0];
   output[1][count]=input[1];
   output[2][count]=input[2];
   output[3][count]=input[3];
   count++;
   if (count==size)    {
    count=0;
    triggered=false;
   }
  }
 }else{ /* wait for trigger*/
  if (input[0]>trig_value && prev_value<trig_value) triggered=true;/* rising edge detected start logging data*/
 }
 prev_value=input[0];
}
Detected encoding: ASCII (7 bit)8