private void btnClose_Click(object sender, EventArgs e)
        {
            int    error  = 0;
            string strMsg = "";

            error = N5751A_Driver.isEnableChannel_N5715A(CGloabal.g_InstrN5751AModule.nHandle, CGloabal.g_nSimulteFlag, 0, ref strMsg);
            if (error < 0)
            {
                CCommonFuncs.ShowHintInfor(eHintInfoType.error, strMsg);
            }
            else
            {
            }
        }
        private void btnOpen_Click(object sender, EventArgs e)
        {
            int    error  = 0;
            string strMsg = "";

            error = N5751A_Driver.isEnableChannel_N5715A(CGloabal.g_InstrN5751AModule.nHandle, CGloabal.g_nSimulteFlag, 1, ref strMsg);
            if (error < 0)
            {
                strMsg = string.Format("电源通道打开失败");
                CCommonFuncs.ShowHintInfor(eHintInfoType.error, strMsg);
                return;
            }
            else
            {
                error = N5751A_Driver.SetOutputVoltage(CGloabal.g_InstrN5751AModule.nHandle, CGloabal.g_nSimulteFlag, (double)volOut1.Value, strMsg);
                error = N5751A_Driver.SetMaxElectricityVal(CGloabal.g_InstrN5751AModule.nHandle, CGloabal.g_nSimulteFlag, (double)eleOut1.Value, strMsg);
            }
        }