Example #1
0
        /// <summary>
        /// 扇扫关闭
        /// </summary>
        /// <param name="strAddr"></param>
        /// <returns></returns>
        static public string SetSanScan_Off(int iAddr, Guid?CommunicationGuid, string CommunicationType)
        {
            string strSanScanResult = "";

            byte[] tmp_Off = Protocol368s.SanScan_Off(iAddr);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_Off);
            return(strSanScanResult);
        }
Example #2
0
        static public string SetPresetCCD(string strAddr, int iDepth, int iFocus, Guid?CommunicationGuid, string CommunicationType)
        {
            string strCCDResult = "";

            byte[] tmp_DF = Protocol368s.PrePointSend_DepthFocus(Convert.ToInt32(strAddr), iDepth, iFocus);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_DF);
            return(strCCDResult);
        }
Example #3
0
        static public string SetPresetTurntable(string strAddr, int iHorizontal, int iVertical, Guid?CommunicationGuid, string CommunicationType)
        {
            string strTurntableResult = "";

            byte[] tmp_HV = Protocol368s.PrePointSend_HorizontalVertical(Convert.ToInt32(strAddr), iHorizontal, iVertical);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_HV);
            return(strTurntableResult);
        }
Example #4
0
        static public string SetIR(int iAction, string strAddr, int iSpeed, int iValue, Guid?CommunicationGuid, string CommunicationType)
        {
            string strIRResult = "";

            byte[] tmp_IR = Protocol368s.Protocol_IR(iAction, Convert.ToInt32(strAddr), iSpeed, iValue);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_IR);
            return(strIRResult);
        }
Example #5
0
        /// <summary>
        /// 转台控制
        /// </summary>
        /// <param name="iAction">动作</param>
        /// <param name="iAddr">地址</param>
        /// <param name="iSpeed">速度</param>
        /// <param name="iCommunicationID">通信ID</param>
        /// <returns></returns>
        static public string SetTurntable(int iAction, string strAddr, int iSpeed, Guid?CommunicationGuid, string CommunicationType)
        {
            string strTurntableResult = "";

            byte[] tmp_byte = Protocol368s.Protocol_Turntable(iAction, Convert.ToInt32(strAddr), iSpeed);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_byte);
            return(strTurntableResult);
        }
Example #6
0
        /// <summary>
        /// 扇扫开启
        /// </summary>
        /// <param name="strAddr"></param>
        /// <returns></returns>
        static public string SetSanScan_Open(int iAddr, int iHorizontlSt, int iHorizontlEnd, int iSpeed_H, int iVerticalSt, int iVerticalEnd, int iSpeed_V, Guid?CommunicationGuid, string CommunicationType)
        {
            string strSanScanResult = "";

            byte[] tmp_SanScan_OpenH = Protocol368s.SanScan_Horizontl(iAddr, iHorizontlSt, iHorizontlEnd, iSpeed_H);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_SanScan_OpenH);
            byte[] tmp_SanScan_OpenV = Protocol368s.SanScan_Vertical(iAddr, iVerticalSt, iVerticalEnd, iSpeed_V);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_SanScan_OpenV);
            return(strSanScanResult);
        }