CN104657167A - Real-time data acquisition and network communication system based on VxWorks - Google Patents
Real-time data acquisition and network communication system based on VxWorks Download PDFInfo
- Publication number
- CN104657167A CN104657167A CN201310601048.3A CN201310601048A CN104657167A CN 104657167 A CN104657167 A CN 104657167A CN 201310601048 A CN201310601048 A CN 201310601048A CN 104657167 A CN104657167 A CN 104657167A
- Authority
- CN
- China
- Prior art keywords
- data acquisition
- real
- vxworks
- time data
- network communication
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Programmable Controllers (AREA)
Abstract
A real-time data acquisition and network communication system based on VxWorks solves various physical parallelism problems and logic parallelism problems by means of an embedded operating system VxWorks; the execution speed and own resource utilization rate of the system are improved, and meanwhile, the real-timeliness, stability and reliability of the system are improved, so that the real-time data acquisition and network transmission are realized and the real-time monitoring effect is achieved. On the basis of a P140G data acquisition system of a VxWorks platform, an A/D real-time data acquisition card driving program and a real-time data acquisition program based on the VxWorks are developed, and a network communication program based on UDP (User Datagram Protocol) protocol is developed, so that the real-time data acquisition and network transmission functions can be realized. The driving procedure provides a software interface connected with the hardware of a target machine; the driving program of an A/D data acquisition card is used for realizing communication between a board card and the target machine. The basic functions finished by the driving program of a P140G data acquisition card mainly comprise initialization of equipment, setting and starting of automatic modes, automatic reading of data, D/A conversion data, editing of sampling and control codes as well as interruption of tasks.
Description
Technical field
What the present invention relates to is a kind of real time embedded system, particularly be a kind of real-time data acquisition based on VxWorks and network communication system.
Background technology
So-called data acquisition refers to external physical collection of simulant signal and converts digital signal to, then digital signal is sent in computing machine or other equipment and stores, for the process of subsequent digital signal provides foundation.In modern data acquisition system, not only to gather echo signal, determination and analysis, also need the accuracy ensureing to be obtained data in time, so as emergency case to be taked rapidly, effective measures.This just needs the real-time and the stability that ensure data acquisition system (DAS).
Real-time data acquisition system all has a wide range of applications in every field.Along with the development of computer technology, the enhancing day by day of hardware capability, the performance of real-time data acquisition system the is had breakthrough of matter.But how the problem accompanied with it could high speed, real-time, complete transmission just very if being exactly the data collected.This writes our driving, and the design of interface circuit and the performance of operating system are proposed very high requirement, and I believes that the challenge of this respect and requirement only can be more and more higher.
In order to meet the requirement of these harshnesses, the challenge that answering system real-time is more and more stronger, improves the speed of system responses, and the problem of core is exactly shorten the time of running software.Therefore, the selection of operating platform just becomes most important.According to the feature of design objective from the suitable operating system of main separation, not only can promote hardware performance, can also avoid because the new demand of design and cost that Integral lifting hardware platform causes improves.
DOS system and Windows system apply maximum operating system at present, but due to the real-time of system own poor, in the data acquisition system (DAS) of most high real-time, therefore often can not meet the application demand of user.VxWorks is as the representative of embedded OS, and its outstanding feature is exactly real-time, and the mechanism such as preemptive priority formula and Time Slice Circular Scheduling that it provide carry out quick response external requirement; In order to make interrupt response more quick, the context that its interrupt service routine has is independently; Can the kernel of cutting allow developer according to the needs of practical application, distribute rare system resource neatly; VxWorks supports numerous procotols, and user specifically can need to come optimal combination according to oneself; The combination of assembly is various flexibly, makes developer have larger selection space when building operating platform.
Summary of the invention
The object of the invention is to utilize Embedded Operating System VxWorks to solve various physical parallel sex chromosome mosaicism and logic concurrency problem, the execution speed of raising system and own resource utilization factor, improve the real-time of system, stability and reliability simultaneously, thus realize real-time data acquisition and Internet Transmission, reach the effect of monitoring in real time.
A kind of real-time data acquisition based on VxWorks and network communication system, its composition mainly comprises bus structure, register, interruption setting, data transmission mechanism and device memory, it is characterized in that the stability in order to ensure system and portability, needing exploitation driver to carry out correlation function operation to enable device element.
Described a kind of real-time data acquisition based on VxWorks and network communication system, is characterized in that: driver provides the software interface with target machine signal wiring, and the driver of A/D data collecting card is used for the communication realized between board and target machine.
Described a kind of real-time data acquisition based on VxWorks and network communication system, is characterized in that: data acquisition program is the tool of communications between data collecting card and computing machine, and board gathers the digitized multichannel analog signals of synchronous high-speed.
The object of the present invention is achieved like this:
The present invention is the P140G data acquisition system (DAS) based on VxWorks platform, develop based on the A/D real-time data acquisition card driver under VxWorks and real-time data acquisition program, and based on the network communication program of udp protocol, realize real-time data acquisition and network transmission function.In order to ensure stability and the portability of system, exploitation driver is needed to carry out correlation function operation to enable device element.And the hardware performance index of capture card can have a huge impact Driver Development, therefore before exploitation driver, first will to the device characteristics of hardware---mainly comprise bus structure, register, interruption setting, data transmission mechanism and device memory etc. and analyze.
Driver provides the software interface with target machine signal wiring, and the driver of A/D data collecting card is used for the communication realized between board and target machine.The basic function that the driver of P140G data collecting card will complete mainly comprises device initialize, and automatic mode arranges and starts, automatic reading certificate, D/A translation data, controlling of sampling code editor and interrupt task.
Data acquisition program is the tool of communications between data collecting card and computing machine, and board gathers the digitized multichannel analog signals of synchronous high-speed, P140G data collecting card has larger data buffer area 32K FIFO, is convenient to high-speed data and writes in real time.Real-time data acquisition program basic function mainly comprises initialization, and pattern is arranged, and starts and gathers, display data etc.Concrete steps comprise: the D/A part of detecting 5 that 1 initialization P140G2 pattern is arranged in 3 data acquisition 4P140G shows data.
Advantage of the present invention:
1 high performance wind micro-kernel is the core of VxWorks system, and it has between efficient task management functions, task the feature that switching time is short, interruption delay is little, network traffics are large;
2VxWorks itself has height reliability, and whole system design ensure that this characteristic in addition.In order to improve reliability and the fault-tolerance of system software, support Redundancy Design, VxWorks additionally provides the mechanism such as operation exception process and distributed message queue, and the reliability of system is improved more.
Accompanying drawing explanation
Fig. 1 is driver main modular block diagram of the present invention;
Fig. 2 be drive main modular realize particular flow sheet;
Fig. 3 is software flow pattern of the present invention.
Embodiment
Below in conjunction with accompanying drawing citing, the present invention is described in more detail:
A kind of real-time data acquisition based on VxWorks and network communication system, its composition mainly comprises bus structure, register, interruption setting, data transmission mechanism and device memory, it is characterized in that the stability in order to ensure system and portability, needing exploitation driver to carry out correlation function operation to enable device element.
Above-mentioned driver provides the software interface with target machine signal wiring, and the driver of A/D data collecting card is used for the communication realized between board and target machine.
Above-mentioned data acquisition program is the tool of communications between data collecting card and computing machine, and board gathers the digitized multichannel analog signals of synchronous high-speed.
Composition graphs 1, Fig. 1 is driver main modular block diagram of the present invention.In order to ensure stability and the portability of system, exploitation driver is needed to carry out correlation function operation to enable device element.And the hardware performance index of capture card can have a huge impact Driver Development, therefore before exploitation driver, first will to the device characteristics of hardware---mainly comprise bus structure, register, interruption setting, data transmission mechanism and device memory etc. and analyze.
Composition graphs 2, Fig. 2 be drive main modular realize particular flow sheet.Driver provides the software interface with target machine signal wiring, and the driver of A/D data collecting card is used for the communication realized between board and target machine.The basic function that the driver of P140G data collecting card will complete mainly comprises device initialize, and automatic mode arranges and starts, automatic reading certificate, D/A translation data, controlling of sampling code editor and interrupt task.Drive the performing step of main modular as follows: the initialization of 1 equipment, before P140G uses, needs to carry out initialization, make it to be connected on the equipment of needs access.2 automatic modes are read transformation result 5 automatic mode and are restarted 6 and automatically stop AD conversion 7DA conversion to arrange function 8DA conversion writing data 9 plate self-test 10 Interruption service routine 11AD controlling of sampling codes and arrange 12AD controlling of sampling code editor under arranging function 3 automatic mode run function 4 automatic mode
Composition graphs 3, Fig. 3 is software flow pattern of the present invention.Data acquisition program is the tool of communications between data collecting card and computing machine, and board gathers the digitized multichannel analog signals of synchronous high-speed, P140G data collecting card has larger data buffer area 32K FIFO, is convenient to high-speed data and writes in real time.Real-time data acquisition program basic function mainly comprises initialization, and pattern is arranged, and starts and gathers, display data etc.Concrete steps comprise: the D/A part of detecting 5 that 1 initialization P140G2 pattern is arranged in 3 data acquisition 4P140G shows data.
Claims (3)
1. the real-time data acquisition based on VxWorks and network communication system, its composition mainly comprises bus structure, register, interruption setting, data transmission mechanism and device memory, it is characterized in that the stability in order to ensure system and portability, needing exploitation driver to carry out correlation function operation to enable device element.
2. a kind of real-time data acquisition based on VxWorks according to claim 1 and network communication system, it is characterized in that: driver provides the software interface with target machine signal wiring, the driver of A/D data collecting card is used for the communication realized between board and target machine.
3. a kind of real-time data acquisition based on VxWorks according to claim 1 and network communication system, it is characterized in that: data acquisition program is the tool of communications between data collecting card and computing machine, board gathers the digitized multichannel analog signals of synchronous high-speed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310601048.3A CN104657167A (en) | 2013-11-25 | 2013-11-25 | Real-time data acquisition and network communication system based on VxWorks |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310601048.3A CN104657167A (en) | 2013-11-25 | 2013-11-25 | Real-time data acquisition and network communication system based on VxWorks |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104657167A true CN104657167A (en) | 2015-05-27 |
Family
ID=53248349
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310601048.3A Pending CN104657167A (en) | 2013-11-25 | 2013-11-25 | Real-time data acquisition and network communication system based on VxWorks |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104657167A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113053215A (en) * | 2021-03-17 | 2021-06-29 | 浙江大学 | Permanent magnet wind power generation system exploration experiment platform suitable for teaching |
-
2013
- 2013-11-25 CN CN201310601048.3A patent/CN104657167A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113053215A (en) * | 2021-03-17 | 2021-06-29 | 浙江大学 | Permanent magnet wind power generation system exploration experiment platform suitable for teaching |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI410864B (en) | Controlling instruction execution in a processing environment | |
CN102081679B (en) | Computer performance data acquisition method and device | |
CN102736595A (en) | Unified platform of intelligent power distribution terminal based on 32 bit microprocessor and real time operating system (RTOS) | |
CN103888304A (en) | Abnormity detection method of multi-node application and related apparatus | |
CN112395152B (en) | Server resource acquisition method and acquisition system | |
CN103995733A (en) | Lightweight nested virtualization implementation method based on physical resource penetration mechanism | |
CN102169390B (en) | Information terminal and touch control method thereof | |
CN100385787C (en) | DSP Chip-based excitation controller communication system and its method for realizing USB protocol | |
CN105354127A (en) | Cloud management platform based monitoring method | |
CN111600760B (en) | Quality detection system, method and equipment of power grid operation monitoring system | |
CN101441592A (en) | Test system and method of embedded system | |
CN104133671B (en) | The hardware interface screening arrangement and method of a kind of digital processing device | |
CN104199411A (en) | Industrial bus data gathering system based on Labview | |
CN102902526A (en) | Automatic setting method for realizing BMC (Baseboard Management Controller) and IP (Internet Protocol) information through time delay | |
CN104657167A (en) | Real-time data acquisition and network communication system based on VxWorks | |
WO2023241680A1 (en) | Edge node control method based on cloud computing technology, and cloud management platform | |
CN103955422A (en) | Method for analyzing I/O (Input/Output) performance interference of coexisting application in virtualized environment and system thereof | |
CN113031969B (en) | Equipment deployment inspection method and device, computer equipment and storage medium | |
CN113064833A (en) | Single chip microcomputer simulation method, system, device, equipment and storage medium | |
JP6995794B2 (en) | Map dynamic data acquisition method, equipment and storage media | |
CN103336752A (en) | Microcontroller real-time data transmission device and method | |
CN202889651U (en) | Wireless sensor data acquisition unit of safety production cloud service platform for industrial and mining enterprises | |
CN204044549U (en) | A kind of multifunctional virtual instrument system | |
KR20150053282A (en) | Apparatus and method for automatically switching virtual environment using screen change | |
CN209281391U (en) | A kind of modularization mobile hand-held device with bus structures |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150527 |