CN102929620B - A kind of Flexible Measurement & Control plateform system and development approach - Google Patents
A kind of Flexible Measurement & Control plateform system and development approach Download PDFInfo
- Publication number
- CN102929620B CN102929620B CN201210401375.XA CN201210401375A CN102929620B CN 102929620 B CN102929620 B CN 102929620B CN 201210401375 A CN201210401375 A CN 201210401375A CN 102929620 B CN102929620 B CN 102929620B
- Authority
- CN
- China
- Prior art keywords
- data
- layer
- parameter
- acquisition
- collection
- 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.)
- Active
Links
- 238000005259 measurement Methods 0.000 title claims abstract description 24
- 238000011161 development Methods 0.000 title claims abstract description 17
- 238000013459 approach Methods 0.000 title claims abstract description 9
- 238000012360 testing method Methods 0.000 claims abstract description 54
- 238000013500 data storage Methods 0.000 claims abstract description 34
- 238000013480 data collection Methods 0.000 claims abstract description 28
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000004891 communication Methods 0.000 claims abstract description 17
- 230000008569 process Effects 0.000 claims abstract description 14
- 238000012545 processing Methods 0.000 claims description 21
- 238000005516 engineering process Methods 0.000 claims description 19
- 238000007405 data analysis Methods 0.000 claims description 11
- 238000003860 storage Methods 0.000 claims description 10
- 238000004458 analytical method Methods 0.000 claims description 5
- 238000009825 accumulation Methods 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 claims 1
- 238000012544 monitoring process Methods 0.000 abstract description 8
- 230000007547 defect Effects 0.000 abstract description 4
- 238000007596 consolidation process Methods 0.000 abstract 1
- 230000003139 buffering effect Effects 0.000 description 17
- 230000018109 developmental process Effects 0.000 description 13
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 241000208340 Araliaceae Species 0.000 description 3
- 238000012935 Averaging Methods 0.000 description 3
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 3
- 235000003140 Panax quinquefolius Nutrition 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 235000008434 ginseng Nutrition 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 101000746134 Homo sapiens DNA endonuclease RBBP8 Proteins 0.000 description 1
- 101000969031 Homo sapiens Nuclear protein 1 Proteins 0.000 description 1
- 102100021133 Nuclear protein 1 Human genes 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 230000007480 spreading Effects 0.000 description 1
- 238000003892 spreading Methods 0.000 description 1
- 230000000153 supplemental effect Effects 0.000 description 1
- 230000033772 system development Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of Flexible Measurement & Control plateform system and development approach, comprise: data collection layer, data computation layer, parameter arrange layer, multiport multi-protocol data acquisition passage and each data acquisition equipment terminal etc., data collection layer supports the input of collecting device data to gather, and image data is sent to data computation layer or is directly uploaded to data display layer and/or data storage layer; Parameter arranges layer according to different test assignment parameters, makes it corresponding with collection port; Data computation layer according to parameter setting call corresponding module, to data calculate with process, extracted valid data consolidation form, is sent to data display layer and/or data storage layer by uniform data. The present invention has overcome the defect of legacy test system, ensure the compatibility to various communications protocols, improve the acquisition speed of monitoring platform, improve operability and the orientability of monitoring platform, reduce development cost and the risk of monitoring platform, and meet the demand of user individual customization.
Description
Technical field
The present invention relates to computer industry field tests, be specifically related to sensor multiple types, the access of Access LayerThe isomerism of bus, user, to field tests such as test interface individual requirements, relate in particular to a kind of flexible surveyControl plateform system and development approach.
Background technology
For modern industry monitoring platform, generally by performance parameter or the feature of sensor senses observing and controlling objectParameter, sends signal to the main frame such as industrial computer or PC through signal condition, and main frame enters different sensorsRow data processing, data analysis, data demonstration etc., and control defeated according to test result to observing and controlling objectGo out. In this process, the form of the sensor of access is varied on the one hand, the class signal of sensor outputType, be also not quite similar with the communication modes of main frame.
For the signal of different sensors, its real-time is not quite similar, and some requirement of real-times are high, some realitiesTime property requires very not strict, therefore need to be for concrete test assignment, to the processing of different sensors signalReal-time to specifically distribute, to meet the requirement of real-time testing task.
On the other hand, the style of different users to user interface, content, the function etc. at interface require notTo the greatest extent identical, a flexible TT&C system, user needs to define flexibly different sensors according to the needs of oneselfThe implication of parameter, and the content of user interface need to be mated well with the sensor of data access end.Along with test assignment system flexibility and testing cost are required more and more stricter, traditional test macro byGradually expose its maximum defect: traditional test and the control system overwhelming majority are certain for production firmOne specific products exploitation, realize specific test function, special computer for special use, once i.e. test assignment change needsWill again build software and hardware system, hardware instruments need to reselect, and host computer application program is write again,The diversity of communication protocol makes building of system more complicated.
From the above, conventional test methodologies disadvantage is function singleness, expensive, flexibility and openingPutting property is poor. Cycle that this has extended test assignment, increased the cost of test, improved multitask testComplexity, does not meet test assignment test macro is built and the demand for development of fast construction flexibly, and can graspThe property done is poor, and system acquisition speed is slow.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, a kind of Flexible Measurement & Control plateform system and side are providedMethod, it can ensure the compatibility to various communications protocols, improves the acquisition speed of monitoring platform, improves and surveysOperability and the orientability of control platform, reduce development cost and the risk of monitoring platform, and meet userThe demand of personalized customization.
The object of the invention is to be achieved through the following technical solutions:
A kind of Flexible Measurement & Control plateform system is provided, has comprised: data collection layer, data computation layer, parameter have been establishedPut layer, data display layer, data storage layer and data analysis layer; And multiport multi-protocol data acquisition is logicalRoad, data acquisition equipment terminal;
Data collection layer, is connected with data acquisition equipment terminal by multiport multi-protocol data acquisition passage,Gather for the data input of supporting each data acquisition equipment terminal, and the data that collect are sent to dataComputation layer or be directly uploaded to data display layer and/or data storage layer;
Parameter arranges layer, is connected, for establishing according to different test assignments with the output of data collection layerPut parameter, make it corresponding one by one with collection port, ensure the number of acquisition speed and multichannel big data quantityAccording to collection;
Data computation layer, arranges the corresponding module of the parameter call arranging in layer according to parameter, to data acquisitionThe data that layer sends are calculated and are processed, and obtain unified frame format data after extracted valid data, andThe data of unified frame format are sent to data display layer and/or data storage layer;
Data storage layer, for the data that send over are carried out to real-time storage, and sends the data of storageTo data analysis layer or data display layer;
Data display layer, with data storage layer interconnection, for by various ways, data being shown in real time,And offer the various self-defining operation of user interface;
Data analysis layer, for from data storage layer reading out data and carry out post-processed and the analysis of data.
In a kind of embodiment of variation, described data collection layer can compatible serial ports, USB, CAN and TCP/IPEtc. various communications protocols, user can carry out gathering port and communication protocol according to test assignment and parameter demandSelect, and can drive by erection unit under system framework, dynamic link library (DLL) side of invocation facilityJust new collecting device or the communication protocol of interpolation, user also can test according to reality required heavy if neededNewly write data with existing and process the data handling procedure in DLL. Described data acquisition is by being used multithreading skillArt, high speed timer timeSetEvent, high-resolution counter QueryPerformanceFrequency andCircular buffer technology, can ensure the requirement of real-time that multi-channel high-speed data gathers.
In a kind of embodiment of variation, described data computation layer comprises one virtual " equipment library ", rootAccording to different communication protocol and port device, call the code in different " equipment library ", to image dataThe data processing such as carry out different calculating, cut apart, average. Add after new equipment, need be at " equipment library "Inside set up association attributes, add corresponding code, the image data of new equipment is carried out to data and calculate and process.
In a kind of embodiment of variation, described parameter arranges layer and is included as each attribute that parameter is set up,As " parameter bound ", " port type ", " priority " etc., wherein " port type " attribute can make ginsengNumber is corresponding with collection port and relevant communication protocol, and has indicated in data computation layer and will call " equipment library "Interior code, " priority " has shown that the picking rate of parameter is defeated.
In a kind of embodiment of variation, described data display layer comprises teechart plug-in unit, this plug-in unitCurve display module, digital display module and instrument display module are built, by the OO volume of VC++Cheng Fangfa, offers the abundant operation flexibly of user, and parameter can be with the arbitrary form in above-mentioned three kinds of formsShow, curve ordinate size can arrange, digital display module and instrument display module can drag etc.
In a kind of embodiment of variation, described data storage layer uses ADO technology, can appoint according to testThe needs of business and the setting of parameter, Dynamic Establishing database and table, store and read according to field name.
The present invention also provides a kind of development approach of Flexible Measurement & Control plateform system, comprises the steps:
Data collection layer supports various data acquisition equipment terminals to carry out data by multi-protocol data acquisition passageInput gathers, and the data that collect are sent to data computation layer or are directly uploaded to data display layer and/or numberAccording to accumulation layer;
Data computation layer arranges the parameter arranging according to different test assignments in layer according to parameter, call correspondingModule, to send image data calculates with process after, obtain unified frame format data, and generalUnified frame format data are divided into different passages and are sent to data display layer and/or data storage layer;
Data storage layer carries out real-time storage to the data that send over, and the data of storage are sent to dataProcessing layer or data display layer;
Data display layer and data storage layer interconnection, show data in real time by various ways, simultaneouslyOffer the various self-defining operation of user;
Data analysis layer reading out data carry out post-processed and the analysis of data from data storage layer.
Compared with existing test macro, good effect of the present invention is:
(1) test system framework building based on visual c++, has adopted " flexible test " technology,Make system there is versatility, reasonability and good autgmentability.
(2) data collection layer adopts the mode of erection unit driving and exploitation dynamic link library (DLL) to openSend out, make can support plurality of devices and difference based on the data collection layer " module library " of virtual instrument theory exploitationCommunication protocol, requires to develop new data acquisition according to the interface rules providing for the different measurement of userModule, or revise the data handling procedure in available data acquisition module DLL, compared with prior art, brightThe aobvious development efficiency that has improved monitoring platform, has reduced the cost and risk of developing.
(3) various communications protocols and the collecting device such as the compatible serial ports of data collection layer, USB, CAN and TCP/IP,After test assignment is changed, part data acquisition equipment can be reused in new test assignment if needed,And can add easily new collecting device, compared with prior art, obviously improve the reuse efficiency gathering,And the compatibility of new equipment.
(4) service system uses multithreading, and for each parameter provides an acquisition channel, it is fixed at a high speed to useTime device timeSetEvent, high-resolution counter QueryPerformanceFrequency and circular buffer skillArt, has improved picking rate and the precision of each passage, compared with prior art, has improved system multichannelThe ability of high speed acquisition.
(5) the system operation circle based on the OO programming idea of C++ and employing teechart developing plugFace, provides abundant User Defined function flexibly, and parameter arranges layer and user interface custom feature canMake user without grasp SDL in the situation that, by understanding test assignment, different ginsengs is setNumber, comes to use Flexible Measurement & Control platform for new test assignment.
(6) data storage layer uses ADO technology, deposits according to picking rate demand establishment high speed storing table and low speedStorage table, makes high speed acquisition data separate with low speed image data, avoids the phase mutual interference between picking rate,While using the storage of ADO technology to read, only undertaken by field name simultaneously, carry out without the whole Database field of traversalSearch, has compared with prior art improved storage and reading speed.
Below in conjunction with accompanying drawing, the embodiment and advantages of the present invention are further explained.
Brief description of the drawings
Fig. 1 is the layer of structure schematic diagram of the Flexible Measurement & Control plateform system of the embodiment of the present invention;
Fig. 2 is the data multi-channel high-speed acquisition process schematic diagram of the embodiment of the present invention;
Fig. 3 is the low speed channel cycle caching technology schematic diagram of the embodiment of the present invention;
Fig. 4 is the development approach schematic flow sheet of the Flexible Measurement & Control plateform system of the embodiment of the present invention.
Detailed description of the invention
About the explanation of embodiments of the invention is graphic with reference to what add, being used for illustrating the present invention can implementSpecific embodiment. In following examples, in different figure, same section is to represent with same numeral.
Fig. 1 is layer of structure signal Figure 10 of the Flexible Measurement & Control plateform system of the embodiment of the present invention, and Fig. 4 is thisThe development approach schematic flow sheet of the Flexible Measurement & Control plateform system of inventive embodiments, below according to accompanying drawing 1 combinationAccompanying drawing 4 absolutely proves the embodiment of the present invention. System of the present invention comprises hardware data collecting device 11, usesYu Yuqi connects and sends to the host computer of Flexible Measurement & Control platform the multiport multi-protocols acquisition channel 12 of data;The host computer of Flexible Measurement & Control platform adopts the OO programming idea of ViusalC++ to write, and comprises numberAccording to acquisition layer 13, parameter, layer 14, data computation layer 15, data display layer 16, data storage layer 17 are setAnd data analysis layer 18; Data collection layer 13 with by multiport multi-protocols acquisition channel 12 and hardware dataCollecting device 11 is connected, its compatible various communications protocols and COM1, and can conveniently expand Yong HusheWhen vertical test event, do not need too much consideration hardware collecting device compatibling problem; Data collection layer 13 and data meterCalculation layer 15, data storage layer 17 are connected with data display layer 16; Parameter arranges layer 14 and is arranged at data acquisitionThe output of collection layer 13, according to the association attributes of setting parameter, parameter is right one by one with corresponding collection portShould, and call corresponding module, for example, the code in equipment library 142 (shown in Fig. 2), to correspondingThe data that gather port are done specific data calculating in data computation layer 15, or without data computation layer 15, straightConnect to last layer and pass to data storage layer 17 or data display layer 16; Data computation layer 15 shows with dataLayer 16 connects, and data computation layer 15 arranges the parameter call corresponding module arranging in layer according to parameter, for example,Comprise modules such as being averaging computing module, data segmentation module, data counts module and data interaction module,The data that data collection layer is sent are calculated and are processed, and obtain unified frame lattice after extracted valid dataFormula data, and the data of unified frame format are sent to data display layer and/or data storage layer; Data showLayer 16 interconnects with data storage layer 17, and data display layer 16, data storage layer 17 are respectively used to according to userSetting show and/or store; Data storage layer 17 can be according to the output that is arranged at data collection layer 13The parameter of end arranges 14 pairs of parameter of layer priority attribute is set, and high-speed data and low speed data are stored respectively;Data analysis layer 18 adopts ADO technology, i.e. ActiveXDataObjects, and ActiveX Data Objects,It is Microsoft propose application programming interfaces in order to realize the number in access relation or non-relational databaseAccording to technology, from data storage layer 17, reading out data carries out post-processed and the analysis of data.
As another preferred embodiment, for data collection layer 13, user can be according to test assignment and parameterDemand is selected gathering port and communication protocol, and can drive by erection unit under system framework,The dynamic link library (DLL) of invocation facility, adds new collecting device or communication protocol easily. If needed,User also can test according to reality required, again writes data with existing and processes the number in dynamic link library (DLL)According to processing procedure. The actual instrumentation that replaces data collection layer 13 has improved flexibility and the autgmentability of program, works as surveyWhen trial business changes, user only need to arrange the parameter in layer 14 for test assignment Reparametrization, promote so significantly the efficiency of development and testing system, meet the theory of flexible test; The opposing partyFace, data collection layer 13 adopts the programming mode that is similar to virtual instrument, has significantly reduced for hardware deviceThe risk and cost of change.
As another preferred embodiment, user can arrange layer 14 User Defined circle providing by parameterFace, makes parameter and collection terminal interruption-forming acquisition channel one to one, thereby specifies the ginseng of each acquisition channelNumber attribute, wherein mainly comprises frequency acquisition, port type, data packet length, triggering collection/circle collectionType, priority etc. User can arrange by parameter the priority attribute of the parameter of layer 14 setting, as attachedShown in Figure 143, make high speed acquisition data logical in different collections by multithreading from low speed image dataIn road, separately carry out, and be stored in different database tables, thereby ensured the collection of multichannel big data quantityReal-time.
As another preferred embodiment, described data display layer 16, has used teechart plug-in unit(Teechart is the control such as Teechartfor.NET, TeeChartProActiveXV2010Abbreviation, be the abbreviation of a series of chart controls of being researched and developed by Steema company) user that can provide is abundantCustom feature, comprising whether data show in real time, data show control type, data whetherOne or more during the each control property of the display interface such as position, storing frequencies of preservation, data storage arranges.
Fig. 2 is the data multi-channel high-speed acquisition process schematic diagram of the embodiment of the present invention, and this schematic understandsThe embodiment of the present invention is for the implementation process that ensures that multi-channel high-speed data gathers. Data are gathered by hardware dataEquipment 11 gathers, and then by multiport multi-protocols acquisition channel 12, data is passed to Flexible Measurement & ControlThe data collection layer 13 of platform; Because the present invention is general flexible test plateform system, for for differentTest assignment, offers setting and the operation of user flexibility, so parameter and port are not what fix, andBe the parameter correlation attribute arranging in layer 14 by arranging in parameter, set up ginseng by calling port respective modulesNumber acquisition channel makes the parameter that user arranges complete corresponding with the port of setting; Wherein port type module 141Use the OO programming idea of VC++, in parameter, layer 14 be set and offer user-dependent setting options,Select the port of its Data Source for each parameter defining, like this, just make parameter and its Data SourceOn data collection layer, realize " being flexible coupling ".
Pass through parameters 1, parameter 2, parameter 3 at data collection layer 13 ... the parameter acquisitions such as parameter N arriveAfter corresponding data, just data are passed to data computation layer 15, now " port type " attribute of parameter141 and " other attributes " 144 modules just become parameter call parameter arrange layer 14 in equipment library module 142Mark. Illustrate, for example, the Data Source of parameter 1 is serial ports, and comprises 3 valid data,The number of significant digit of each data is 8, in parameter, layer 14 parameter providing is set so and arranges and on interface, have phaseThe attribute of answering is selected for user, then carries out data acquisition according to the good serial ports baud rate of these setup of attributes,And in data computation layer 15 by calling corresponding module, for example code or the letter of equipment library module 142 interior correspondencesNumber, is divided into 3 points by the data source of this parameter by flag bit, and extract every part 8 for valid data.Again for example, parameter 2 is flexible coupling with the count value that the counter of CAN bus sends, because parameter is that timing is adoptedCollection, so need, to the data that obtain in the timing cycle calculating of averaging, can establish according to parameter correlationPut attribute, code or the function of invocation facility library module 142 interior correspondences, calculate this data value of averaging,Thereby acquisition virtual value. In addition, all valid data are set as unified form by data computation layer 15,So that follow-up data processing, storage and demonstration; The theory of equipment library module 142 compared with existing calculating,Ensured versatility, the compatibility of system, and expansion is convenient for programmer, only need sets up and to callFlag bit, and correlative code or function.
Supplemental characteristic obtains unified frame format data after data computation layer 15 is processed, then according to priorityAttribute, arranges the priority block 143 of layer in 14 by different priorities by parameter, i.e. different acquisition speedData be divided into different passages and transmit to upper strata, in schematic diagram, only represented two passages, but used in realityTime can open multiple passages to the setting of priority level according to user. As an example, with two shown in Fig. 2Passage describes, if the priority of certain several parameter is high, by calling high speed timerTimeSetEvent function and high-resolution counter QueryPerformanceFrequency function carry out, and establishA vertical high speed data transfer passage, the collection period of this passage is very short, is generally Millisecond. Simultaneously in ginsengNumber display layer 16, the curve display module 161 that can provide according to real-time display interface, digital display module 162And instrument display module 163 shows in real time by user's setting, in data storage layer 17 dynamic creationsA high-speed data stored data base table 171, is used for receiving high speed acquisition data. The data that priority is low,By timer timeSetEvent function and high-resolution counter QueryPerformanceFrequency functionPeriodic quantity arrange larger, for example, be arranged to 500ms, simultaneously also can according to user to be arranged at curve aobviousShow that module 161, digital display module 162 and 163 connections of instrument display module show in real time, in dataLow speed data stored data base table 172 of accumulation layer 17 dynamic creation, is used for receiving low speed image data.In addition, also should adopt circular buffer technology at low speed passage, to avoid the low speed acquisition channel that priority is lowerThe loss of data causing due to thread block. Compared with prior art, the present invention ensures by said methodSystem multichannel big data quantity gather.
Especially, the curve display module 161 in data display layer 16, digital display module 162, instrumentDisplay module 163 and other arrange module 164, have can add, drag, edit, the feature operation such as deletion,Rich and varied user's operation is provided, has fully demonstrated the feature of flexible test technology.
As preferred embodiment, because high speed acquisition data volume is large and user operates too frequent or takiesWhen resource is too much, low speed image data priority is lower, may result in blockage to low speed collecting thread passage.And meanwhile, just have to send data from data collection layer to this low speed thread acquisition channel, so stifledThe sending during this period of time certain one piece of data and will be omitted by other data processing threads of plug, thus number causedAccording to loss. Can adopt circular buffer technology in order to address this problem us, be about to collectThe data that length is the longest, send to data low speed collecting thread passage each time as tentation data collecting deviceData length, then create a buffer queue according to this length, be used for that storage of collected thread sendsData. Once low speed collecting thread passage obtains resource, user operates and reduces or to take resource be not a lotIn time, starts this segment data to process. In code, want to realize the simplest way of buffer queue, be exactlySet up a similar ReadBuffer[Count] two-dimensional array of [DataLen], by the DataLen in array,Be the data that lateral length is considered as the maximum length that each low speed collecting thread passage may send, by arrayCount, longitudinally size is considered as member's number of buffer queue. According to the size of data and the actual feelings that useCondition is set this array.
Fig. 3 is the low speed channel cycle caching technology schematic diagram of the embodiment of the present invention, as shown in Figure 3, makesUsed time, we are preferred using maximum each time image data length as benchmark, in this test environment,Basic memory cell using double categorical data as buffering area, has got 30 such unit just soThe horizontal memory space that enough ensures data, is set as longitudinal memory cell number of buffer queue 22 in addition32, so in fact ReadBuffer[32] form of [30] this array is buffering described aboveQueue 22. Data acquisition thread 21 and data processing thread 22 respectively by change ReadCount andThe value of StoreCount, fills the address value of dynamic pointer and changes the data buffer zone of pointed, andThe length of each buffering area is identical, is all DataLen, and in order to prevent interfering with each other, we use two variablees,Be that ReadCount and StoreCount store respectively data acquisition thread 21 and data processing thread 22Pointer subscript variable. Work as collecting device, after the initialization such as serial ports, CAN, data acquisition thread starts workDo, while carrying out data acquisition for the first time, value that ReadCount is set to 0, is pointed firstIndividual buffering area 221, and carry out the data receiver of collecting device with this buffering area. After one piece of data has gathered,Send corresponding message by message corresponding modes to data processing thread, now SegIndex variable adds1 (SegIndex variable is the public variable of two threads, this variable recorded due to thread stop up, causeData acquisition thread gather and to data processing thread send buffering area number, with data processing threadCarry out the difference of the buffering area quantity of data processing, and there is no processed buffering area number after gathering), thenReadCount will add l certainly, make second buffering area 222 of pointed, use this buffering area to carry out dataGather. Then SegIndex is from adding 1, and so circulation is carried out, in the time that ReadCount value equals 3l, to thisValue is reset, and makes the start bit of pointed buffering area, restarts access. And for data processing lineJourney, will pass through event response process of SetEvent () function setup, is stored in buffering in every secondary dataQu Hou, sends a message, and this thread receives after message, to do not carry out data because thread stops upThe buffering area number of processing judges, then in the time of thread Gains resources, carries out processing one by one, every processingOne, SegIndex variable is from subtracting 1, until SegIndex is that to represent that buffering area has not had at 0 o'clock untreatedData. Therefore,, in the time that test macro program is loaded suddenly increase, first we can ensure the collection of dataSpeed and collecting efficiency, under the guarantee of the cushioning effect of buffering area queue, data processing thread needn't logarithmAccording to processing in real time. The collected thread of image data is buffered in buffering area continuously in this case, goes forward side by sideThe buffer memory of row certain hour, can not cause loss of data because of the obstruction of data processing line like this. Use thisTechnology, can also be in addition real-time judge of the value of the public variable SegIndex of two threads, if its value is largeIn 32,, certainly because test program is too busy, cause data processing thread duration of congestion to exceed permissionScope, now buffering area overflows, can by report to the police mode remind operating personnel. Therefore adopt thisThe technology of kind is improved the fault-tolerant processing ability of test program.
The embodiment of the present invention is for traditional monitoring platform system and the defect of development approach, a kind of flexible surveyIn the development process of control platform, incorporate the thought of " flexible test " technology. The thought of flexible test is mainBe embodied in following at least one aspect: (one) data collection layer, there is the compatibility of multiport multi-communication protocol,Can support the input of multiple collecting device, user can define flexible development and spreading number according to system frameworkAccording to acquisition layer, thereby develop corresponding test macro for different test assignments; (2) parameter arranges layer,The flexible custom feature of using is provided, can makes parameter and acquisition channel be flexible coupling, thereby ensure new test assignmentFast Development; (3) multithreading of use Windows, adopts multimedia high speed timerTimeSetEvent, high-resolution counter QueryPerformanceFrequency and circular buffer technology,Realize the multi-channel high-speed collection of data; (4) use the OO programmed method of visual c++ andTeechart plug-in unit, the subsequent treatment that user can self-defining data, comprises whether instant playback of data,Whether data preserve, data storing frequencies, and the control type of display interface, the setup of attribute of each control etc.,Realize the object of flexible setting.
The embodiment of the present invention, by data collection layer and collecting device and port communication, is carried out according to configuration informationData acquisition, then by parameter arrange layer allotment carry out data calculating, then send to data display layerShow that the operations such as warning, control are stored at data storage layer simultaneously. The present invention has overcome biographyThe defect of unified test test system, has met the demand of modern test assignment, has improved the efficiency of refresh test task,Reduced the risk and cost of system development, the introducing of flexible test technology has solved legacy test system expansionThe problem of property, flexibility deficiency.
Foregoing is to comprehensive explanation of the present invention, and should not be construed as a limitation of the present invention. ShouldWhen pointing out, for those skilled in the art, without departing from the inventive concept of the premise, alsoCan make some improvements and modifications, these improvements and modifications also should be considered within the scope of protection of the present invention.
Claims (9)
1. a Flexible Measurement & Control plateform system, is characterized in that, comprising: data collection layer, data computation layer,Parameter arranges layer, data display layer, data storage layer and data analysis layer; And multiport multi-protocol dataAcquisition channel, each data acquisition equipment terminal;
Data collection layer, is connected with data acquisition equipment terminal by multiport multi-protocol data acquisition passage,Gather for the data input of supporting each data acquisition equipment terminal, and the data that collect are sent to dataComputation layer or be directly uploaded to data display layer and/or data storage layer;
Parameter arranges layer, is connected, for establishing according to different test assignments with the output of data collection layerPut parameter, make it corresponding one by one with collection port, ensure the number of acquisition speed and multichannel big data quantityAccording to collection;
Data computation layer, arranges the parameter call corresponding module arranging in layer, to data collection layer according to parameterThe data that send are calculated and are processed, and obtain unified frame format data after extracted valid data, and willThe data of unified frame format are sent to data display layer and/or data storage layer;
Data storage layer, for the data that send over are carried out to real-time storage, and sends the data of storageTo data analysis layer or data display layer;
Data display layer, with data storage layer interconnection, for by various ways, data being shown in real time,And offer the various self-defining operation of user interface;
Data analysis layer, for from data storage layer reading out data and carry out post-processed and the analysis of data;
Wherein, described parameter arranges layer according to user's self-defining operation interface, makes parameter and the collection terminal degree of lip-roundingBecome acquisition channel one to one, by defining the parameter attribute of each acquisition channel, make high speed acquisition data withLow speed image data is separated in different acquisition channels, and is stored in different database tables, completes manyThe Real-time Collection of passage Volume data.
2. Flexible Measurement & Control plateform system according to claim 1, is characterized in that, described data acquisitionLayer drives by erection unit, calls corresponding dynamic link library (DLL), compatibility at least comprise serial ports, USB,The various data transmission port of CAN and TCP/IP, to connect with the data acquisition equipment terminal of different sizeConnect.
3. Flexible Measurement & Control plateform system according to claim 1, is characterized in that, described multichannel is largeThe Real-time Collection of data volume data is the multithreadings based on Windows, by callingAfxBeginThread function, adopts multimedia high speed timer timeSetEvent, high-resolution counterQueryPerformanceFrequency and circular buffer technology, realize multichannel parallel acquisition.
4. Flexible Measurement & Control plateform system according to claim 3, is characterized in that, described data are calculatedLayer comprises at least one virtual equipment library, according to different communication protocol and collection port, calls differentCode in equipment library, carries out data to image data and calculates and process; When adding when new equipment, byIn equipment library, set up association attributes, add corresponding code, the image data of new equipment is carried out to data calculatingWith processing.
5. Flexible Measurement & Control plateform system according to claim 4, is characterized in that, described parameter settingThe attribute of the parameter that layer arranges comprises: port type, priority, wherein, port type attribute definition is being countedWant the code in invocation facility storehouse according to computation layer, make to gather port corresponding with relevant communication protocol; PriorityThe picking rate of attribute definition data.
6. Flexible Measurement & Control plateform system according to claim 1 or 5, is characterized in that described dataAccumulation layer adopts ADO technology, according to the needs of test assignment and parameter setting, dynamic creation database andTable.
7. Flexible Measurement & Control plateform system according to claim 6, is characterized in that, described data storageThe table of layer dynamic creation comprises: at least one low speed data stored data base table and at least one high-speed data are depositedStorage database table, for receiving respectively low speed image data and high speed acquisition data.
8. Flexible Measurement & Control plateform system according to claim 7, is characterized in that, described data showLayer comprises teechart plug-in unit, and this plug-in unit comprises that curve display module, digital display module and instrument show mouldPiece, shows in real time by user's setting, and data show with the arbitrary form in above-mentioned three kinds of formsShow.
9. a development approach for Flexible Measurement & Control plateform system, is characterized in that, comprises the steps:
Data collection layer supports various data acquisition equipment terminals to carry out data by multi-protocol data acquisition passageInput gathers, and the data that collect are sent to data computation layer or are directly uploaded to data display layer and/or numberAccording to accumulation layer;
Data computation layer arranges the parameter arranging according to different test assignments in layer according to parameter, call correspondingModule, calculates and processes the image data sending, and obtains unified frame format after extracted valid dataData, and unified frame format data are divided into different passages are sent to data display layer and/or data storageLayer;
Data storage layer carries out real-time storage to the data that send over, and the data of storage are sent to dataProcessing layer or data display layer;
Data display layer and data storage layer interconnection, show data in real time by various ways, simultaneouslyOffer the various self-defining operation of user;
Data analysis layer reading out data carry out post-processed and the analysis of data from data storage layer;
Wherein, described parameter arranges layer according to user's self-defining operation interface, makes parameter and the collection terminal degree of lip-roundingBecome acquisition channel one to one, by defining the parameter attribute of each acquisition channel, make high speed acquisition data withLow speed image data is separated in different acquisition channels, and is stored in different database tables, completes manyThe Real-time Collection of passage Volume data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210401375.XA CN102929620B (en) | 2012-10-19 | 2012-10-19 | A kind of Flexible Measurement & Control plateform system and development approach |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210401375.XA CN102929620B (en) | 2012-10-19 | 2012-10-19 | A kind of Flexible Measurement & Control plateform system and development approach |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102929620A CN102929620A (en) | 2013-02-13 |
CN102929620B true CN102929620B (en) | 2016-05-25 |
Family
ID=47644433
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210401375.XA Active CN102929620B (en) | 2012-10-19 | 2012-10-19 | A kind of Flexible Measurement & Control plateform system and development approach |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102929620B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9826039B2 (en) * | 2014-02-04 | 2017-11-21 | Honeywell International Inc. | Configurable communication systems and methods for communication |
CN104063216A (en) * | 2014-06-12 | 2014-09-24 | 北京航天发射技术研究所 | High-speed data processing display method based on Labview |
CN104104674A (en) * | 2014-07-01 | 2014-10-15 | 广东艾科技术股份有限公司 | Multiprotocol distributed data acquisition control system of equipment sensor and method thereof |
CN104991469B (en) * | 2015-05-19 | 2017-08-01 | 广东中鹏热能科技有限公司 | A kind of device data preferential collection method and system |
CN106850596B (en) * | 2017-01-16 | 2020-08-04 | 北京市天元网络技术股份有限公司 | Data acquisition system and method |
CN108302993A (en) * | 2018-01-18 | 2018-07-20 | 重庆大学 | It is under fire and tests system flexibility test automation technology |
CN108363985B (en) * | 2018-03-06 | 2023-06-06 | 深圳市易成自动驾驶技术有限公司 | Target object perception system testing method and device and computer readable storage medium |
CN111158669A (en) * | 2019-12-06 | 2020-05-15 | 佛山缔乐视觉科技有限公司 | Graphical programming visual system and industrial control method |
CN111084612A (en) * | 2019-12-30 | 2020-05-01 | 中国人民解放军陆军军医大学第一附属医院 | Combined medical data acquisition system |
CN113179330B (en) * | 2021-05-25 | 2022-08-09 | 浙江浙大西投脑机智能科技有限公司 | External equipment connection management system compatible with multiple hardware interface specifications and hardware communication protocols |
CN113722013B (en) * | 2021-09-10 | 2023-07-28 | 中国西安卫星测控中心 | Data exchange method suitable for Beidou No. three satellite measurement, operation and control system |
CN114697293B (en) * | 2022-03-30 | 2023-11-10 | 西安北方华创微电子装备有限公司 | Data transmission method, lower computer and controller |
CN114968728A (en) * | 2022-06-29 | 2022-08-30 | 广西柳工机械股份有限公司 | Data acquisition method, device, equipment and storage medium |
CN119443301B (en) * | 2024-10-29 | 2025-09-26 | 中国科学技术大学 | Quantum processor parallel measurement and control system and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270141A (en) * | 2011-08-21 | 2011-12-07 | 中国海洋大学 | Configurable data acquisition software system and designing method |
CN102279746A (en) * | 2011-08-21 | 2011-12-14 | 中国海洋大学 | Sensor-based monitoring software development platform system and method |
CN102393301A (en) * | 2011-07-14 | 2012-03-28 | 华东理工大学 | Flexibility testing system of engine |
-
2012
- 2012-10-19 CN CN201210401375.XA patent/CN102929620B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102393301A (en) * | 2011-07-14 | 2012-03-28 | 华东理工大学 | Flexibility testing system of engine |
CN102270141A (en) * | 2011-08-21 | 2011-12-07 | 中国海洋大学 | Configurable data acquisition software system and designing method |
CN102279746A (en) * | 2011-08-21 | 2011-12-14 | 中国海洋大学 | Sensor-based monitoring software development platform system and method |
Non-Patent Citations (2)
Title |
---|
可配置的智能仪表数据采集系统设计与实现;潘洪华;《中国优秀硕士论文全文数据库》;20090315;正文第5章 * |
复杂机电测控系统的嵌入式开发方法的研究;季白杨等;《中国科技成果》;20090630;第21-23页 * |
Also Published As
Publication number | Publication date |
---|---|
CN102929620A (en) | 2013-02-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102929620B (en) | A kind of Flexible Measurement & Control plateform system and development approach | |
CN104932364B (en) | The OPC UA conversion equipments and method of a kind of Modbus communications protocol | |
CN104135533B (en) | A kind of system and method for industrial data transmission | |
CN105794152B (en) | The system and method and device of the interaction based on web are carried out with building automatic | |
CN106888120A (en) | A kind of method, the apparatus and system of Internet of Things management | |
CN110049137A (en) | A kind of instruction transmission method, collecting method and relevant apparatus | |
CN105357077A (en) | Device and method for processing serial port data of multiple devices | |
CN103326902A (en) | Configurable monitoring system and monitoring method for distributed type mainframe performance testing data | |
CN103019990A (en) | Method for uploading data at collection end through starting PCI-E (Peripheral Component Interconnect-Express) bus DMA (Direct Memory Access) | |
CN105679231B (en) | Terminal device access control system and LED display system | |
CN203177894U (en) | Embedded monitoring system of large rotating machinery | |
CN105471548A (en) | Network data packet analyzing and distributing method | |
CN204390023U (en) | A kind of industrial control system | |
CN107896240A (en) | Single-chip microcomputer and configuration software telecommunication system based on Internet | |
CN102857375B (en) | A kind of method for managing and explaining communication protocol | |
CN102053808B (en) | Method, device for printing software information as well as equipment with network interface | |
CN105824682B (en) | A kind of monitoring method of virtual machine, device and system | |
CN105763355A (en) | Information collection and communication network management method and system | |
CN107885691A (en) | Serial data transmission method, distributed apparatus and main frame | |
CN118393913A (en) | Flight simulator interface system | |
CN202856759U (en) | Communication management unit based on integrated implementation of extensible markup language and dynamic library | |
CN104836710A (en) | Method and apparatus based on one-master with multi-slaves communication of distributed system | |
CN112837525A (en) | RS485 instrument configuration and communication method, system, terminal and storage medium | |
CN102455969A (en) | Method for recording Linux serial communication log | |
CN202853719U (en) | Multi-balance automatic weighing system device based on Ethernet |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |