资源简介
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
///
/// Inclusion of PEAK PCAN-Basic namespace
///
using Peak.Can.Basic;
using TPCANHandle = System.UInt16;
using TPCANBitrateFD = System.String;
using TPCANTimestampFD = System.UInt64;
namespace ICDIBasic
{
public partial class Form1 : Form
{
#region Structures
///
/// Message Status structure used to show CAN Messages
/// in a ListView
///
private class MessageStatus
{
private TPCANMsgFD m_Msg;
private TPCANTimestampFD m_TimeStamp;
private TPCANTimestampFD m_oldTimeStamp;
private int m_iIndex;
private int m_Count;
private bool m_bShowPeriod;
private bool m_bWasChanged;
public MessageStatus(TPCANMsgFD canMsg TPCANTimestampFD canTimestamp int listIndex)
{
m_Msg = canMsg;
m_TimeStamp = canTimestamp;
m_oldTimeStamp = canTimestamp;
m_iIndex = listIndex;
m_Count = 1;
m_bShowPeriod = true;
m_bWasChanged = false;
}
public void Update(TPCANMsgFD canMsg TPCANTimestampFD canTimestamp)
{
m_Msg = canMsg;
m_oldTimeStamp = m_TimeStamp;
m_TimeStamp = canTimestamp;
m_bWasChanged = true;
m_Count += 1;
}
public TPCANMsgFD CANMsg
{
get { return m_Msg; }
}
public TPCANTimestampFD Timestamp
{
get { return m_TimeStamp; }
}
public int Position
{
get { return m_iIndex; }
}
public string TypeString
{
get { return GetMsgTypeString(); }
}
public string IdString
{
get { return GetIdString(); }
}
public string DataString
{
get { return GetDataString(); }
}
public int Count
{
get { return m_Count; }
}
public bool ShowingPeriod
{
get { return m_bShowPeriod; }
set
{
if (m_bShowPeriod ^ value)
{
m_bShowPeriod = value;
m_bWasChanged = true;
}
}
}
public bool MarkedAsUpdated
{
get { return m_bWasChanged; }
set { m_bWasChanged = v
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 62464 2019-05-24 11:28 PCANBasicExample.exe
文件 401344 2017-11-20 09:46 PCANBasic.dll
文件 112128 2019-05-24 11:28 PCANBasicExample.pdb
----------- --------- ---------- ----- ----
575936 3
相关资源
- 车辆CAN总线数据现场分析工具源码
- CAN消息编辑器
- 压缩和解压(基于ICSharpCode)
- TcpClient C#2010读取PLC
- RSlinux Opc Client
- C# RPC框架(微服务)
- c# can协议开发
- C#访问OPC(附代码讲解)
- 规约测试软件源码(PCL)
- C#编写的Gerber查看器
- 用C#实现PC与西门子PLC串行通讯
- EDSDK-13.11.0.rar
- C#实现封装SPC过程能力工具类ProcessC
- C# 使用 TcpClient,Socket 聊天
- 周立功CAN盒使用范例C#
- OPC UA Server .Net源码,SDK
- 01 STM32F205 多功能LCD时钟-原理图PCB文件
- .net对接支付宝PC网页端
- PC桌面程序鼠标轨迹在Robotstudio中重现
- C#网络抓包MySniffer+WinPcap_中文技术文档
- 边缘检测综合
- PCQQ协议 C#版本
- 0322 C# OPC UA 简单.zip
- Canon EOS SDK 2.11 C# 开发
- 2321363LearnWPFMVVM-XAMLCandtheMVVMpattern.pdf
- 基于C#和SharpPcap实现的sniffer
- VS C#语言编写的与plc通讯的OPC代码完整
- c# 读取 wireshark pcap文件 官方源码
- opc应用程序入门中文
- C#基于OPC服务器读写欧姆龙PLC数据
评论
共有 条评论