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); }
public bool SetTimeDivision(THantekTimeDivision timeDiv) { m_timeDiv = timeDiv; return dsoSetTimeDIV(m_deviceIndex, (int)timeDiv) == 1; }
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; }
public bool SetTimeDivision(THantekTimeDivision timeDiv) { m_timeDiv = timeDiv; return(dsoSetTimeDIV(m_deviceIndex, (int)timeDiv) == 1); }