资源简介
设定连续读取时间后,从COM口获取超声波传感器传来的数据,并把数据写入文本文件,以便3后续分析使用
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
using System.Threading;
using System.IO;
namespace CommTest2
{
public partial class Form1 : Form
{
SerialPort MSComm1 = new SerialPort();
string GetTxt = ““;
Int32 rTextNum = 0;
Int32 SendCount = 0;
Int32 GetCount = 0;
Int32 ErrCount = 0;
Int32 SendLen = 0;
Int32 SendTime = 0;
Int32 Allsum = 0;
Int32 CloseCount = 0;
Byte[] arr_command = new Byte[0];
Queue QU = new Queue(480);
public Form1()
{
InitializeComponent();
}
private
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
..A..H. 29184 2018-12-10 13:42 超声波串口连续接收\.vs\CommTest3\v15\.suo
文件 0 2018-12-10 10:58 超声波串口连续接收\.vs\CommTest3\v15\Server\sqlite3\db.lock
文件 561152 2018-12-10 13:42 超声波串口连续接收\.vs\CommTest3\v15\Server\sqlite3\storage.ide
文件 144 2013-09-09 20:18 超声波串口连续接收\CommTest3\app.config
文件 39936 2018-12-10 10:59 超声波串口连续接收\CommTest3\bin\Debug\CommTest2.exe
文件 144 2013-09-09 20:18 超声波串口连续接收\CommTest3\bin\Debug\CommTest2.exe.config
文件 30208 2018-12-10 10:59 超声波串口连续接收\CommTest3\bin\Debug\CommTest2.pdb
文件 11600 2017-09-20 15:54 超声波串口连续接收\CommTest3\bin\Debug\CommTest2.vshost.exe
文件 144 2013-09-09 20:18 超声波串口连续接收\CommTest3\bin\Debug\CommTest2.vshost.exe.config
文件 490 2016-07-16 19:44 超声波串口连续接收\CommTest3\bin\Debug\CommTest2.vshost.exe.manifest
文件 47694 2017-08-21 09:56 超声波串口连续接收\CommTest3\bin\Debug\Debug.rar
文件 8306 2018-12-10 12:53 超声波串口连续接收\CommTest3\bin\Debug\LOG\-4.7°.txt
文件 8466 2018-12-10 12:48 超声波串口连续接收\CommTest3\bin\Debug\LOG\0°.txt
文件 8426 2018-12-10 12:52 超声波串口连续接收\CommTest3\bin\Debug\LOG\10°.txt
文件 8330 2018-12-11 15:58 超声波串口连续接收\CommTest3\bin\Debug\LOG\12_11155837.txt
文件 8386 2018-12-11 15:59 超声波串口连续接收\CommTest3\bin\Debug\LOG\12_11155957.txt
文件 8386 2018-12-11 16:00 超声波串口连续接收\CommTest3\bin\Debug\LOG\12_1116056.txt
文件 8370 2018-12-11 16:10 超声波串口连续接收\CommTest3\bin\Debug\LOG\12_1116100.txt
文件 8402 2018-12-11 16:02 超声波串口连续接收\CommTest3\bin\Debug\LOG\12_111627.txt
文件 8314 2018-12-11 16:04 超声波串口连续接收\CommTest3\bin\Debug\LOG\12_1116457.txt
文件 8338 2018-12-11 16:05 超声波串口连续接收\CommTest3\bin\Debug\LOG\12_1116557.txt
文件 8282 2018-12-11 16:07 超声波串口连续接收\CommTest3\bin\Debug\LOG\12_1116722.txt
文件 8378 2018-12-10 12:49 超声波串口连续接收\CommTest3\bin\Debug\LOG\2.5°.txt
文件 8338 2018-12-10 12:50 超声波串口连续接收\CommTest3\bin\Debug\LOG\5°.txt
文件 8442 2018-12-10 12:51 超声波串口连续接收\CommTest3\bin\Debug\LOG\7.5°.txt
文件 53248 2006-01-14 10:24 超声波串口连续接收\CommTest3\bin\Debug\XPanderControl.dll
文件 3691 2013-09-09 20:18 超声波串口连续接收\CommTest3\CommTest3.csproj
文件 11014 2017-08-18 15:18 超声波串口连续接收\CommTest3\Form1.cs
文件 25428 2017-08-18 14:53 超声波串口连续接收\CommTest3\Form1.Designer.cs
文件 32767 2017-08-18 14:53 超声波串口连续接收\CommTest3\Form1.resx
............此处省略43个文件信息
- 上一篇:TCP文件传输简例
- 下一篇:基于C#的倒计时小程序
相关资源
- C#联通网络宽带测试 拨号
- C#百度指数抓取方法(2012年版本已失
- C# 隐藏某个磁盘分区
- C# 读取并编辑window系统的右键菜单
- C#自定义屏保(不断滚动的文字)
- C#winform打印指定区域 -控件拖动 -设置
- C#使用Hook进行改键
- 提供C#调用系统API函数弹出或收起光驱
- 通过C#自带的头文件(类)获取Windo
- C#获取电脑CPU以及内存使用率
- 利用uu云打码平台的lib实现的c#打码平
- tf-idf一种计算方法
- C# pop3 邮件接收程序
- C# 邮件群发示例 源码下载18952
- 动态抓取IPC#实现
- XXTEA算法的C#实现和JS实现,可以互相
- C# 飞行棋 游戏源码(面向对象入门)
- 基于WinPcap的C# ARP欺骗软件().rar
- C#网络应用编程 矩阵并行计算练习
- 《C#版Ftp软件源码》
- 基于com串口的文件发送和接收
-
C# 播放铃声(AxWindowsMediaPla
yer)最新 - C# 把图片显示成椭圆形状
- C# 水平交错效果显示图像
- winform 浮雕效果的图像
- c# 底片效果显示图像就像旧式相机的
- 积木效果显示图像
- C# 隐形窗体 (没有边框,没有标题栏
- browerPhotoC#网页截图(不打开网页)
- C# 模拟时钟(自绘Graphics)
评论
共有 条评论