• 大小: 0.11M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-28
  • 语言: 其他
  • 标签: 其他  

资源简介


C#程序语言开发,性能稳定 金钟、大和、托利多等仪表表头的串口读取 拆分数据成结构体,比如ST,GS,- 000740kg

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.IO;
using System.Windows.Forms;
using SerialComm;
using System.Threading;

namespace ReadX3102
{
    public partial class Form1 : Form
    {
        int stcombound;
        //string btzl;
        XK3102SerialComm sp = new XK3102SerialComm();
        //public static XK3102SerialComm sericom; //

        public Form1()
        {
            InitializeComponent();
        }


        /// 
        /// 写仪表日制
        /// 

        /// 
        public static void setSerialLog(string czlr)
        {
            StreamWriter m_streamWriter = null;
            FileStream fs = null;
            try
            {

                String FileName = System.AppDomain.CurrentDomain.SetupInformation.Applicationbase + “log\\“ + System.DateTime.Today.Year.ToString() + System

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    1607534  2010-01-26 14:23  读取X3102表头\ReadX3102\ReadX3102\bin\Debug\log\2010126SerialLog.txt

     文件        320  2010-01-27 15:58  读取X3102表头\ReadX3102\ReadX3102\bin\Debug\log\2010127SerialLog.txt

     文件     834330  2010-01-28 16:43  读取X3102表头\ReadX3102\ReadX3102\bin\Debug\log\2010128SerialLog.txt

     文件      14638  2010-02-01 08:22  读取X3102表头\ReadX3102\ReadX3102\bin\Debug\log\201021SerialLog.txt

     文件    2732953  2010-02-09 17:04  读取X3102表头\ReadX3102\ReadX3102\bin\Debug\log\201029SerialLog.txt

     目录          0  2010-02-20 09:27  读取X3102表头\ReadX3102\ReadX3102\bin\Debug\log

     文件      28672  2010-02-09 10:47  读取X3102表头\ReadX3102\ReadX3102\bin\Debug\ReadX3102.exe

     文件      36352  2010-02-09 10:47  读取X3102表头\ReadX3102\ReadX3102\bin\Debug\ReadX3102.pdb

     文件       5632  2005-12-08 14:51  读取X3102表头\ReadX3102\ReadX3102\bin\Debug\ReadX3102.vshost.exe

     目录          0  2010-02-20 09:27  读取X3102表头\ReadX3102\ReadX3102\bin\Debug

     目录          0  2010-02-20 09:27  读取X3102表头\ReadX3102\ReadX3102\bin

     文件       4140  2010-02-09 10:47  读取X3102表头\ReadX3102\ReadX3102\Form1.cs

     文件       6770  2010-02-09 10:47  读取X3102表头\ReadX3102\ReadX3102\Form1.Designer.cs

     文件       6008  2010-02-09 10:47  读取X3102表头\ReadX3102\ReadX3102\Form1.resx

     文件        842  2010-02-09 10:47  读取X3102表头\ReadX3102\ReadX3102\obj\Debug\ReadX3102.csproj.GenerateResource.Cache

     文件      28672  2010-02-09 10:47  读取X3102表头\ReadX3102\ReadX3102\obj\Debug\ReadX3102.exe

     文件        180  2010-02-09 10:47  读取X3102表头\ReadX3102\ReadX3102\obj\Debug\ReadX3102.Form1.resources

     文件      36352  2010-02-09 10:47  读取X3102表头\ReadX3102\ReadX3102\obj\Debug\ReadX3102.pdb

     文件        180  2009-05-22 15:48  读取X3102表头\ReadX3102\ReadX3102\obj\Debug\ReadX3102.Properties.Resources.resources

     目录          0  2010-02-20 09:27  读取X3102表头\ReadX3102\ReadX3102\obj\Debug\Refactor

     目录          0  2010-02-20 09:27  读取X3102表头\ReadX3102\ReadX3102\obj\Debug\TempPE

     目录          0  2010-02-20 09:27  读取X3102表头\ReadX3102\ReadX3102\obj\Debug

     文件        846  2010-03-08 15:24  读取X3102表头\ReadX3102\ReadX3102\obj\ReadX3102.csproj.FileListAbsolute.txt

     目录          0  2010-02-20 09:27  读取X3102表头\ReadX3102\ReadX3102\obj

     文件        468  2009-05-22 15:35  读取X3102表头\ReadX3102\ReadX3102\Program.cs

     文件       1176  2009-05-22 15:35  读取X3102表头\ReadX3102\ReadX3102\Properties\AssemblyInfo.cs

     文件       2874  2009-05-22 15:35  读取X3102表头\ReadX3102\ReadX3102\Properties\Resources.Designer.cs

     文件       5612  2009-05-22 15:35  读取X3102表头\ReadX3102\ReadX3102\Properties\Resources.resx

     文件       1094  2009-05-22 15:35  读取X3102表头\ReadX3102\ReadX3102\Properties\Settings.Designer.cs

     文件        249  2009-05-22 15:35  读取X3102表头\ReadX3102\ReadX3102\Properties\Settings.settings

............此处省略12个文件信息

评论

共有 条评论