Example #1
0
        private void Sid_model2_Click(object sender, EventArgs e)
        {
            pidResultMsg.Clear();
            deviceInfo.TempBuffer   = new StringBuilder();
            deviceInfo.ModelSidType = DeviceInfo.ModelType.MODEL2;

            PidServer.PassThruStartMsgFilter(deviceInfo);
            PidServer.CommandMode(deviceInfo);

            pidResultMsg.Text = deviceInfo.TempBuffer.ToString();
        }
Example #2
0
        private void Sid_model1_Click(object sender, EventArgs e)
        {
            //设备初始化+启动设备
            //过滤
            //执行SID1发送+读取整个过程
            pidResultMsg.Clear();

            deviceInfo.TempBuffer   = new StringBuilder();
            deviceInfo.ModelSidType = DeviceInfo.ModelType.MODEL1;

            PidServer.PassThruStartMsgFilter(deviceInfo);
            PidServer.CommandMode(deviceInfo);

            pidResultMsg.Text = deviceInfo.TempBuffer.ToString();
        }