• 大小: 0.16M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: c#上位机  测试设备  

资源简介

c#上位机调试

资源截图

代码片段和文件信息

using System;
using System.IO.Ports;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using INIFILE;
using System.Text.Regularexpressions;

namespace SerialPortConnection
{
    public partial class Form1 : Form
    {
        SerialPort sp1 = new SerialPort();
        //sp1.ReceivedBytesThreshold = 1;//只要有1个字符送达端口时便触发DataReceived事件 
         
        public Form1()
        {
            InitializeComponent();
        }

        //加载
        private void Form1_Load(object sender EventArgs e)
        {
            INIFILE.Profile.LoadProfile();//加载所有
            
           // 预置波特率
            switch (Profile.G_BAUDRATE)
            {
     

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-03-29 00:36  Cell_V2\
     目录           0  2017-03-29 00:36  Cell_V2\SerialPortConnection\
     目录           0  2017-03-17 23:57  Cell_V2\SerialPortConnection\.vs\
     目录           0  2017-03-17 23:57  Cell_V2\SerialPortConnection\.vs\SerialPortConnection\
     目录           0  2017-03-17 23:57  Cell_V2\SerialPortConnection\.vs\SerialPortConnection\v14\
     文件       86016  2017-03-29 00:34  Cell_V2\SerialPortConnection\.vs\SerialPortConnection\v14\.suo
     目录           0  2017-03-29 00:36  Cell_V2\SerialPortConnection\Backup\
     目录           0  2017-03-29 00:36  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\
     文件       26561  2012-08-15 14:13  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Form1.Designer.cs
     文件       20297  2012-08-15 17:18  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Form1.cs
     文件        6582  2012-08-15 14:13  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Form1.resx
     文件        7503  2012-08-09 10:13  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\IniFile.cs
     文件        1468  2012-08-14 11:37  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Profile.cs
     文件         512  2012-08-06 14:57  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Program.cs
     目录           0  2017-03-29 00:36  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Properties\
     文件        1476  2012-08-06 14:57  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Properties\AssemblyInfo.cs
     文件        2869  2012-08-06 14:57  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Properties\Resources.Designer.cs
     文件        5612  2012-08-06 14:57  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Properties\Resources.resx
     文件        1105  2012-08-06 14:57  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Properties\Settings.Designer.cs
     文件         249  2012-08-06 14:57  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\Properties\Settings.settings
     文件        3862  2012-08-09 10:13  Cell_V2\SerialPortConnection\Backup\SerialPortConnection\SerialPortConnection.csproj
     文件         950  2012-08-06 14:57  Cell_V2\SerialPortConnection\Backup\SerialPortConnection.sln
     目录           0  2017-03-29 00:36  Cell_V2\SerialPortConnection\SerialPortConnection\
     文件       79453  2017-03-29 00:33  Cell_V2\SerialPortConnection\SerialPortConnection\Form1.Designer.cs
     文件       34829  2017-03-29 00:33  Cell_V2\SerialPortConnection\SerialPortConnection\Form1.cs
     文件        6385  2017-03-29 00:33  Cell_V2\SerialPortConnection\SerialPortConnection\Form1.resx
     文件        7503  2012-08-09 10:13  Cell_V2\SerialPortConnection\SerialPortConnection\IniFile.cs
     文件        3773  2017-03-26 20:28  Cell_V2\SerialPortConnection\SerialPortConnection\Profile.cs
     文件         506  2017-03-26 10:00  Cell_V2\SerialPortConnection\SerialPortConnection\Program.cs
     目录           0  2017-03-29 00:36  Cell_V2\SerialPortConnection\SerialPortConnection\Properties\
     文件        1476  2012-08-06 14:57  Cell_V2\SerialPortConnection\SerialPortConnection\Properties\AssemblyInfo.cs
............此处省略38个文件信息

评论

共有 条评论