日期:2014-05-17 浏览次数:20908 次
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
namespace 读取串口数据
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
System.IO.Ports.SerialPort comport = new System.IO.Ports.SerialPort();
private void Form1_Load(object sender, EventArgs e)
{
comport.BaudRate = 9600;
comport.DataBits = 8;