正在加载图片...
5.1软硬件通信的基本方式 基于Vindows.系统的工控机与FPGA的如何通信? ∥在使用前打开 serialport.Open(); /在使用后关闭 serialport.Close(); ∥接收数据的函数 public void Receive(Object sender,EventArgs e) SerialPort sp =(SerialPort)sender; Int32 length sp.BytesToRead; Byte[]buffer new Byte[length]: sp.Read(buffer,0,length); 3基于Windows系统的工控机与FPGA的如何通信? 5.1 软硬件通信的基本方式 //在使用前打开 serialport.Open(); //在使用后关闭 serialport.Close(); //接收数据的函数 public void Receive(Object sender, EventArgs e) { SerialPort sp = (SerialPort)sender; Int32 length = sp.BytesToRead; Byte[] buffer = new Byte[length]; sp.Read(buffer, 0, length); ······ }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有