Пример #1
0
        public double GetScopeMeterReading(ScopeInput.MuxedInputSignal signal, Imports.Range range)
        {
            //Set the scope address
            outputController.SetScopeAddr((int)signal);

            Thread.Sleep(50);

            double reading = scopeInput.GetScopeQuickValue(mainScopeChannel, range);

            //Reset the scope address
            outputController.SetScopeAddr(0);

            return(reading);
        }
Пример #2
0
        public double GetScopePwmFrequency(ScopeInput.MuxedInputSignal signal, double expectedVoltage, int sampleTimeMs)
        {
            double pwmFreq = 0;

            //Set the scope address
            outputController.SetScopeAddr((int)signal);

            //Get crossing counts for given time frame
            pwmFreq = scopeInput.GetScopePwmFrequency(mainScopeChannel, expectedVoltage, sampleTimeMs);

            //Reset the scope address
            outputController.SetScopeAddr(0);

            return(pwmFreq);
        }