如何使用C#在串行端口中传递信号 [英] how to pass signal in serial port using c#

查看:107
本文介绍了如何使用C#在串行端口中传递信号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在项目中,我必须在一个基于微控制器的电动机系统中进行接口连接,在该系统中,我有一定条件,即当我单击按钮时,信号应传递到串行端口,以便电动机可以旋转一段时间后,比如说5秒钟,则需要再次传递另一个信号,该信号将使电动机旋转.我该怎么做,请提供代码帮助
bishnu karki

解决方案

阅读这些内容:
使用C#和Whidbey进行的串行通信 [ http://www.dreamincode.net/forums/topic/35775 -serial-port-communication-in-c%23/ [ http://csharp.simpleserial.com/ [ ^ ]


您可以传递字符串Rotate.

使用我的测试仪,看看它有多容易.


[^ ]

谢谢,
R.J.


hi frens, i m under a project, in this project i have to interface a microcontroller based motor system in which i have certain condition that when i click a button, the signal should be passed to the serial port so that the motor can be rotated and after certain time lets say 5 seconds, again another signal needs to be passed which will reverse the motor rotation. how can i do that please help with the code
bishnu karki

解决方案

Read these :
Serial Communication using C# and Whidbey[^]

http://www.dreamincode.net/forums/topic/35775-serial-port-communication-in-c%23/[^]

http://csharp.simpleserial.com/[^]


You can pass a string Rotate.

Use my tester to see how easy it could be.


[^]

Thanks,
R.J.


这篇关于如何使用C#在串行端口中传递信号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆