CN101114405A - Digitization experimental laboratory system and data control method thereof - Google Patents

Digitization experimental laboratory system and data control method thereof Download PDF

Info

Publication number
CN101114405A
CN101114405A CNA2005100298613A CN200510029861A CN101114405A CN 101114405 A CN101114405 A CN 101114405A CN A2005100298613 A CNA2005100298613 A CN A2005100298613A CN 200510029861 A CN200510029861 A CN 200510029861A CN 101114405 A CN101114405 A CN 101114405A
Authority
CN
China
Prior art keywords
data
experimental
window
digitization
experiment
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
CNA2005100298613A
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.)
NINGBO QIKEWEI DIGITAL TEACHING AID CO Ltd
Original Assignee
NINGBO QIKEWEI DIGITAL TEACHING AID 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 NINGBO QIKEWEI DIGITAL TEACHING AID CO Ltd filed Critical NINGBO QIKEWEI DIGITAL TEACHING AID CO Ltd
Priority to CNA2005100298613A priority Critical patent/CN101114405A/en
Publication of CN101114405A publication Critical patent/CN101114405A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to an experiment device system, in particular to a digital laboratory system and the data control method thereof. The digital laboratory system provided by the invention comprises sensors (10) which are mutually connected, a student terminal (20) and a teacher control platform (30), wherein, the experiment data is transmitted to the student terminal (20) via the sensors (10), the student terminal (20) displays, temporarily stores, sends and simply analyzes the data, if storage and further analysis are needed, the data can be transmitted to the teacher control platform (30) via the wireless network, a management analysis software of the teacher control platform (30) carries on storage and further data processing, analysis and generates the final experiment results. In addition, the invention provides a data control method of the digital laboratory system.

Description

Digitization experimental laboratory system and data control method thereof
Technical field
The present invention system specifically, relates to a kind of digitization experimental laboratory system and data control method thereof about a kind of experimental facilities system.
Background technology
In all kinds of schools, generally all brought into use some experimental facilitiess to substitute traditional laboratory facilities at present.Consequently make students that further raising can have been arranged the understanding of various experiments, can improve the diverse discipline teaching effect greatly.But existing various experimental facilities structures are also fairly simple, and the problem of its existence is to need directly with after microcomputer combines could use, and its function singleness.For this reason, be necessary this is further improved.
Because it is trend of the times that computing machine enters the physical and chemical experiment teaching, with syllabus target university physical and chemical experiment teaching headed by the cultivation student research and development ability, must whom connect with computing machine as early as possible especially, powerful calculating, the analysis ability of appliance computer assisted the physics and chemistry teaching; The basis of physical and chemical experiment teaching is true experiment, and software emulation, simulation can solve absolutely not, and the reform of laboratory facilities should be with true experiment, it is leading to be measured as in real time; And the deficiency of existing laboratory facilities mainly shows and the backwardness of measurement means comprises that range, precision, stability and the adaptability of measurement instrument can not meet requirement of experiment.
Summary of the invention
The object of the present invention is to provide a kind of digitization experimental laboratory system and data control method thereof.From the informationization of informationalized development course one state, will experience production informatization, the such process of economic informationization and social informatization.IT application in education sector will provide intelligence basis and talent basis for the informationization of other industries as the most important thing of production informatization.The present invention is as the product of IT application in education sector reform, can support comprehensively the common physics and chemistry of universities, middle and primary schools and modern age physical and chemical experiment and Bioexperiment, be the informationization reform that cooperates the physical and chemical experiment chamber of large, medium and small, make up the major technique equipment of international advanced person " digital information experimental system ".
A kind of digitization experimental laboratory system provided by the invention is controlled platform by sensor, student terminal and teacher and is constituted, it is sent to student terminal by sensor with experimental data, by student terminal to data show, keep in, transmission and simple analysis, storage and further analysis if desired, can send data to teacher by wireless network and control platform, control the administrative analysis software of platform by the teacher and store and further data processing, analysis and the final experimental result that generates.
In addition, the present invention also provides a kind of data control method of digitization experimental laboratory system, and it realizes functions such as data acquisition, analysis, management.Data system mainly is divided into data acquisition end and data processing end.The data acquisition end is responsible for from devices collect data such as wireless network, Ethernet, USB mouth and serial ports, and to be responsible for the data organization that collects be the data system of clear in structure.The data processing end is responsible for generating various types of empirical curves, laboratory report according to the data that collect, and functions such as data screening, management are provided.
The data control method that the invention provides a kind of digitization experimental laboratory system runs on the functions such as collection, analysis, demonstration and storage that DAS primary control program on the computing machine is used to finish data.Main control end mainly is made up of two parts: be responsible for from the DasUsb.dll of USB mouth image data and the master routine Das.exe of responsible analysis, demonstration and storage data.
DasUsb.dll comprises 6 threads.
Sequence number Function Start and stop Withdraw from
1 From the USB reading of data Circular flow, 1 millisecond at interval.When thread 4 suspends when sending data The master routine notice
2 Cut apart the data that thread 1 is read, generate packet Start by thread 1 notice, when having cut all data, stop The master routine notice
3 The packet that processing threads 2 is formed is carried out order accordingly Start by thread 2 notices, after handling all packets, stop The master routine notice
4 Order and file send thread, send order and transfer files to equipment Start when needing to send order/file, stop after transmission finishes The master routine notice
5 5 seconds timer threads Circular flow, 5000 milliseconds at interval The master routine notice
6 The timestamp thread, per 1 second toward timestamp of antenna transmission, calibration equipment time Circular flow, 1000 milliseconds at interval The master routine notice
Das.exe is used to finish analysis, demonstration and the memory function of data.It mainly comprises two big functions: test and record is checked.When testing, main window comprises: equipment control window, trial window, data and curves window and data list window; When checking historical record, main window comprises record list window, data and curves window and data list window.The function that record list window and equipment control window are realized is very similar.
The present invention is that a kind of advanced person's in the market digitizing physics and chemistry is given birth to experimental analysis equipment, has realized collection of experiment data, measurement and analysis.Native system is combining on the sophisticated equipment technical foundation both domestic and external, according to middle and primary schools' second phase curriculum reform requirement, present situation in conjunction with domestic present experimental facilities, in order better to support middle and primary schools' teaching and experiment, having proposed with advance, practicality, reliability, simple and direct property is aim, at utmost satisfy the requirement of teaching, supported middle and primary schools' education experiment better.
Below, describe details and working condition in conjunction with the accompanying drawings and embodiments in detail according to the concrete device of the present invention's proposition.
Description of drawings
Fig. 1: the embodiment of the invention provides the data handling system overall construction drawing.
Fig. 2: the embodiment of the invention provides data acquisition end structure figure.
Fig. 3: the embodiment of the invention provides the image data structural drawing.
Fig. 4: the embodiment of the invention is obtained main process equipment access handle process flow diagram.
Fig. 5: the message protocol of the embodiment of the invention.
Fig. 6: embodiment of the invention usb data collector thread table.
Fig. 7: the usb data collector intercepting thread flow process of the embodiment of the invention.
Fig. 8: the usb data collector data packet group zygonema journey flow process of the embodiment of the invention.
Fig. 9: the usb data processing threads flow process of the embodiment of the invention.
Figure 10: the main window layout of the embodiment of the invention.
Figure 11: the equipment control Window layer aggregated(particle) structure of the embodiment of the invention.
Figure 12: the some index of the embodiment of the invention.
Figure 13: the data and curves window key element of the embodiment of the invention and its legend table of comparisons.
Figure 14: embodiment of the invention record list window hierarchical structure.
Figure 15: the hierarchical chart of the embodiment of the invention.
Figure 16: the student experimenting report figure of the embodiment of the invention.
Figure 17-1,17-2,17-3 are the display image of embodiment of the invention research linear uniform motion rule.
Figure 18-1,18-2 are the display image of embodiment of the invention research uniformly accelrated rectilinear motion rule.
Figure 19-1,19-2 are the interaction display image of embodiment of the invention research power.
Figure 20 is that overall system of the present invention constitutes synoptic diagram.
Figure 21 is the structural representation of student terminal of the present invention.
Figure 22 is the structural representation of student terminal embodiment of the present invention.
Figure 23 is the workflow synoptic diagram of the embodiment of the invention.
Embodiment
As shown in Figure 20, a kind of digitization experimental laboratory system of providing of the embodiment of the invention is controlled platform 30 by interconnective sensor 10, student terminal 20 and teacher and is constituted.It is sent to student terminal 20 by sensor 10 with experimental data, by 20 pairs of data of student terminal show, keep in, transmission and simple analysis, storage and further analysis if desired, can send data to teacher by wireless network and control platform 30, control the administrative analysis software of platform 30 by the teacher and store and further data processing, analysis and the final experimental result that generates.
Sensor 10 described in the digitization experimental laboratory system that the embodiment of the invention provides can adopt various forms of sensors, for example can comprise various forms of sensors such as electric current, voltage sensor, Magnetic Sensor, photoelectric sensor, pressure transducer, temperature sensor, mechanics sensor, imageing sensor, video sensor.
As shown in Figure 21, the student terminal described in the digitization experimental laboratory system provided by the invention 20 mainly comprises: data-interface part 1, data storage part 2, data processing section 3, data display unit 4, wireless telecommunications part 5 and systems control division divide 6; Wherein,
Described data-interface part 1 is responsible for handling the communication of probe module, and receiving transducer is caught next data;
Described data storage part 2 is responsible for the data that data-interface receives are carried out database storing;
Described data processing section 3 is responsible for the data storage partial data that receives is handled, and result can be got back to the data storage part as data storage, also can use directly for other modules;
Described data display unit 4 is by being shown to the interactive interface that provides on the LCDs between system and the user with data and control information;
Described wireless telecommunications part 5 at first is measurement data can be returned the PC end by wireless transmission; Secondly, make Device Host can accept data and order that far-end transmits, make Device Host have Long-distance Control and data sharing ability;
Described systems control division divides 6 to grasp setting and all Resource allocation and smoothings of system, and can activate above each module and cooperate.
As shown in Figure 22, student terminal 20 main frames provided by the present invention take mode bus to connect.Bus comprises address wire, data line and control line.From physically, the student terminal 20 that the preferred embodiment of the present invention provides mainly comprises: cpu system control section 6, RF antenna wireless communication part 5, LCD module data display part 4, external RAM data storage part 2 and internal module data-interface part 1; In addition, also have number of C PU peripheral components 7 to be used for to cpu system control section 6 provides service among the present invention, wherein power module provides power supply and control start and close for main frame, and the JTAG module is used for commissioning device, and crystal oscillator provides the clock input for equipment.
Data-interface part 1 described in the student terminal 20 that the embodiment of the invention provides is responsible for the data that probe is caught are decomposed, and finishes the processing of some automation protocols of interface.After data-interface part 1 receives packet, active data parsed give data storage and partly carry out back segment and handle.In addition, data-interface is accepted the order bag that transmits from probe interface, and carries out order wherein.
The data-interface part 1 of the embodiment of the invention can be controlled a plurality of probes simultaneously, and for example present embodiment is supported 4 probe 11,12,13,14 interfaces, and the state between each probe interface does not have mutual influence fully.
Data storage part 2 described in the student terminal 20 that the embodiment of the invention provides is responsible for the data that data-interface part 1 receives are carried out database storing.Data in the database are stored according to certain form, supply with data processing section and data display unit and carry out post-processed.Described data storage part 2 has also been born the storage of a part of system data, such as the operational factor of system, Job Data Sheet or the like.In embodiments of the present invention, data storage part 2 is to be finished by CPU internal RAM and Flash chip of external RAM of CPU and CPU outside, the information such as parameter, buffer memory and probe state that the operation of CPU internal RAM stocking system is required, the external RAM of CPU stores the probe data that receives, the Flash chip-stored some data of often not changing.
The data of the data storage part 2 described in the student terminal 20 that the embodiment of the invention provides only are the raw data that probe measurement arrives.These raw data can be handled by the processing module of data processing section 3, obtain some indirect calculation results, such as statistics, differentiate, integral and calculating or the like.The result of described data processing section 3 also can be got back to data storage part 2 as data storage, also can use directly for other modules.Data processing in embodiments of the present invention is to move corresponding process software by CPU to carry out in design.
Data display unit 4 described in the student terminal 20 that the embodiment of the invention provides is by being shown to the interactive interface that provides on the LCDs LCD between system and the user with data and control information.Content displayed comprises measurement data curve or numerical value on the display screen, and it depends on the demonstration/control element in some system operations such as the show state of the experiment of selection and probe data and system operation menu.In addition, described data display unit 4 also drives and has handled the touch screen portion of system.For the user provides an easy mode of operation.The display part is to be moved by the LCD module by CPU on hardware.The working method and the displaying contents of CPU control LCD module.
Wireless telecommunications part 5 described in the student terminal 20 that the embodiment of the invention provides has following function: at first be measurement data can be returned the PC end by wireless transmission.Secondly, make Device Host can accept data and order that far-end transmits, make Device Host have Long-distance Control and data sharing ability.Particularly, equipment at first can be by wireless with the data back far-end, secondly can be with the status information of equipment, and comprise device name/sequence number, probe information, set or the like and to pass far-end back at present; In addition, equipment can take orders and data by far-end.By the function in these communications, can be organically be combined into the equipment of all networkings as a whole.The hardware of wireless telecommunications is to realize under the instruction of CPU by a RF controller and RF high frequency antenna in the embodiment of the invention.The communications protocol of entire RF is the CPU programmed control.
Systems control division described in the student terminal 20 that the embodiment of the invention provides divides 6 to adopt cpu chip to coordinate the collaborative work of the various piece of opertaing device main frame, is the core place of entire equipment main frame.Setting and all Resource allocation and smoothings of control grasp system of system, and can activate above each module and cooperate.System's control is to be realized by the software of CPU inside from the form of expression in embodiments of the present invention.
The workflow of a kind of digitization experimental laboratory system provided by the invention as shown in Figure 23, its start back equipment at first carries out initial work, the inspection of finishing each module guarantees that equipment can operate as normal.After finishing, initialization can insert probe, as selecting experiment,, and be stored in the storage module simultaneously in suitable setting just the data that probe imports into after the probe data display mode are presented on the LCD, if the PC end needs the data of this TV station equipment, data also can send to the PC end by wireless module.
Teacher described in a kind of digitization experimental laboratory system that the embodiment of the invention provides controls platform 30 and adopts computer control, and it is mainly stored by administrative analysis software and further data processing, analysis and the final experimental result that generates.
In addition, the embodiment of the invention also provides a kind of data control method of digitization experimental laboratory system, and it realizes functions such as data acquisition, analysis, management.Data control system mainly is divided into data acquisition end and data processing end.The data acquisition end is responsible for from devices collect data such as wireless network, Ethernet, USB mouth and serial ports, and to be responsible for the data organization that collects be the data system of clear in structure.The data processing end is responsible for generating various types of empirical curves, laboratory report according to the data that collect, and functions such as data screening, management are provided.The data handling system general structure as shown in Figure 1.
The embodiment of the invention provides the data control method of digitization experimental laboratory system to comprise the following steps:
Main frame is connected with PC by wireless network, Ethernet, USB line or Serial Port Line, and PC holds software that the data between corresponding communication module realization PC and multiple host and the both-way communication of instruction are provided;
The data that main frame is uploaded are kept in the data acquisition end and use for the data processing end;
The data processing end extracts data from the data acquisition end, the data of disappearance are given polishing with the mode of spline interpolation, then the form of data with curve is shown;
The student comes heuristic data rule over time by the match empirical curve, comes relation between heuristic data by coordinate axis being changed to data formula, generates laboratory report by the data sheet module at last;
Experimental data and laboratory report are stored in respectively in experimental data base and the laboratory report storehouse, are provided with back inquiry and use.
It is to be core with the image data manager that the embodiment of the invention provides the data acquisition end, is the star structure of branch with each data acquisition unit.The image data manager starts and each data acquisition unit of initialization (# collector #Init), and the instruction that the data processing end is sent passes to data acquisition end (# collector #Send).Data acquisition unit calls the data acquisition call back function (OnUsbDataIn) of image data manager, gives the image data manager with the data transfer that collects, its interface such as accompanying drawing 2 expressions.
Embodiment of the invention image data manager is data system as shown in Figure 3 with the data organization that receives.
Embodiment of the invention data processing end visits data system shown in the last figure by interface.Below describe the collecting flowchart of data acquisition unit in detail.
Message protocol
Each data acquisition unit of the embodiment of the invention removes image data mode difference, but message protocol is identical, lists shown in the following accompanying drawing 5 of main agreement.
Probe incident-access probe
Header Message subtype Probe information
Message length The equipment index Type of message Check code
1 byte 1 byte 1 byte 1 byte 1 byte 22 byte s
27 0x00 0x00 See table
Attached: probe information
Device name The equipment index The probe index The probe type
16 bytes 4 bytes 1 byte 1 byte
Probe incident-pull out probe
Header Message subtype The probe index
Message length The equipment index Type of message Check code
1 byte 1 byte 1 byte 1 byte 1 byte 1 byte s
6 0x00 0x01
Probe incident-probe data
Header Data bulk Data
Message length The equipment index Type of message Check code
1 byte 1 byte 1 byte 1 byte 1 byte The 9*n byte
6+n*9 0x01 n See table
Attached: probe data
The probe index Timestamp Data value
1 byte 4 bytes 4 bytes
Pop one's head in and instruct-obtain probe data
Header Message subtype The probe status word
Message length The equipment index Type of message Check code
1 byte 1 byte 1 byte s 1 byte 1 byte 1 byte
6 0x02 0x00
Experiment incident-begin to test
Header Message subtype The experiment index
Message length The equipment index Type of message Check code
1 byte 1 byte 1 byte 1 byte 1 byte 1 byte
6 0x03 0x00
Experiment incident-end experiment
Header Message subtype The experiment index
Message length The equipment index Type of message Check code
1 byte 1 byte 1 byte 1 byte 1 byte 1 byte
6 0x03 0x01
The main frame that embodiment of the invention usb data collector (DsUsb) has connected according to the search of the main frame identifier of host driver appointment, and obtain its access handle, flow process is as shown in Figure 4.
Then, usb data collector log-on data intercepting thread (UsbItemReadThread), read data packet, log-on data package zygonema journey (UsbPacketThread), data packet group is combined into complete data, carries out corresponding operation (OnUsbDataIn) according to data type then.Need when main frame sends instruction, the equipment index search of uploading according to main frame arrives corresponding main process equipment access handle, will instruct by access handle then to send to corresponding main frame immediately.Following accompanying drawing 6 expressions of thread table:
Sequence number Function Start and stop Withdraw from
1 From the USB reading of data Circular flow, 1 millisecond at interval.When thread 4 suspends when sending data The master routine notice
2 Cut apart the data that thread 1 is read, generate packet Start by thread 1 notice, when having cut all data, stop The master routine notice
3 The packet that processing threads 2 is formed is carried out order accordingly Start by thread 2 notices, after handling all packets, stop The master routine notice
Embodiment of the invention intercepting thread process flow diagram such as accompanying drawing 7 expressions:
Intercept flow process by intercepting USB port, the data that the response main frame transmits to the PC end by USB port, after intercepting the packet that flow process receives that USB port sends, come the decision data bag whether correct according to message protocol, further handle as correctly then packet being sent to data packet group zygonema journey.
Embodiment of the invention data packet group zygonema journey process flow diagram is as shown in Figure 8:
Data packet group zygonema journey joins end to end the packet of receiving, and the data decomposition after will making up according to message protocol is a series of data structures that concrete implication is arranged, and sends to the data processing thread and further handle.
Embodiment of the invention data processing thread process flow diagram is as shown in Figure 9:
Data processing envelope curve journey is explained the data structure of receiving, and carries out corresponding the processing by data type.
Embodiment of the invention wireless ethernet data acquisition unit (DsNet) is visited main frame by host ip, the following expression of flow process:
Figure A20051002986100121
The Ethernet collector starts worker thread (WorkProc), sends thread (SendProc) and packet receiving thread (RecvProc) then, log-on data package zygonema journey (UsbPacketThread) after the read data packet, data packet group is combined into complete data, carries out corresponding operation (OnUsbDataIn) according to data type then.
Some related description of the embodiment of the invention are as follows:
End points numbering (Node ID) and equipment factory number (Device ID)
In network communication, equipment is numbered by end points and is distinguished.But in upper procedure Das.exe, equipment is distinguished by the equipment factory number.Can send probe information when a device power-up, comprise end points numbering and equipment factory number in the information, DasUsb.Dll writes down the corresponding relation of end points numbering and equipment factory number in view of the above, conversion freely in use in the future then.
Equipment go offline and network obstructed
If the antenna discovering device is not online, can send 55 BB 03 and come announcement apparatus to lose, but equipment may be temporarily obstructed.DasUsb.dll is receiving this when notice sweep equipment at once not, but earlier this facility information is moved in the doubtful tabulation that goes offline, and waits for 10-15 second.If this equipment is reached the standard grade once more during this period, then directly it is moved back to list of devices; Surpass just real sweep equipment information of this time.
Restarting of antenna
Program start and can reseting antenna when withdrawing from.Reseting antenna during startup is in order to recover its original state, to guarantee the correctness of data.Reseting antenna when withdrawing from is in order to allow thread 1 return immediately from the blocked state of reading USB, to guarantee that program normally withdraws from.
Time synchronized
Timestamp thread per second is provided with the time of an antenna, and antenna is gone out its broadcasting more then, in order to the time on the synchronizer, guarantees that the data time of gathering is correct.
Sync packet
Data by wireless network transmissions can't guarantee correctness fully, when error of transmission occurring, must be able to recover in time, so we insert sync packet in normal data stream.When mistake appears in transmission, just begin to detect sync packet immediately, just continue the normal handling flow process up to synchronous success.
The transmission of data and order
The transmission of data is all finished by thread 4, but is not whenever can carry out.When needs sent data, thread 4 was provided with a sign, waited for that then thread 1 notifies beginning.Thread 1 receive 55 BB 01 that antenna sends show can send data this moment after, just activate thread 4, the transmission of beginning data.Finish when data send, when perhaps not having data to send, DasUsb.dll just sends one 55 BB 02 to notify antenna: " do not have more data to have sent.”
Embodiment of the invention data processing end is used to finish demonstration, analysis and the memory function of data.It mainly comprises two broad aspect: show that real-time experiment situation and experimental record check.When testing, main window comprises: equipment control window, experiment information window, data and curves window and data list window, layout such as accompanying drawing 10 expressions.
When checking historical record, main window comprises record list window, data and curves window and data list window.The function that record list window and equipment control window are realized is basic identical.The layout elemental function below is described.
Embodiment of the invention equipment control window is the place of storage device data when experimentizing.The hierarchical structure of data storage such as accompanying drawing 11 expressions.
What embodiment of the invention data list was stored is a series of " timestamp, numerical value " probe reading of form like this, and the data that read need be made index process.
" some index ": in accompanying drawing 12, " O " represents at time t, and this probe has a true plot.In order to calculate,, then must to carry out interpolation and calculate an approximate value if other probe is not adopted data in this time." X " representative probe n has carried out interpolation at time t.The point index be exactly one by timestamp ordering " timestamp, mark, probe 1 numerical value, probe 2 numerical value ..., probe n numerical value " array.Mark is used for showing that the numerical value of each probe is the virtual value of actual value or interpolation calculation gained.
" numerical index ": record is with the size of every kind of probe value, the ranking results that an index is carried out.
Embodiment of the invention trial window is in order to check the experimental state of each equipment, and demonstration and management are in the equipment in each test.
Embodiment of the invention data and curves window is a display device curve reasonably, provides convenience and observes the detailed setting of figure, and the window that the data curve is analyzed, adjusted.Window also can compare demonstration with a plurality of equipment (4 or following) except showing the extra curvature of single experimental facilities.List the table of comparisons such as accompanying drawing 13 expressions of data and curves window key element and its legend.
When the embodiment of the invention was gathered experimental data in real time, all curves were X-axis with common time shaft all, and Y-axis then is that each probe is independent separately.On same figure, the probe data that the data span is had nothing in common with each other intactly shows with the method for self-adaptation range.The drafting mode is that the data supplementing that at every turn will newly receive is last at data buffering, and integral body refreshes then.
Data presentation in the experiment is controlled by configuration file, do not meet the configuration file requirement (such as probe data the probe span outside) data can be filtered, can't show.
Carry out in the process in experiment, the operation on the chart, as right-click menu, left button double-click etc. with conductively-closed.Send the signal that experiment finishes until main frame, could use.
The embodiment of the invention is checked too big different of the display mode of the display mode of experimental record and real-time data acquisition, just data source is not an experimental terminal, but take from the MYSQL database, and this state in not testing, various functions can be called at any time.
Be noted that differently with experiment in real time, a lot of information when checking record are filtered and processing through configuration file, such as the physical quantity of experimental data representative, and the kind of popping one's head in etc.
The function that graphical display window of the present invention provides multiple adjustment curve to show: moving curve, curve convergent-divergent, data mode, the various detail setting of coordinate axis, curve, whole chart.Can be situated between by target on the double-click figure (as curve, coordinate axis, legend etc.), or the mode of right-click menu is called.
Moving curve is after pressing left button, and the plane is dilatory, can move shown curve, and adjust the range of curve respective coordinates axle simultaneously.
The curve convergent-divergent is to press left button, draws out a rectangle in the curve window, unclamp left button after, the curve window will be adjusted indication range to selected rectangle, the range of all coordinate axis etc. is also adjusted to respective range simultaneously.Convergent-divergent can return with single step cancels last zoom operations, also can be with showing that reduction directly turns back to initial show state.
Must click the option that data mode on curve, just can occur by right key.Under data mode, a vernier can appear, and vernier has indicated the scope of a rectangle, and in this scope, vernier can be sought the data point of curve automatically, and vernier is drawn close over automatically.
Be noted that curve convergent-divergent, curve move and each corresponding corresponding state of these functions such as data mode, in the time of using other functions, must return under the selection mode sometimes.
The embodiment of the invention is mainly finished by curve fitting the analysis of data curve.Curve fitting is to existing data set, with the curvilinear trend that the user was guessed, according to corresponding algorithm, earlier curve data is screened, and the point that automatic fitration falls to be not suitable for this kind match carries out computing to data then.Finally derive one based on existing curve data, satisfy the matched curve of the desired curve form of user.
The algorithm of polynomial expression, quadratic fit, cube match, direct ratio match and linear fit has nothing in common with each other, and remaining match then is that the mode that equivalence is converted to linear fit is carried out indirect computing.In the matched curve of drawing, can provide corresponding formulas, and be associated with matched curve automatically.
If the user carries out unsuitable match to curve, such as data are carried out inappropriate match, cause causing the infinite population that exceeds the data allowed band according to the time, software can point out the user to carry out this kind match to current data.
Matched curve and virgin curve use same group of coordinate axis, and matched curve is interim curve, do not keep as curve data, switch operations such as showing, show reduction and all will remove all matched curves.Can not carry out data screening and delete matched curve, but remake new matched curve after can making amendment to legacy data.
The embodiment of the invention is screening to curve data to the adjustment mode of curve, and by finishing with the compounding practice of the data list window on right side, also the service data tabulation is finished separately.
Idiographic flow is to click or the dilatory certain limit of selecting on the data list window on the right.Simultaneously, in the curve window, have corresponding one or two mark straight lines appearance, indicate selected scope, make the user more intuitive understanding be arranged to own selected data, the user also can draw any mark straight line, comes range of choice, and selected scope can reflect in the data list window of right side simultaneously, and the adjustment indication range, last data of selected scope are in the visible range.Right-click data list window then, select deletion can be from curve data the institute in the deletion scope somewhat right.
After experiment is finished, also can carry out this operation in the acquisition window in real time, but not influence experimental data, what preserved still is raw data.
Embodiment of the invention custom curve provides user oneself input arbitrary data, the function of drawing single curve with any regular.
Behind the button click, an input window can occur earlier, import the ranks size of the data matrix that needs by the user, ranks corresponding respectively synchronization data to and the number of variable.After determining, can enter the input window of concrete data, the user can revise data here.Enter the definition window of coordinate axis after determining once more, all variablees of input are as coordinate axis before can directly using here.Also support simultaneously the formula input, with defined variable with certain rule definition on coordinate axis.
Custom curve is interim curve, and program is not done preservation, can not carry out data screening certainly, but can carry out match.
The self-defined coordinate axis of the embodiment of the invention can with user-defined rule, through necessarily handling, demonstrate a new curve with available data.
Enter coordinate axis definition dialog box behind the button click, define the implication of X-axis and Y-axis representative here respectively.Can service time, probe arbitrarily, or formula input defines new coordinate axis.Can use the variable of constant and probe representative in the formula input, and the multiple operational method that is provided is constructed polynomial expression.Can click button or direct keyboard input by mouse, conformance with standard is wanted in the input of attention formula.
Embodiment of the invention data list window is the window with the mode display device curve of numerical value.This window depends on the data and curves window, shows the concrete data of each bar curve of curve window of current activation, refreshes simultaneously with the numerical curve window.Simultaneously, can be independent, or cooperate the data and curves window, by data are chosen and delete the screening of finishing data.
The embodiment of the invention is checked the record list window in when record and the equipment control window when experimentizing, and function and structure are all similar.Structure is illustrated in fig. 14 shown below.
Difference between record list window and the trial window, mainly be, the probe data of record list window is read from database, and the probe data of experiment management window collects in real time.
Embodiment of the invention Experiment Data Records is finished by the MySQL database.In the experiment management window, the save button in pressing toolbar,, also can preserve the experimental data that those are not preserved as yet automatically when certain equipment begins new experiment or program when withdrawing from.Want position the record, can search in database by certain condition (student number, experiment title, date etc.) earlier.
The basic configuration of embodiment of the invention experiment script logging experiment is such as probe number, probe type, probe sampling rate and experimental period or the like.The title and the minimum sampling interval of probe configuration record probe.Except the probe configuration need not be revised, the experiment script can freely be revised.
Embodiment of the invention classroom layout has stipulated how much platform equipment drive end will manage.When working procedure first, Das.exe can require the user to finish layout setting to the classroom.
The embodiment of the invention is in Das.exe, and what curve interpolation was used is the spline interpolation algorithm, and seed points is 3-5.When not having available seed points, interpolation result is 0.When 1 and 2 seed points, interpolation is calculated according to horizontal line and straight line.
The embodiment of the invention when according to the time in data list, when searching index in the sequence such as some index etc., usefulness be binary search.
Attached and the data dependence relation of main window, class such as accompanying drawing 15 expressions in the embodiment of the invention program.
As accompanying drawing 16 expressions, embodiment of the invention laboratory report adopts the mode of EXCEL template to generate, by the class wrapper that generates among the EXCEL, carry out the initialization and the setting of template, the data transmission that after initialization is finished experiment is collected is to the EXCEL program, and handles accordingly in template automatically.The user can carry out various analyses to data simultaneously in the EXCEL program, thereby reaches the required result of experiment.
In a word, the image data basic procedure of the preferred embodiment of the present invention is described as follows:
→DasUsbInitialize
{
→ registration environment
→ structure object
The typonym remarks
CDeviceManager g_pDeviceManager annotates (1)
CReadUsbBuffer g_pReadUsbBuffer antenna data buffer memory
CDasPacketManager g_pPacketManager data pack buffer
Annotate (1): the equipment manager structure can be referring to the image data structural drawing.
}
→ startup thread
→UsbTerminalThread
{
→ circulation
{
→ wait-semaphore
→ reading of data
→ assembling data
→ extraction packet
The thick form of packet: data packet length (1BYTE, 6~186)+packet content
→ transmission packet
}
}
→ startup thread
→PacketProcessThread
{
→ obtain packet
The thin form of packet:
Serial number type implication remarks
0
1
2 UCHAR type of data packet
3
4 UCHAR probe packets of information subtype
5 UCHAR probe data bag numbers
→ switch type of data packet
→ case equipment probe information
{
Equipment probe packet format:
Serial number type implication remarks
0
1
2 UCHAR type of data packet
3
4 UCHAR probe packets of information subtype
Data number in the 5 UCHAR probe data bags
}
→ switch equipment probe packet type
case 0
{
→ obtain probe information
Serial number type implication remarks
0
1 UCHAR device node sequence number
2 UCHAR type of data packet
3
4 UCHAR probe packets of information subtype
5 PACKET_PROBE_INFO 22BYTE probe information are annotated (2)
Annotate (2): probe information
Serial number type implication remarks
0 char[16] the probe title, as Barometer.
1 UCHAR device id.
2 UCHAR port sequence numbers.
3 UCHAR port types.
→ transmission information updating interface
Send self-defined message DASUSB_NOTIFY_DEVICECHANGED.
}
case 1 removes probe
→end case
→ case experimental data
{
The probe data packet format:
Serial number type implication remarks
0
1 UINT equipment serial number
2 UCHAR type of data packet
3
4
Data number in the 5 UCHAR probe data bags
The 6+9N UCHAR sequence number of popping one's head in
7~10+9N UINT data time stabs
11~14+9N float data value
}
→ interpolation data
→ transmission information updating interface
Send self-defined message DASUSB_NOTIFY_NEWDATA.
→ case experimental state
{
The experimental state data packet format:
Serial number type implication remarks
0
1 UINT equipment serial number
2
3
4 UCHAR experimental states, beginning or end.
5 UCHAR
}
→ transmission information updating interface
Send self-defined message DASUSB_NOTIFY_EXPERIMENTCHANGED.
→end case
}
At last, the present invention also provides a kind of digitization experimental laboratory system and data control method thereof to use as follows at the embodiment of some concrete Physical Experiments:
One, the rule of research linear uniform motion
* this experiment is tested for the DIS that textbook requires, can be with reference to one grade first term P20 of high school physics textbook
● purpose
The rule of research linear uniform motion
● equipment
Physical Experiment system of the auxiliary senior middle school of e-laboratory provided by the invention, ultrasonic sensor, slide rail, dolly
● principle
When object was made linear uniform motion, the displacement of object equated in the unit interval, i.e. linear uniform motion
● operation
1. ultrasonic sensor is inserted into an interface of experiment instrument, and is fixed on an end of slide rail.
2. regulate the height of slide rail one end, make the motion of dolly on slide rail approaching at the uniform velocity.Adjust the receiving end of ultrasonic sensor, make it can receive the data of dolly displacement.
3. open experiment instrument, select the experiment of " rule of research linear uniform motion ", allow dolly glide the numerical value change of observation experiment instrument.17-1 represents as accompanying drawing.
4. note shown data, reach a conclusion.
5. in the experimentation, on teacher computer, can choose the student experimenting instrument that needs observation, click the demonstration curve, will occur the experimental data S-T relation curve identical on the teacher computer, shown in accompanying drawing 17-2 with student's machine; Click match, the V-T relation curve will occur on the teacher computer.17-3 represents as accompanying drawing.
6. experiment is finished, and closes each instrument.
Two, the rule of research uniformly accelrated rectilinear motion
* this experiment is tested for the DIS that textbook requires, can be with reference to one grade first term P29 of high school physics textbook
● purpose
The rule of research uniformly accelrated rectilinear motion
● equipment
Physical Experiment system of the auxiliary senior middle school of e-laboratory provided by the invention, ultrasonic sensor, slide rail, dolly
● principle
According to formula: a=(v2-v1)/(t2-t1)
When object is made change speed linear motion, equal as the recruitment of speed in the unit interval, be uniformly accelrated rectilinear motion.
● operation
1. ultrasonic sensor is inserted into an interface of experiment instrument, and is fixed on an end of slide rail.
2. regulate the height of slide rail one end, make the motion of dolly on slide rail approaching at the uniform velocity.Adjust the receiving end of ultrasonic sensor, make it can receive the data of dolly displacement.
3. open experiment instrument, select the experiment of " rule of research linear uniform motion ", allow dolly glide the numerical value change of observation experiment instrument.
4. the quality of increase dolly or increase allow dolly glide the variation of observation experiment instrument numerical value to the relay of dolly once more.Shown in the S-T figure of accompanying drawing 18-1.
5. note shown data, reach a conclusion.
6. in the experimentation, on teacher computer, can choose the student experimenting instrument that needs observation, click the demonstration curve, will occur the experimental data identical on the teacher computer, click match, the V-T relation curve will occur on the teacher computer with student's machine.Shown in accompanying drawing 18-2.
7. experiment is finished, and closes each instrument.
Three, the interaction of research power
* this experiment is tested for the DIS that textbook requires, can be with reference to one grade first term P93 of high school physics textbook
● purpose
The checking Newton third law
● equipment
Physical Experiment system of the auxiliary senior middle school of e-laboratory provided by the invention, force transducer
● principle
Newton third law
● operation
1. take out two force transducers, insert No. one, No. two interfaces of experiment instrument.
2. open experiment instrument, select " interaction of power " experiment, select " beginning experiment ".
3. the student holds two force transducer handles, the hook of two force transducer front ends is hooked mutually, and pull to both direction.
4. the F-T feature of image of the accompanying drawing 19-1 that shows of observation experiment instrument.
5. in the experimentation, on teacher computer, can choose the student experimenting instrument that needs observation, click the demonstration curve, will occur the experimental data identical on the teacher computer with student's machine.Shown in accompanying drawing 19-2.
6. experiment is finished, and closes each instrument.
This shows, adopt after the present invention, balance, the spring dynamometer, the survey instrument of timer these " classics " will " be laid off " from the physics laboratory, middle school, the student no longer is loaded down with trivial details data processing headache, can thoroughly change the time and the experimental analysis phenomenon out of proportion of experiment in the past, because the equipment of traditional experiment is relatively backward, be used to test the most of the time that the time that obtains data has accounted for whole experiment, part is tested even has been reached 70%, the data accuracy that experiment obtains, consistance is very poor, and the time that is used for analysis of experimental data is just fewer, Shi Yan analysis is many times just rushed through, formula one cover is got over, and this is unfavorable for the cultivation of scientific spirit very much; Use the time that system provided by the invention is used to a large amount of shortenings to test, the data that obtain accurately, rapidly, the student can have more time to handle the experimental data that obtains, the formula of probing into study to the student is very beneficial, and the experiment that the present invention can also allow some be difficult in the past realize becomes possibility.Under traditional experiment condition, the friction force measurement can only be on blackboard " demonstration ".Now, the application message analytic system, the slight change of friction force is presented on the computer screen immediately." in the conical motion entad force measurement ", nowadays the experiment that past middle schools such as " analyses of power in the collision process " can not be finished also can easily be finished.Has very strong practicality for universities, middle and primary schools' physical and chemical experiment.

Claims (8)

1. digitization experimental laboratory system is characterized in that this laboratory system controls platform (30) by interconnective sensor (10), student terminal (20) and teacher and constitute; It is sent to student terminal (20) by sensor (10) with experimental data, by student terminal (20) to data show, keep in, transmission and simple analysis, storage and further analysis if desired, can send data to teacher by wireless network and control platform (30), control the administrative analysis software of platform (30) by the teacher and store and further data processing, analysis and the final experimental result that generates.
2. a kind of digitization experimental laboratory system according to claim 1 is characterized in that described sensor (10) can adopt various forms of sensors such as comprising electric current, voltage sensor, Magnetic Sensor, photoelectric sensor, pressure transducer, temperature sensor, mechanics sensor, imageing sensor, video sensor.
3. a kind of digitization experimental laboratory system according to claim 1 is characterized in that described described student terminal (20) mainly comprises: data-interface part (1), data storage part (2), data processing section (3), data display unit (4), wireless telecommunications part (5) and systems control division branch (6); Wherein,
Described data-interface part (1) is responsible for handling the communication of probe module, and receiving transducer is caught next data;
Described data storage part (2) is responsible for the data that data-interface receives are carried out database storing;
Described data processing section (3) is responsible for the data storage partial data that receives is handled, and result can be got back to the data storage part as data storage, also can use directly for other modules;
Described data display unit (4) is by being shown to the interactive interface that provides on the LCDs between system and the user with data and control information;
Described wireless telecommunications parts (5) at first are measurement data can be returned the PC end by wireless transmission; Secondly, make Device Host can accept data and order that far-end transmits, make Device Host have Long-distance Control and data sharing ability;
Described systems control division branch (6) is grasped setting and all Resource allocation and smoothings of system, and can activate above each module and cooperate.
4. a kind of digitization experimental laboratory system according to claim 1, it is characterized in that described teacher controls platform (30) and adopts computer control, it is mainly stored by administrative analysis software and further data processing, analysis and the final experimental result that generates.
5. the data control method of a digitization experimental laboratory system as claimed in claim 1 is characterized in that this method comprises the following steps:
Main frame is connected with PC by wireless network, Ethernet, USB line or Serial Port Line, and PC holds software that the data between corresponding communication module realization PC and multiple host and the both-way communication of instruction are provided;
The data that main frame is uploaded are kept in the data acquisition end and use for the data processing end;
The data processing end extracts data from the data acquisition end, the data of disappearance are given polishing with the mode of spline interpolation, then the form of data with curve is shown;
The student comes heuristic data rule over time by the match empirical curve, comes relation between heuristic data by coordinate axis being changed to data formula, generates laboratory report by the data sheet module at last;
Experimental data and laboratory report are stored in respectively in experimental data base and the laboratory report storehouse, are provided with back inquiry and use.
6. the data control method of digitization experimental laboratory system according to claim 5, it is characterized in that described data acquisition end is responsible for from devices collect data such as wireless network, Ethernet, USB mouth and serial ports, and to be responsible for the data organization that collects be the data system of clear in structure; The data processing end is responsible for generating various types of empirical curves, laboratory report according to the data that collect, and functions such as data screening, management are provided.
7. the data control method of digitization experimental laboratory system according to claim 5 is characterized in that described data acquisition end is is core with the image data manager, is the star structure of branch with each data acquisition unit; The image data manager starts and each data acquisition unit of initialization, and the instruction that the data processing end is sent passes to the data acquisition end; Data acquisition unit calls the data acquisition call back function of image data manager, gives the image data manager with the data transfer that collects.
8. the data control method of digitization experimental laboratory system according to claim 5 is characterized in that described data processing end is used to finish the demonstration of data, analysis and memory function; It mainly comprises two aspects: show that real-time experiment situation and experimental record check that when testing, main window comprises: equipment control window, experiment information window, data and curves window and data list window; When checking historical record, main window comprises record list window, data and curves window and data list window; The function that record list window and equipment control window are realized is basic identical.
CNA2005100298613A 2005-09-21 2005-09-21 Digitization experimental laboratory system and data control method thereof Pending CN101114405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2005100298613A CN101114405A (en) 2005-09-21 2005-09-21 Digitization experimental laboratory system and data control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2005100298613A CN101114405A (en) 2005-09-21 2005-09-21 Digitization experimental laboratory system and data control method thereof

Publications (1)

Publication Number Publication Date
CN101114405A true CN101114405A (en) 2008-01-30

Family

ID=39022729

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2005100298613A Pending CN101114405A (en) 2005-09-21 2005-09-21 Digitization experimental laboratory system and data control method thereof

Country Status (1)

Country Link
CN (1) CN101114405A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354466A (en) * 2011-10-14 2012-02-15 华北电力大学(保定) Air track experiment device
CN102789705A (en) * 2012-07-30 2012-11-21 桂林电子科技大学 Wireless class teaching system based on virtual instrument
CN103544862A (en) * 2012-07-15 2014-01-29 江苏锡光科教设备有限公司 Sensing system for realizing biological experiment digitization
CN103871299A (en) * 2014-01-23 2014-06-18 东南大学 Multimedia network communication comprehensive experiment system
CN105069178A (en) * 2015-07-30 2015-11-18 武汉格林族信息科技有限公司 Experimental data acquisition and analysis system and method
CN106023661A (en) * 2016-06-24 2016-10-12 南京恒立达光电有限公司 Integrated teaching and scientific research experiment platform
CN106415549A (en) * 2014-05-06 2017-02-15 贝克曼考尔特公司 Method and system for forming site network
CN109035121A (en) * 2018-07-20 2018-12-18 重庆长安汽车股份有限公司 Single-sensor data correlation pre-treating method
CN110134633A (en) * 2019-05-08 2019-08-16 上海中科教育装备集团有限公司 A kind of physical and chemical raw laboratory Intelligent Apparatus
CN114036919A (en) * 2021-11-23 2022-02-11 北京三维天地科技股份有限公司 Electronic experiment record book management method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102354466A (en) * 2011-10-14 2012-02-15 华北电力大学(保定) Air track experiment device
CN103544862A (en) * 2012-07-15 2014-01-29 江苏锡光科教设备有限公司 Sensing system for realizing biological experiment digitization
CN102789705A (en) * 2012-07-30 2012-11-21 桂林电子科技大学 Wireless class teaching system based on virtual instrument
CN103871299A (en) * 2014-01-23 2014-06-18 东南大学 Multimedia network communication comprehensive experiment system
CN103871299B (en) * 2014-01-23 2015-11-25 东南大学 A kind of multimedia network communication comprehensive experimental system
CN106415549B (en) * 2014-05-06 2020-02-11 贝克曼考尔特公司 Method and system for forming site network
CN106415549A (en) * 2014-05-06 2017-02-15 贝克曼考尔特公司 Method and system for forming site network
CN105069178A (en) * 2015-07-30 2015-11-18 武汉格林族信息科技有限公司 Experimental data acquisition and analysis system and method
CN106023661A (en) * 2016-06-24 2016-10-12 南京恒立达光电有限公司 Integrated teaching and scientific research experiment platform
CN106023661B (en) * 2016-06-24 2018-07-10 南京恒立达光电有限公司 A kind of teaching and scientific research synthesis experiment platform
CN109035121A (en) * 2018-07-20 2018-12-18 重庆长安汽车股份有限公司 Single-sensor data correlation pre-treating method
CN110134633A (en) * 2019-05-08 2019-08-16 上海中科教育装备集团有限公司 A kind of physical and chemical raw laboratory Intelligent Apparatus
CN114036919A (en) * 2021-11-23 2022-02-11 北京三维天地科技股份有限公司 Electronic experiment record book management method and system

Similar Documents

Publication Publication Date Title
CN101114405A (en) Digitization experimental laboratory system and data control method thereof
CN102520619B (en) General-purpose satellite remote sensing simulator
CN107229584A (en) Aviation electronics simulation test platform I/O management systems
CN103678093B (en) A kind of automated test frame and method of testing
CN201886122U (en) PXI (PCI extension for instrumentation) bus-based digital testing module
CN104407779B (en) The arrangement display methods and device of graphical interfaces
CN101763443A (en) Avionics system digitalized design verification system and method
Lu Mobile augmented reality technology for design and implementation of library document push system
CN201527440U (en) multimedia digital storage oscilloscope
CN109800165A (en) A kind of front end system test method and device
US11223961B2 (en) Configuration method of wireless network system, configuration terminal and configuration system
CN202332032U (en) Equal thickness interference experiment device
CN106407062B (en) industrial control chip debugging system and debugging method
CN203824564U (en) Digital instrument
CN102509501A (en) Hall effect and magnetic field measuring experiment device
CN209250794U (en) A kind of network architecture of big data Network Security Monitor System
CN114189534A (en) Design method of device interaction software simulation program in Internet of things system
Wibowo et al. Information System Engineering for Web-based RPS Adaptation using the Laravel Framework
Zhang et al. An acquisition system for remote diagnostics of airport special equipment based on LabVIEW
CN201918075U (en) Mechanical measuring platform
CN202929565U (en) Electronic equipment used for realizing man-machine interaction
CN102314790A (en) Equal-thickness interference experimental device
CN107018673A (en) Information obtains display program, information and obtains display device and information acquirement display methods
Liu et al. The development and application of virtual instrument technology in the experimental teaching
CN109101965B (en) Automatic scoring method and device for reeled paper

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: 20080130