Exemple #1
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_HSt = Protocol209sSR.PrePointSend_Horizontal(iAddr, iHorizontlSt);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_HSt);
            byte[] tmp_VSt = Protocol209sSR.PrePointSend_Vertical(iAddr, iVerticalSt);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_VSt);

            byte[] tmp_Origins = Protocol209sSR.SanScan_Origins(iAddr);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_Origins);
            Thread.Sleep(50);
            byte[] tmp_HEnd = Protocol209sSR.PrePointSend_Horizontal(iAddr, iHorizontlEnd);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_HEnd);
            byte[] tmp_VEnd = Protocol209sSR.PrePointSend_Vertical(iAddr, iVerticalEnd);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_VEnd);
            byte[] tmp_Destinations = Protocol209sSR.SanScan_Destinations(iAddr);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_Destinations);
            Thread.Sleep(50);
            byte[] tmp_Open = Protocol209sSR.SanScan_Open(iAddr);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_Open);
            return(strSanScanResult);
        }
Exemple #2
0
        static public string SetPresetTurntable(string strAddr, int iHorizontal, int iVertical, Guid?CommunicationGuid, string CommunicationType)
        {
            string strTurntableResult = "";

            byte[] tmp_H = Protocol209sSR.PrePointSend_Horizontal(Convert.ToInt32(strAddr), iHorizontal);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_H);
            Thread.Sleep(50);
            byte[] tmp_V = Protocol209sSR.PrePointSend_Vertical(Convert.ToInt32(strAddr), iVertical);
            CommunicationTransmission.CommunicationWrite(CommunicationGuid, CommunicationType, tmp_V);
            return(strTurntableResult);
        }