如何根据串口C#中的时间从文本文件中发送数据 [英] How to send the data from text file according to time in serial port C#

查看:59
本文介绍了如何根据串口C#中的时间从文本文件中发送数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我设计了一个小型GUI,用于通过c#中的serialport发送文件,我发送了总文件并成功接收。但我想为该GUI示例添加一个时间戳ms我想在下一个2.5毫秒内发送第一行同样下一行在下一个2.5毫秒每行有24个字节的数据





请帮助我任何人



谢谢你



< b>我尝试了什么:



i有代码来设置总文件的时间,但我想知道如何为内部数据添加时间戳

Hi all,
I designed a small GUI for sending files through serialport in c#, i sent the total file and receive successfully. But i want to add a time stamp for that GUI example ms i want to send first line in next 2.5 ms similarly next line in in next 2.5ms each line having 24 bytes of data


please help me anyone

Thankyou

What I have tried:

i have code to set a time for total file but i want to know how to add time stamp for internal data

推荐答案

与总文件相同。只需在每行的开头和结尾添加时序计算。
The same way as for the total file. Just add timing calculations at the beginning and end of each line.


这篇关于如何根据串口C#中的时间从文本文件中发送数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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