Design and Development Method of General Software Module for Data Acquisition of Serial Instruments

A technology of data acquisition and general-purpose software, applied in the direction of program control devices, etc., to achieve the effects of enhancing adaptability, saving time, and simple and easy testing

CN103955371BActive Publication Date: 2017-09-22ZHEJIANG YINJIANG RES INST
3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2017-09-22

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention belongs to the field of industrial measurement and control, and particularly relates to a design and development method for a universal software module for performing data acquisition on a serial-port instrument. The design and development method has the advantages that spaces of a memory and a hard disk are saved by the adoption of a DLL (dynamic link library) and software is modularized; particularly, after the common characteristics according to a serial-port instrument communication protocol is summarized, a special DLL specification is defined; the specification is an XHDLL (extra-high dynamic link library) specification. The design and development method comprises a standard XHDLL specification general requirement, a standard XHDLL specification interface function, an XHDLL development method, an XHDLL debugging method and an XHDLL use method. The design and development method has the beneficial effects that instrument products of different factories can be compatible, so that the compatibility is high, development and maintenance are facilitated, a requirement on a hardware platform is lower, and the cost for development, execution and maintenance is lowered; requirements for knowledge and experience of a developer are low, and the development technical threshold of the specification is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of industrial measurement and control, in particular to a design and development method of a general software module for data collection of serial instruments. Background technique

[0002] For application fields such as environmental monitoring, data acquisition and transmission instruments are generally used to connect to different monitoring instruments through serial ports, and then use the special communication protocol of the instrument to collect their data, and finally summarize and upload to the monitoring center. figure 1 As shown in the figure, the remote data acquisition architecture diagram is shown in the figure. Usually, the industrial computer with sufficient resources is used as the hardware platform of the data collection and transmission instrument, and the WINDOWS or LINUX operating system is selected, and then the special software running on the operating system is developed to realize data colle...

Examples

Embodiment 1

[0037] Embodiment 1: the design and development method of the general software module of the present invention carrying out data acquisition to serial instrument, as figure 2 Shown include:

[0038] Determine the serial port configuration parameters, collect related commands and response analysis methods according to the instrument manual and communication protocol;

[0039] Each instrument writes and develops an XHDLL according to the XHDLL specification;

[0040] Use measurement and control software to debug XHDLL;

[0041] Pass the XHDLL to the user operator through the Internet, and the user operator copies the XHDLL corresponding to the added instrument to the working directory of the measurement and control software;

[0042] The measurement and control software calls XHDLL to collect data;

[0043] The measurement and control software uninstalls XHDLL to free up space.

[0044] The general requirements of the XHDLL specification include the following:

[0045] 1....