Sripe.DataAcquisition.MudLog 1.24.6

Sripe录井数据采集组件使用说明

1 概述

  1. 采集录井数据,请使用Sripe.DataAcquisition.MudLog.MudLogReliableAcquirer类, 它是基于Socket的网络实时数据采集器. 前方需配合Sripe录井发送器使用.
  2. 模拟采集录井实时数据,请使用Sripe.DataAcquisition.MudLog.MudLogAcquirerSimulator类.
  3. MudLogReliableAcquirerMudLogAcquirerSimulator均实现 IRealtimeRecordAcquirer<MudLogRealtimeRecord>接口
  4. 所采集的录井数据为MudLogRealtimeRecord类型

2 What's new:

  • 1.24.6(2023.12.6):
    • *优化日志
  • 1.24.5(2023.12.6):
    • *优化读取过慢问题
  • 1.24.4(2023.12.6):
    • *采用顺序读取,并根据时间差修改读取间隔.
  • 1.24.3(2023.12.4):
    • *修复时间格式问题.
  • 1.24.2(2023.12.1):
    • *444.
  • 1.24.1(2023.7.18):
    • *Fix bug, getsendingstring serverunit check null.
  • 1.24.0(2023.7.16):
    • *Update Dependences.
  • 1.23.0(2023.7.16):
    • *Update Dependences.
  • 1.22.0(2023.7.16):
    • *Update Dependences.
  • 1.21.1(2023.7.16):
    • *Update Dependences.
    • *improve log string.
  • 1.20.3(2023.7.16):
    • *add interval in all MudLogAcquirerSimulators.
  • 1.20.2(2023.7.15) @TH12582:
    • *Update Dependences.
    • *MudLogRealtimeRecordWithUnits GetSendingString and GetPropertyValueString, can output string even without unit or unit_server. because of spare properties which don't know unit.
  • 1.19.0(2023.7.14) @TH12582:
    • *Update Dependences.
  • 1.18.0(2023.7.14):
    • *Update Dependences.
  • 1.17.0(2023.7.14):
    • *Update Dependences.
  • 1.16.0(2023.7.13):
    • *Update Dependences.
  • 1.15.2(2023.7.13):
    • +9 Spare_xs property in MudLogRealtimeRecord.
    • +DCEXP, DEXP, ZBC and 9 Spare_xs property MudLogWitsStringParserTypedConfig.
    • +ZBC's WitsOutputCode attribute.
  • 1.15.1(2023.7.10):
    • +MudLogWithUnitsWithoutTimeoutAcquirerSimulator
    • *Update Dependences.
  • 1.14.0(2023.6.5):
    • *Update Dependences.
  • 1.13.0(2023.1.5):
    • *Update Dependences.
  • 1.12.0(2022.12.13):
    • *Update Dependences.
  • 1.11.0(2022.12.12):
    • *Update Dependences.
  • 1.10.0(2022.10.27):
    • *Update Dependences.
  • 1.9.0(2022.4.21):
    • *Update Dependences. realtimewelllog.
  • 1.8.1(2022.4.15):
    • *Update Dependences.
  • 1.7.1(2022.4.14):
    • *Update Dependences.
  • 1.6.1(2022.4.9):
    • *MudLogAcquirerSimulator: ctor ILogger is nullable.
  • 1.6.0(2022.4.9):
    • *Update Dependences.
  • 1.5.0(2022.4.9):
    • *Update Dependences.
  • 1.4.0(2022.4.9):
    • *Update Dependences.
  • 1.3.0(2022.4.5):
    • *MudLogSingleWitsStringParser, derived from SingleWitsStringParserBase
    • *MudLogWitsStringConfig, derived from WitsConfig
  • 1.2.8(2022.4.1):
    • *FixBug MudLogRealtimeRecordWithUnits.GetSendingString read wrong wits dict.
  • 1.2.6(2022.3.31):
    • *all parser to RealtimeRecordRawDataParserBase<xxx, MudLogRealtimeRecord>
  • 1.1.0(2022.3.30):
    • +SK2000Acquirer (alpha).
  • 1.0.5(2022.2.22):
    • *FixBug MudLogRealtimeRecord.GetSendingString read wrong wits dict.
  • 1.0.4(2022.2.14):
    • *MudLogReliableAcquirer inherited from ReliableAcquirerBase
    • -dep on ijw.DataTransfer.Server
  • 1.0.3(2022.2.12):
    • +README.txt
  • 1.0.1(2022.2.11):
    • +README.md
  • 1.0.0(2022.2.9):
    • *MudLogRealtimeRecord => MudLogRealtimeRecordWithUnits
    • +new MudLogRealtimeRecord
  • 0.5.4(2022.2.7):
    • *update dep
    • *using LogRecordWitsConfig
  • 0.5.3(2021.12.7):
    • *update dep
  • 0.5.2(2020.12.5):
    • +MudLogMultipleWitsStringParser
  • 0.4.9(2020.11.4):
    • +XbjFloatNumberDigitalAttribute.
  • 0.4.7(2020.10.27):
    • *fix MudLogWitsStringParser bugs.
  • 0.3.9(2020.10.15):
    • *fix MudLogRealtimeRecord server unit for MCO MCI H2S
  • 0.2.8(2020.10.11):
    • *add IsInvalid to MudLogRealtimeRecord
  • 0.2.3(2020.9.27):
    • *appendString to appendData
  • 0.1.4(2020.9.24):
    • *getPropertyValueString

3 准备工作

  1. 安装Sripe.DataAcquisition.MudLog
  2. 在代码文件中引用Sripe.DataAcquisition.MudLog命名空间

4 使用采集器

  1. 构建新实例:

     var acquirer = new MudLogReliableAcquirer(30000, null);
     acquirer.OnDataAcquired += (s, e) => {
         //mudlog realtime data in e.Record
     };
    
  2. 启动采集器:

     acquirer.StartAcquiringAsync();
    
  3. 停止采集, 关闭底层的网络资源.

     acquirer.Close();
    

5 使用模拟采集器

  1. 构建新实例:

     var acquirer = new MudLogAcquirerSimulator("测试井号"); 
     acquirer.OnDataAcquired += (s, e) => {
         //mudlog realtime data in e.Record
     };
    
  2. 启动采集器:

     acquirer.StartAcquiringAsync();
    
  3. 停止采集, 关闭资源.

     acquirer.Close();
    

6 启用日志

  1. 使用内置日志机制(内部使用NLog)

     using ijw.Next.Log
    
     var _logger = LogHelper.GetNLogger();
    
     //然后可以将_logger传入采集器的构造函数中, 如:
     var acquirer = new MudLogReliableAcquirer(30000, _logger);
    
  2. 启动项目增加NLog.config文件, 并复制到生成文件夹中.

  3. 项目运行后, 会根据NLog.config中的配置生成日志, 一般来说是在logs文件夹下面按时间生成文件(第三方组件NLog的功能).

7 其他

  1. 数据采集使用了事件处理器, 因此可能有内存泄露, 注意close之后, 解绑事件处理器挂载, 方便GC回收.

Showing the top 20 packages that depend on Sripe.DataAcquisition.MudLog.

Packages Downloads
Sripe.DataAcquisition.MudLog.DBAcquirer
Package Description
1
Sripe.SiteApp
What's New: 0.9.1(2020.9.27): +EF Core support. 0.8.3(2020.7.1): +EF Core support. 0.8.2(2020.1.10): +local ipendpoint 0.8.1(2019.12.28): *null or empty data disgard. 0.8.0(2019.11.14): *Dependence update. 0.7.7(2019.11.13): *Dependence update. 0.7.5(2019.11.13): *MultiTargetSiteSender: use async cache for net45. *SiteApp: use async cache for net45. 0.7.3(2019.11.5): *Async support. 0.7.2(2019.11.5): *Dependence update. 0.6.3(2019.11.4): +MultiTargetSiteApp and MultiTargetSiteSender classes. +Dependence update. *fix: LogCleaner may crash. 0.5.2(2019.11.1): *Dependence update. 0.5.1(2019.10.22): *Add runtime info/error events. 0.4.9(2019.10.21): *Dependence update. 0.4.7(2019.10.18): *Dependence update. 0.4.3(2019.10.17): *Dependence update. 0.4.1(2019.10.16): +Cleaning logs for the specific number of days ago. 0.3.0(2019.10.9): +First release. Introduction: This package includes a SiteApp class for building Sripe on-site application. What's in it: SiteApp class, which uses SripeDataClient and IDataAcquirer to simplify
1

.NET Framework 4.0

.NET Standard 2.1

.NET Standard 2.0

.NET 6.0

.NET 5.0

.NET Framework 4.5

Version Downloads Last updated
1.24.6 2 2025/4/17