且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

利用串口实现LIMS机器的双向通信

更新时间:2022-06-13 23:10:40

我会从信息开始http://msdn.microsoft.com/en-us/library/system.io.ports。 serialport(v = vs.110).aspx [ ^ ]

您需要编写与机器设备之间发送和接收文本的代码。您的代码应该在发送文本时检查时间/输出条件,并且您应该有代码来处理收到的文本。您可以找到很多很好的例子(谷歌)。请记住尽可能将代码编写为通用和模块化。您将在以后使用它(保证)。



regs。 ron O。
I would start with information http://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.110).aspx[^]
You will need to write code that sends and receives text to and from your machine device. Your code should to check for time/out conditions when text is sent, and you should have code that processes the text received. There are many good examples you can find(Google). Remember to write your code as generic and modular as possible. You will be using it later(guaranteed).

regs. ron O.