//开启扇扫 public static void SectorScanOpenControl(SectorScanData tmpSectorScanData) { if (tmpSectorScanData.VideoGuid != null) { DeviceData data = new DeviceData(); data.tmpSectorScanData = tmpSectorScanData; string str = JsonConvert.SerializeObject(data); string message = "EquipmentControl/SectorScanOpen," + str + "\r\n"; byte[] b = Encoding.UTF8.GetBytes(message); CommunicationClass.stream2.Write(b, 0, b.Length); } }
public static void SectorScanOpen(Guid?tmpGuid, int i_HorizontalSt, int i_HorizontalEnd, int i_Hspeed, int i_VerticalSt, int i_VerticalEnd, int i_Vspeed) { SectorScanData tmpSectorScanData = new SectorScanData(); if (tmpGuid != null) { tmpSectorScanData.VideoGuid = tmpGuid; tmpSectorScanData.i_HorizontalSt = i_HorizontalSt; tmpSectorScanData.i_HorizontalEnd = i_HorizontalEnd; tmpSectorScanData.i_Hspeed = i_Hspeed; tmpSectorScanData.i_VerticalSt = i_VerticalSt; tmpSectorScanData.i_VerticalEnd = i_VerticalEnd; tmpSectorScanData.i_Vspeed = i_Vspeed; Control_Command.SectorScanOpenControl(tmpSectorScanData); } }