/// <summary> /// 接收: 采集器模拟采样通道校正命令(未测试) /// </summary> /// <param name="pkgData"></param> void ReceiveChannelCorrection(DataPackage pkgData) { var item = new ChannelCorrectionItem(); using (MemoryStream ms = new MemoryStream(pkgData.PureData)) { using (BinaryReader br = new BinaryReader(ms)) { br.ReadByte(); item.Channel_data1 = br.ReadInt16(); item.Channel_data2 = br.ReadInt16(); item.Channel_data3 = br.ReadInt16(); item.Channel_data4 = br.ReadInt16(); byte[] R = br.ReadBytes(5); } } OnDataChangeAction(pkgData, item); }
/// <summary> /// 采集器模拟采样通道校正命令 /// </summary> /// <param name="value"></param> public void SetChannelCorrection(ChannelCorrectionItem value) { Set(HCCommand.EX_COLLECTOR_CHANNEL_CORRECTION, value.ToBuffer()); }