-
大小: 16.28MB文件類型: .rar金幣: 1下載: 0 次發布日期: 2023-06-19
- 語言: C#
- 標簽:
資源簡介
Visual C#.NET串口通信及測控應用典型實例 李江全的
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
namespace?WindowsFormsApplication1
{
????public?partial?class?Form1?:?Form
????{
????????
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????axMSComm1.PortOpen?=?false;
????????????Close();
????????}
???????
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
?????????axMSComm1.CommPort?=?1;?//‘設置通信端口號為COM1
????????axMSComm1.Settings?=?“9600n81“;?//‘設置串口參數
????????axMSComm1.InputMode?=?0?;//‘接收文本型數據
????????axMSComm1.PortOpen?=true?;//‘打開通信端口1
??????????
????????}
??????
????????private?void?Form1_FormClosing(object?sender?FormClosingEventArgs?e)
????????{
????????????axMSComm1.PortOpen?=?false;
????????}
??????
????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????string?outdata?=?textBox2.Text;
???????????if?(outdata??==?““?)
????????????{
???????????MessageBox.Show(“發送的數據不能為空!“?““?);
????????????}
????????????axMSComm1.Output?=outdata;
????????}
????????private?void?timer1_Tick(object?sender?EventArgs?e)
????????{
????????????object??data;
????????????data?=?axMSComm1?.Input??;
????????????textBox1.Text?=?textBox1.Text?+?data;
????????}
???????
???????
??????
????????
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????1499136??2011-07-20?15:20??C#.NET串口通信?-?副本\autorun.exe
?????文件?????????47??2006-02-28?16:53??C#.NET串口通信?-?副本\autorun.inf
?????文件?????608448??2000-05-22?16:58??C#.NET串口通信?-?副本\comctl32.ocx
?????文件????2737762??2006-02-07?14:48??C#.NET串口通信?-?副本\phei.avi
?????文件????????466??2012-05-03?10:28??C#.NET串口通信?-?副本\Settings.ini
?????文件????????365??2012-02-05?14:46??C#.NET串口通信?-?副本\光盤內容\光盤內容.txt
?????文件??????59077??2012-01-08?17:16??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\tu1.jpg
?????文件??????47562??2012-01-08?17:08??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\tu2.jpg
?????文件??????16384??2011-12-29?18:20??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\bin\Debug\AxInterop.DAQAILib.dll
?????文件??????11776??2011-12-29?18:20??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\bin\Debug\AxInterop.MSCommLib.dll
?????文件??????28672??2011-12-29?18:20??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\bin\Debug\Interop.DAQAILib.dll
?????文件??????15360??2012-01-08?17:07??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\bin\Debug\Interop.MSCommLib.dll
?????文件??????11264??2012-01-08?17:08??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.exe
?????文件??????26112??2012-01-08?17:08??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.pdb
?????文件??????14328??2012-01-08?17:15??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe
?????文件????????490??2007-07-21?01:33??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
?????文件???????1592??2012-01-08?17:18??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\Form1.cs
?????文件???????6802??2012-01-08?17:18??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\Form1.Designer.cs
?????文件???????6739??2012-01-08?17:18??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\Form1.resx
?????文件??????16384??2011-12-29?18:20??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\AxInterop.DAQAILib.dll
?????文件??????11776??2011-12-29?18:20??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\AxInterop.MSCommLib.dll
?????文件??????28672??2011-12-29?18:20??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\Interop.DAQAILib.dll
?????文件??????15360??2012-01-08?17:07??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\Interop.MSCommLib.dll
?????文件???????6084??2012-01-08?17:08??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\ResolveAssemblyReference.cache
?????文件??????12400??2012-01-08?17:15??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt
?????文件????????847??2012-01-08?17:08??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache
?????文件????????689??2012-01-08?17:07??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.csproj.ResolveComReference.cache
?????文件??????11264??2012-01-08?17:08??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.exe
?????文件????????630??2012-01-08?17:08??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.Form1.resources
?????文件??????26112??2012-01-08?17:08??C#.NET串口通信?-?副本\光盤內容\第1章??PC與PC串口通信\01?實例源程序\03?利用MSComm控件實現PC與PC串口通信(查詢方式)\WindowsFormsApplication1\obj\Debug\WindowsFormsApplication1.pdb
............此處省略3176個文件信息
- 上一篇:asp.net項目源碼 2個
- 下一篇:C# 實現多個IP攝像頭畫面預覽以及截圖
評論
共有 條評論