Debug(data[i].ToString(„0.000“) + „ V“);
}
//Get FFT
Debug(„FFT (first 10 values“);
double[] fft = Scope.GetFFT(0);
for (int i = 0; i < 10; i++)
{
Debug(fft[i].ToString(„0.000“));
}
Scope.Stop();
// Trigger
Scope.TriggerMode = 'M';
Scope.TriggerLowerLimit = -0.5f;
Scope.TriggerUpperLimit = 0.5f;
Scope.TriggerPoint = 50;
Scope.TriggerChannel = CH1;
// Amplitude
Scope.AmplitudeCh1 = 10;
Scope.AmplitudeCh2 = 10;
// Probe
Scope.ProbeCh1 = 1;
Scope.ProbeCh2 = 1;
// Offset
Scope.OffsetCh1 = 0;
Scope.OffsetCh2 = 0;
// Analog oszilloscope
Debug(„Analog oszilloscope“);
Scope.ActiveChannels = CH1;
Scope.SampleCount = 10000;
Scope.SamplingDuration = 0.1f;
Scope.SamplingMode = OSZILLOSCOPE;
Scope.Single();
Sleep(1000);