本文介绍了如何为我的c#项目创建串口思想编程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何为我的c#项目创建串口思想编程
c#中的项目我通过编码创建了串口..
how to create serial port thought programming for my c# project
my project in c# and i have create serial port by coding..
推荐答案
using System.IO.Ports;
您可以在C#中使用内置的serialport。它位于System.IO.Ports包中。
You can use the inbuilt serialport in C#. It is in the package System.IO.Ports.
sport = new SerialPortManager(PortName, baudRate, dataBits, parity, rtsEnable, dtrEnable, stopBits);
有几个构造函数可用。为您选择合适的构造函数。您可以设置属性然后使用它。
There are several constructors available. Select suitable constructor for you. You can set the properties and then use it.
这篇关于如何为我的c#项目创建串口思想编程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!