基本信息
源码名称:周立功CAN通信二次开发上位机
源码大小:0.75M
文件格式:.rar
开发语言:C#
更新时间:2021-11-23
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559

本次赞助数额为: 2 元 
   源码介绍

基于周立功CAN通信开发的C#语言上位机,可实现接收与发送报文

private void button_StartCAN_Click(object sender, EventArgs e)
        {
            if (m_bOpen == 0)
                return;
            if (started_)
            {
                Device.VCI_ResetCAN(m_devtype, m_devind, m_canind);
            }
            else
            {
                UInt32 ret = Device.VCI_StartCAN(m_devtype, m_devind, m_canind);
                if (ret != 1)
                {
                    MessageBox.Show("StartCAN失败", "错误",
                            MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
            }
            started_ = !started_;
            button_StartCAN.Text = started_ ? stopText : startText;
        }