[go: up one dir, main page]

CN101425224A - Data acquisition method for real time monitoring system - Google Patents

Data acquisition method for real time monitoring system Download PDF

Info

Publication number
CN101425224A
CN101425224A CNA200710166055XA CN200710166055A CN101425224A CN 101425224 A CN101425224 A CN 101425224A CN A200710166055X A CNA200710166055X A CN A200710166055XA CN 200710166055 A CN200710166055 A CN 200710166055A CN 101425224 A CN101425224 A CN 101425224A
Authority
CN
China
Prior art keywords
data
time monitoring
monitoring system
real
application software
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
Application number
CNA200710166055XA
Other languages
Chinese (zh)
Inventor
尹逊波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BYD Co Ltd
Original Assignee
BYD Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by BYD Co Ltd filed Critical BYD Co Ltd
Priority to CNA200710166055XA priority Critical patent/CN101425224A/en
Publication of CN101425224A publication Critical patent/CN101425224A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Testing And Monitoring For Control Systems (AREA)

Abstract

The invention provides a data collection method in a real-time monitoring system, which comprises the following steps: multipath data is collected by the application software of the real-time monitoring system, wherein the application software of the real-time monitoring system is used for dividing program collecting the multipath data into different subsidiary modules, and each subsidiary module controls at least one channel for executing the function of data collection; a thread is designated for each subsidiary module; different memory space is respectively designated for each thread in the memory of a computer; multiple threads are executed simultaneously; and data is collected for multiple channels. All channels in a data channel of the same type in the application software of the real-time monitoring system can execute operation simultaneously by using the data collection method. The data collection method prevents the data collection of a software system from lagging behind the data collection of an external hardware data collection system, and consequently, the reliability of the real-time monitoring system is improved.

Description

A kind of collecting method that is used for real-time monitoring system
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of collecting method that in real-time monitoring system, utilizes computing machine to carry out.
Background technology
When needing in existing real-time monitoring system that simultaneously two or more devices are carried out data acquisition and by being installed on application software on the computing machine when two-way gathered or multichannel data are handled respectively in real time, often two-way or the multichannel data of being gathered can't be read in the computing machine simultaneously, thereby greatly reduce the real-time performance of system because of the restriction of application software function.
For example, in wheel box fatigue data acquisition system, need simultaneously two motors that operate under the different conditions to be carried out data acquisition, and the data that collect are input in the computing machine, so that the specific application software that is installed in the computing machine can be monitored two motors in real time according to these data.At present, using more software in this type of engineering is graphical programming software LabVIEW, this type of graphical application software all provides a plurality of analog channel and counting channels that are used for the data input, and a plurality of digital channels that are used for data output, wherein analog channel, counting channel and digital channel can be carried out simultaneously to the reading or exporting of data, but a plurality of passages in all types of passages are carried out successively to the read operation of data.As shown in Figure 1, analog channel 1 just began reading of data after promptly analog channel 0 reading of data finished, and in like manner, as shown in Figure 1, individual count passage and each digital channel are also carried out successively to the operation of data.
This be because, in the use of existing graphical application software, program is divided into a plurality of submodules, each submodule is often repeatedly called, this moment is if many threads send a plurality of call instructions to a certain submodule simultaneously, program is divided into a plurality of submodules, the only designated thread of each submodule, and a submodule often has multiple function, at this moment, if simultaneously this submodule is sent a plurality of call instructions to carry out multiple function, after described application software must wait until that first call instruction is finished, begin to carry out second call instruction again, this has just reduced the efficient that program is carried out.Be example with above-mentioned wheel box fatigue data acquisition system still, each analog channel of calling same submodule can only be carried out the operation of reading of data successively.For the experiment that needs higher reading rate such as this class of wheel box torture test, this greatly reduces the reliability of the system that equipment is monitored in real time, and when monitored equipment generation unusual condition, because data read rates is low to be caused software systems in time to report to the police or send steering order, thereby cause damage even personnel's injury of monitored equipment.
Summary of the invention
The objective of the invention is the problem that can't play a role simultaneously, a kind of collecting method that can carry out multi-channel data acquisition simultaneously and be used for real-time monitoring system is provided for each data channel that overcomes in the real-time monitoring system.
In engineering is used, adopt the graphical application software of existing method operation not support a plurality of threads to call same submodule simultaneously, its reason is, described application software is only opened up an internal memory that is used to store data for each submodule, same submodule is called at every turn, and the data of its local variable are all existed in the same memory address.If this application software is called same submodule simultaneously under different threads, so described a plurality of threads will carry out the data write operation to this piece memory address simultaneously, thereby the confusion that causes data in this address, thereby, when a submodule during by a plurality of thread dispatching, this submodule also can only be performed on a plurality of threads successively.
Therefore, the corresponding relation by changing submodule and thread and the corresponding relation of submodule and internal memory are realized a plurality of threads simultaneously to the calling of this submodule, thereby same submodule calling on multithreading can be performed simultaneously.
The invention provides a kind of collecting method that in real-time monitoring system, uses, this method comprises uses the application software of real-time monitoring system that multichannel data is gathered, wherein, in the application software of described real-time monitoring system, the procedure division that will be used for that multichannel data is gathered is different submodule, and each described submodule is controlled at least one passage and carried out data acquisition function; Each described submodule is specified a thread respectively; Specify different memory headrooms in calculator memory, for respectively each thread; Carry out a plurality of threads simultaneously, simultaneously a plurality of passages are carried out data acquisition.
The collecting method that is used for handling simultaneously multichannel data that the application of the invention provides, can make executable each function of program corresponding one by one with thread, each thread is corresponding one by one with internal memory, thereby each function in the described application software is carried out synchronously, for example, can make each analog channel while image data of Lab VIEW, the individual count passage is counted and each digital channel while output data simultaneously, thereby improved the input of data, output speed, avoid software systems that the collection of data is lagged behind the collection of outside hardware data acquisition system to data, thereby improved the reliability of real-time monitoring system.In addition, according to preferred implementation of the present invention, data processing method provided by the invention also is included in the program of application software and replaces numeric constant with control type numerical value control, thereby realizes the recycling of internal memory.Can save the shared memory headroom of working procedure greatly like this, thereby further improve the speed of data acquisition, and reduce the requirement of program, thereby reduce system cost the computer hardware configuration.After program run finishes, internal memory on the master routine Properties palette that passes through to be moved uses option, can view this master routine and reduce to original sixth in the EMS memory occupation amount of run duration, this shows, by carrying out aforesaid operations, obviously reduced the occupancy of program to internal memory.
Description of drawings
Fig. 1 has shown the workflow synoptic diagram of each data channel among the existing LabVIEW;
Fig. 2 has shown and has adopted behind the collecting method provided by the invention the workflow synoptic diagram of each data channel among the LabVIEW;
Fig. 3 has shown the hardware configuration synoptic diagram of an example of collecting method provided by the invention;
Fig. 4 has shown the synoptic diagram that the submodule of collecting method provided by the invention is divided.
Embodiment
The invention provides a kind of collecting method that in real-time monitoring system, uses, this method comprises uses the application software of real-time monitoring system that multichannel data is gathered, wherein, in the application software of described real-time monitoring system, the procedure division that will be used for that multichannel data is gathered is different submodule, and each submodule is controlled at least one passage and carried out data acquisition function; Each described submodule is specified a thread respectively; Specify different memory headrooms in calculator memory, for respectively each thread; Carry out a plurality of threads simultaneously, simultaneously a plurality of passages are carried out data acquisition, as shown in Figure 2.
The application software of described real-time monitoring system can be the engineering application software of multiple graphic programming, for example, and softwares such as LabVIEW or Lab Windows/CVI.Wherein, at present the application software of maximum real-time monitoring systems should be arranged in reality is LabVIEW software.
Below in conjunction with a concrete example collecting method provided by the invention is described.
When collecting method provided by the invention being applied to wheel box fatigue data acquisition system and described application software and being LabVIEW, outside hardware acquisition system as shown in Figure 3, wherein, test-bed 1 links to each other with the input end of sensor 2, in the present embodiment, sensor 2 comprises the two-way oil temperature sensor, two-way speed probe and two-way torque sensor, wherein, the output terminal of two-way oil temperature sensor and two-way speed probe links to each other with signal conditioning circuit 3 respectively, the output terminal of two-way torque sensor links to each other with serial equipment 6 respectively, the output terminal of signal conditioning circuit 3 links to each other with each data input pin of capture card 4, each data output end of capture card 4 links to each other with computing machine 5 respectively with each output terminal of serial equipment 6, computing machine 5 also links to each other with control panel 7, and control panel 7 also links to each other with test-bed 1.Wherein, be placed with gearbox motor to be measured on the test-bed 1, in this test, need simultaneously two motors to be carried out data acquisition, wherein one is drive motor, being used for simulated engine provides rotating speed to wheel box, and another is a loading motor, thereby is used for providing the size of reactive torque control total system institute transfer of torque to total system.Oil temperature sensor, speed probe and torque sensor are respectively applied for oil temperature, rotating speed and the torque of gathering motor.Wherein, warm data of oil and rotary speed data are sent to each data input pin of capture card 4 respectively by signal conditioning circuit 3, signal conditioning circuit 3 can carry out necessary processing such as filtering to data, and torque data is conveyed in the LabVIEW software that is installed in the computing machine 5 by serial equipment 6. Analog channel 0 and 1 among the LabVIEW is respectively applied for the oily temperature data of gathering two motors; the serial equipment port 0 and 1 of LabVIEW is used to gather the torque data of two motors and counting mouthful 0 and 1 and is used for gathering two rotating speed of motor data respectively; software systems among the LabVIEW are used for the running status according to two motors of these input data in real time controls; the digital channel 0-3 of LabVIEW exports the outage of controlling torque sensor energize respectively; the rotating speed protection is reported to the police; the signal that the oil temperature exceeds standard and reports to the police makes control panel 7 control the motor in the test-bed 1 according to these signals.
As shown in Figure 4, carry out the input operation of data simultaneously in order to realize the analog channel 0 and 1 among the LabVIEW, at first, originally the program of operation that is used to control analog channel 0 and 1 that belongs to same submodule 8 is constituted two independently submodules 9 and 10 respectively, wherein submodule 9 is used to carry out the function of control analog channel 0, submodule 10 is used to carry out the function of control analog channel 1, and specify a thread for respectively submodule 9 and 10, and specify different memory headrooms respectively with 10 in calculator memory, for submodule 9.Thus, submodule 9,10 can be called simultaneously by different threads, and the situation of data corruption in the memory address can not occur.Last submodule 9 and 10 is finished respectively, and useful data flow into next node, and the memory headroom corresponding with submodule 9 and 10 closed.
In like manner, to the counting mouth 0 and 1 of LabVIEW, serial equipment port 0 and 1 and digital channel 0-3 to implement the implementation process of the process of data processing method provided by the invention and above-mentioned analog channel 0 and 1 similar, do not repeat them here.
In addition, the program in the LabVIEW figures application software mainly is the data flow driven type.Data transfer often needs to duplicate a copy during to different node.This is that described application software causes wrong a kind of data protection measure of being done in order to prevent that data from being changed by node.Having only the destination node of working as is read-only node, in the time of can not doing any change to the input data, does not just backup at these node places.For example, array indexing node (index) is can not change array value, and LabVIEW does not here just backup for the input array.Some LabVIEW program, such as the program that relates to big array operation, memory consumption is very big.Its main cause be exactly LabVIEW be that array data has generated too much copy when computing.
Owing to comprise numeric constant in the described submodule, and the storage of numeric constant need take a large amount of memory headrooms, therefore, under the preferable case, in order further to reduce program run taking to calculator memory, data processing method provided by the invention also comprises following preferred steps: replace numeric constant with control type numerical value control in the program of described application software, thereby realize the recycling of internal memory.The benefit of doing like this is that control type numerical value control can cover last data with current data automatically, thereby the memory headroom that takies is reduced greatly when adopting control type numerical value control to carry out the data input and output.
In addition, when the input and output of described program all linked to each other with shift register, collecting method provided by the invention comprised that also being set to single cycle by this program realizes reusing of internal memory.Like this, system only need be respectively the inputoutput data of program and open up memory headroom to be used for storage, and do not need the data of inner each node of used this program in the program run are stored, and promptly discharge the memory headroom that it takies later in this submodule operation, thereby reduced program taking memory headroom.Thereby, can under the prerequisite that does not influence the program run reliability, save the shared memory headroom of program run to greatest extent.

Claims (7)

1, a kind of collecting method that in real-time monitoring system, uses, this method comprises uses the application software of real-time monitoring system that multichannel data is gathered, it is characterized in that, in the application software of described real-time monitoring system, the procedure division that will be used for that multichannel data is gathered is different submodule, and each described submodule is controlled at least one passage and carried out data acquisition function; Each described submodule is specified a thread respectively; Specify different memory headrooms in calculator memory, for respectively each thread; Carry out a plurality of threads simultaneously, simultaneously a plurality of passages are carried out data acquisition.
2, collecting method according to claim 1 is characterized in that, the application software of described real-time monitoring system is a LabVIEW software.
3, collecting method according to claim 1 is characterized in that, the application software of described real-time monitoring system is a LabWindows/CVI software.
4; according to the described collecting method of each claim among the claim 1-3; it is characterized in that; described a plurality of passage is respectively analog channel 0 and 1; digital channel 0-3; serial equipment passage 0 and 1 and counting mouthful 0 and 1; wherein; when described collecting method being applied to the wheel box fatigue data acquisition system of motor; described analog channel 0 and 1 is respectively applied for the oily temperature data of gathering two motors; described serial equipment passage 0 and 1 is respectively applied for the torque data of gathering two motors; described counting mouth 0 and 1 is used for gathering two rotating speed of motor data respectively, and described digital channel 0-3 exports the outage of controlling torque sensor energize respectively; the rotating speed protection is reported to the police; the signal that the oil temperature exceeds standard and reports to the police.
5, according to the described collecting method of each claim among the claim 1-3, it is characterized in that, comprise numeric constant in the described submodule.
According to the described collecting method of each claim among the claim 1-3, it is characterized in that 6, this method also is included in the program of application software of described real-time monitoring system and replaces numeric constant with control type numerical value control.
According to the described collecting method of each claim among the claim 1-3, it is characterized in that 7, when the input and output of described program all linked to each other with shift register, this method also comprises was arranged to single cycle with described program.
CNA200710166055XA 2007-10-30 2007-10-30 Data acquisition method for real time monitoring system Pending CN101425224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA200710166055XA CN101425224A (en) 2007-10-30 2007-10-30 Data acquisition method for real time monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200710166055XA CN101425224A (en) 2007-10-30 2007-10-30 Data acquisition method for real time monitoring system

Publications (1)

Publication Number Publication Date
CN101425224A true CN101425224A (en) 2009-05-06

Family

ID=40615814

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200710166055XA Pending CN101425224A (en) 2007-10-30 2007-10-30 Data acquisition method for real time monitoring system

Country Status (1)

Country Link
CN (1) CN101425224A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722150A (en) * 2012-06-07 2012-10-10 中国东方电气集团有限公司 Multi-way waveform acquiring and displaying and data analyzing and processing system based on universal serial
CN103378995A (en) * 2012-04-24 2013-10-30 中兴通讯股份有限公司 Method, server and system for monitoring pipelines in distributed mode
CN105022313A (en) * 2014-05-07 2015-11-04 奚涛 Multipath data acquisition control module
CN112224217A (en) * 2019-06-30 2021-01-15 比亚迪股份有限公司 Integrated control chip, environment recognition method and device, storage medium and vehicle
CN113590106A (en) * 2021-06-25 2021-11-02 许继电气股份有限公司 Industrial control graphical programming environment operation state data monitoring system and method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103378995A (en) * 2012-04-24 2013-10-30 中兴通讯股份有限公司 Method, server and system for monitoring pipelines in distributed mode
CN103378995B (en) * 2012-04-24 2016-06-22 中兴通讯股份有限公司 The method of distributed monitoring pipeline, server and system
CN102722150A (en) * 2012-06-07 2012-10-10 中国东方电气集团有限公司 Multi-way waveform acquiring and displaying and data analyzing and processing system based on universal serial
CN105022313A (en) * 2014-05-07 2015-11-04 奚涛 Multipath data acquisition control module
CN112224217A (en) * 2019-06-30 2021-01-15 比亚迪股份有限公司 Integrated control chip, environment recognition method and device, storage medium and vehicle
CN112224217B (en) * 2019-06-30 2021-09-03 比亚迪股份有限公司 Integrated control chip, environment recognition method and device, storage medium and vehicle
CN113590106A (en) * 2021-06-25 2021-11-02 许继电气股份有限公司 Industrial control graphical programming environment operation state data monitoring system and method
CN113590106B (en) * 2021-06-25 2022-04-08 许继电气股份有限公司 Industrial control graphical programming environment operation state data monitoring system and method

Similar Documents

Publication Publication Date Title
US5933655A (en) System for scheduling periodic events having varying rates by cascading a plurality of overlapping linked list data structure
CN100589420C (en) Function operation packaging based automatization test script implementing method and apparatus
CN101425224A (en) Data acquisition method for real time monitoring system
DE69622776T2 (en) Sorting used by multitasking
CN100492232C (en) Built-in rotating machinery operation monitoring protecting equipment and setting method thereof
US20090089325A1 (en) Targeted resource allocation
CN104007954B (en) Processor and the control method for processor
EP0364563A1 (en) Network programmable logic controller system
CN103902712A (en) Industrial real-time data collecting system
CN102929620A (en) Flexible measurement and control platform system and development method thereof
JP2018067283A (en) Generation of multiple worksheet exportation
CN104422593A (en) Testing system of power assembly
CN101030083A (en) Fuel battery distributed controlling system for vehicle
CN213122679U (en) PLC function automatic detection system based on human-computer interaction interface
CN109665249B (en) Database management system and method based on PLC control
CN101000496A (en) Subcontroller for control system of vehicle fuel cell distribution type
CN105242662B (en) A kind of handling controller detection means and detection method
CN107154675B (en) Single bus communication system and method applied to medium-high voltage SVG
CN1833222A (en) Reconfigurable processor array exploiting ilp and tlp
GB2127586A (en) Method and apparatus for controlling modular systems
CN101858953A (en) ARM (Advanced RISC Machines) core chip based automatic test system and method of digital-to-analog converter
CN104787634A (en) Monitoring method of elevator all-in-one machine, elevator all-in-one machine and monitoring system thereof
CN111123861B (en) Distributed data acquisition system and method for large-scale multi-field coupled test equipment
JP6919289B2 (en) Control device, control method and control program
Jankowski et al. Increasing data historian efficiency

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20090506