예제 #1
0
        public bool Calibrate(THantekTimeDivision timeDiv, THantekVoltDivision voltDivCH1, THantekVoltDivision voltDivCH2, out short[] level)
        {
            m_timeDiv    = timeDiv;
            m_voltDivCH1 = voltDivCH1;
            m_voltDivCH2 = voltDivCH2;

            bool calibrateSucess = false;

            short[] l = new short[CALIBRATION_LEVEL_ARRAY_LENGTH];
            unsafe
            {
                fixed(short *pLevel = l)
                {
                    calibrateSucess = dsoCalibrate(m_deviceIndex, (int)m_timeDiv, (int)m_voltDivCH1, (int)m_voltDivCH2, pLevel) == 1;
                }
            }
            level = l;
            return(calibrateSucess);
        }
예제 #2
0
 public bool SetTimeDivision(THantekTimeDivision timeDiv)
 {
     m_timeDiv = timeDiv;
     return dsoSetTimeDIV(m_deviceIndex, (int)timeDiv) == 1;
 }
예제 #3
0
        public bool Calibrate(THantekTimeDivision timeDiv, THantekVoltDivision voltDivCH1, THantekVoltDivision voltDivCH2, out short[] level)
        {
            m_timeDiv = timeDiv;
            m_voltDivCH1 = voltDivCH1;
            m_voltDivCH2 = voltDivCH2;

            bool calibrateSucess = false;
            short[] l = new short[CALIBRATION_LEVEL_ARRAY_LENGTH];
            unsafe {
                fixed (short* pLevel = l) {
                    calibrateSucess = dsoCalibrate(m_deviceIndex, (int)m_timeDiv, (int)m_voltDivCH1, (int)m_voltDivCH2, pLevel) == 1;
                }
            }
            level = l;
            return calibrateSucess;
        }
예제 #4
0
 public bool SetTimeDivision(THantekTimeDivision timeDiv)
 {
     m_timeDiv = timeDiv;
     return(dsoSetTimeDIV(m_deviceIndex, (int)timeDiv) == 1);
 }