Summary of the invention
The problem that invention will solve
Object of the present invention is for providing a kind of data handling system and data processing method, interpretative code is processed, and the instruction of the program language of translater is realized by visualization tools such as icons, made and edit routine by drag and drop (drag and drop) mode, thus, even without professional knowledge, also easily can input, make and edit the program language of translater.
And, object of the present invention is for providing a kind of data handling system and data processing method, comprise information terminal apparatus, control sensor and interfacing equipment, the program language of translater is made into by the logging program processing collected data, and have the physical quantity of mensuration is converted to digitised values, and the sensor of data collected by storing, thus, without the need to professional knowledge, user can directly easily realize collecting data by program, and, store because the data being collected in sensor are carried out digitizing, processing time can be reduced, and can prevent to lose the data of collecting.
The object of embodiments of the invention is not defined in object described above, and unaccounted or other object can make the technical field of the invention personnel more clearly understand by record below.
For the scheme of dealing with problems
One embodiment of the invention provide a kind of data handling system, comprising: datalogger, the program code of the interpretative code utilizing information terminal apparatus to provide, and the transducing signal of mensuration is carried out digitizing conversion, and transmits translation data; Information terminal apparatus, pass through logging program, by multiple instructions of described interpretative code with multiple instruction icon representations of visualization, and when described multiple instruction icon being combined and makes executive routine, corresponding with the executive routine of described making and generate and be used for the described program code changed of data, and the described program code generated is provided to described datalogger, the described translation data transmitted from described datalogger is carried out the expression that quantizes.
Another embodiment of the present invention provides a kind of data processing method, comprises the steps: to perform logging program at information terminal apparatus; At described information terminal apparatus by logging program picture and mobile combined command icon; Be presented at the executive routine that described information terminal apparatus makes; Generate and transmit the program code of the interpretative code corresponding with the described executive routine made at described information terminal apparatus; Changed by the described program code performing the transmission transducing signal corresponding with the physical quantity that the sensor part of datalogger measures, and store translation data temporarily; Extract described translation data in the interface portion of described datalogger, and transfer to described information terminal apparatus; At described information terminal apparatus, described translation data is carried out quantizing and image conversion display.
The effect of invention
In the present invention, by processing interpretative code, and the instruction of the program language of translater is realized by visualization tools such as icons, make and edit routine in drag and drop (drag and drop) mode, thus, even without professional knowledge, also easily can input, make and edit the program language of translater.
And, tool of the present invention has the following advantages: comprise information terminal apparatus, the logging program collecting data is processed by control data registering instrument, be made into the program language of translater, wherein, datalogger comprises the sensor part and interface portion that store and the physical quantity of mensuration is converted to the data that digitised values is also collected, thus, without the need to professional knowledge, user can directly easily realize by program performing data analysis, further, store because the data being collected in sensor are carried out digitizing, thus can the processing time be reduced.
Especially, the current program that made by manufacturing intelligence sensor enterprise and collect data, but in the present invention, because performing the program code of the interpretative code that user makes, and collect desired data, thus, can prevent from collecting unnecessary data, thus, can data processing speed be improved.
And, source code is converted to machine code by program compiler by existing intelligent sensor, combination is carried out to the code for machine code and carrys out process data, but because using the program code of interpretative code executive routine being generated as text codes, without the need to buying program compiler in addition, also can avoid must program compiler is corresponding from the intelligent sensor being built-in with mutually different microprocessors and the process again adjusted.
In addition, existing intelligent sensor is in order to change by new function, must by meeting the machine code of function for built-in generation and the program set, change the firmware of intelligent sensor, even if but the present invention does not change firmware, because independently running with firmware, avoid occurring to make a mistake because changing firmware.
Embodiment
With reference to accompanying drawing and the following detailed description of embodiment, make the advantage of embodiments of the invention and characteristic sum implementation method become clear and definite.But the present invention is not defined in following public embodiment, can realize with mutually different forms, but the complete open scope according to the invention of the present embodiment, and, there is provided so that those skilled in the art in the invention understand scope of the present invention completely, the present invention defines according to the scope of claim.The identical Reference numeral of whole instructions represents identical inscape.
When embodiments of the invention are described, judge known function or structure illustrate as unnecessary and main idea of the present invention can be obscured time, omit its detailed description.And term is below the term considering that the function in embodiments of the invention defines, this user, the intention of transporting user or convention etc. can be different from.Therefore, this definition defines based on the whole content of this instructions.
Below, with reference to accompanying drawing, embodiments of the invention are described in detail.
Fig. 1 is the structured flowchart of the data handling system of one embodiment of the invention, and Fig. 2 is the structured flowchart of the datalogger of one embodiment of the invention, and Fig. 3 is the structured flowchart of the information terminal apparatus of one embodiment of the invention.
Referring to figs. 1 through Fig. 3, the data handling system of one embodiment of the invention comprises datalogger (100), information terminal apparatus (200) etc.
Datalogger (100) according to perform to be made into the transducing signal of mensuration carried out digitizing after the program code of interpretative code that provides and changing, and transmitting translation data, this datalogger (100) comprising: sensor part (110), interface portion (120) etc.
Sensor part (110) is amplify the transducing signal measured, noise is removed from the transducing signal amplified, and according to perform to be made as convert digital signal to after the program code of interpretative code that provides and changing, interim storage translation data, further, this sensor part (110) comprising: sensor (111), amplifier (112), filtrator (113), analog-digital converter (114), processor (115), medium (116), translation processor (117) etc.
Sensor (111) measures the physical quantity utilizing temperature sensor, humidity sensor, illuminance transducer, pH sensor to measure, and the transmission transducing signal that measure corresponding to it.
The transducing signal measured by sensor (111) is amplified to default level and transmits by amplifier (112).
Filtrator (113), to the transducing signal transmitted from amplifier (112), is removed the noise of signal and transmits.
Analog-digital converter (114) will be converted to digital signal by the transducing signal (that is, simulating signal) of filtrator (113) removal noise and be transmitted.
Processor (115) will be converted to the transducing signal of digital signal by analog-digital converter (114), program code according to the interpretative code provided from translation processor (117) is changed, and this translation data is stored in medium (116) temporarily.
Medium (116) comprises internal memory etc., stores translation data by processor (115) temporarily, and extracts the interim translation data that stores and be provided to the controller (121) of interface portion (120).
Translation processor (117) is to the program code of the interpretative code that the controller (121) from interface portion (120) provides, processed by interpretative code processing mode, processor (115) is provided in order to carry out signal conversion, and can the operation of control amplifier (112), filtrator (113), analog-digital converter (114) and processor (115).
At this, translation processor (117) extracts the program code of interpretative code by row and divides into instruction and variable (or constant), variable is transferred to the function that can realize processing this function by this instruction, and is provided to processor (115) and obtains translation data.
This translation processor (117) is for interpretative code, most of identification variables is global variable and restricted function calls, and the process of process with compile identical, but not making machine code file and directly performing, program language comprises the language such as Lisp, Embedded Pyther.
Interface portion (120) is that reception is stored in the translation data of the medium (116) of sensor part (110) temporarily and transmits it to information terminal apparatus (200), and, generation is used for the synchronizing signal of the digital processing carrying out sensor part (110), comprising: controller (121), communication module (122), synchronous generator (123) etc.
Controller (121) is to when sending request from information terminal apparatus (200) transmission translation data, translation data is extracted from the medium (116) of sensor part (110), transfer to information terminal apparatus (200) by communication module (122), and the program code of the interpretative code transmitted from information terminal apparatus (200) is provided to the translation processor (117) of sensor part (110).
Further, synchronizing signal generation control signal, when simulating signal is changed to digital signal, is provided to synchronous generator (123) by controller (121), to produce the synchronizing signal for making time synchronization.
This controller (121) comprises hardware and the trunking application of the relaying action playing sensor part (110) and information terminal apparatus (200), and, can be formed separately, reduce the load with the translation processor of sensor part (110) (117) to be separated.
Communication module (122) comprises wire communication module and the wireless communication modules etc. such as USB mode, series system, bluetooth approach, the wire/wireless communication environment between supporting interface portion (120) and information terminal apparatus (200).
Synchronous generator (123) is when providing synchronizing signal generation control signal from controller (121), and being converted to digital signal from simulating signal, produce the synchronizing signal for making time synchronization, and transmit it to the analog-digital converter (114) of sensor part (110).
Information terminal apparatus (200) comprises PC, PDA, panel computer, notebook etc., by logging program, multiple instructions of interpretative code are shown with multiple instruction icons of visualization, when completing executive routine combining instruction icon, corresponding with it and generate the program code of interpretative code being used for data and changing, the program code of generation is provided to datalogger (100), and the translation data transmitted from datalogger (100) is carried out the display that quantizes, and comprise: input part (210), control part (220), Program Generating portion (230), display part (240), communication module portion (250), storage part (260) etc.
Input part (210) comprises keyboard, mouse, keypad etc., the execution input signal of the logging program of the input of respective user is provided, and the logging program picture by performing, corresponding input combination (arrangement) instruction figure target icon moving signal is provided in drag and drop mode, and provide and input settling signal corresponding to executive routine with completing, according to user's input of the multiple command icon by visualization, be provided for the display input signal shown by translation data image conversion.
Control part (220) comprises logging program etc., when providing execution input signal from input part (210), perform logging program and control to make to be shown by display part (240), and, when providing icon moving signal from input part (210), display part (240) is controlled by logging program picture, with mobile combination (arrangement) instruction icon, when provide from input part (210) complete signal, make executive routine, and carry out controlling to be shown by display part (240).
And, the generation control signal being used for the program code generating the interpretative code corresponding with the executive routine made is provided to program code generating unit (230) by control part (220), and when providing display input signal from input part (210), control display part (240), translation data is quantized, and carries out image conversion display by chart, curve map, measurement instrument, numerical value etc.
Program code generating unit (230) is when providing generation control signal from control part (220), the executive routine of making is carried out text codes, the program code of making is generated as interpretative code, and the program code generated is transferred to the interface portion (120) of datalogger (100) by communication module portion (260).
Display part (240) shows logging program picture by the control of control part (220), move combination (arrangement) instruction icon and show, and, translation data is quantized, and carries out image conversion display by chart, curve map, measurement instrument, numerical value etc.
Communication module portion (250) comprises wire communication module, the wireless communication modules etc. such as USB mode, series system, bluetooth approach, further, the wire/wireless communication environment between supported data registering instrument (100) and information terminal apparatus (200).
Storage part (260) comprises internal memory, hard disk etc., for storing the translation data transmitted from datalogger (100), store the executive routine made by control part (220), store the program code of the interpretative code generated by program code generating unit (230), store the multiple display data and display information that are shown by display part (240), as required it extracted and be provided to control part (220).
Therefore, the present invention is by process interpretative code, and the instruction of the program language of translater is realized by visualization tools such as icons, make and edit routine in drag and drop (drag and drop) mode, thus, even without professional knowledge, also easily can input, make and edit the program language of translater.
And, the present invention includes information terminal apparatus, its control data registering instrument and will the logging program of data be collected by process and be made as the program language of translater, wherein datalogger comprises storing and the physical quantity of mensuration is converted to digitised values and the sensor part of data of collecting and interface portion, thus, without the need to professional knowledge, user is directly easily realized by program, and perform data analysis, and, store because the data being collected in sensor are carried out digitizing, thereby, it is possible to reduce the processing time.
Especially, current, the program made by the enterprise of manufacturing intelligence sensor collects data, but because of in the present invention, perform the program code of the interpretative code that user makes and collect required data, can prevent from collecting unnecessary data, thus improve data processing speed.
And, source code is converted to machine code by program compiler by existing intelligent sensor, and must the code as machine code be combined and process data, but because using the program code of interpretative code executive routine being generated as text codes, without the need to buying compiler in addition, thus, can avoid carrying out program compiler is corresponding from the intelligent sensor of built-in mutually different microprocessor and process that is that again regulate.
In addition, existing intelligent sensor is in order to be replaced by new function, the machine code meeting function is made into and the program set according to for built-in, the firmware of intelligent sensor must be changed, but the present invention is without the need to changing firmware, because independently running with firmware, thus, the mistake occurring to occur because changing firmware can be taken precautions against.
And, in the data handling system with structure as above, logging program is performed according to user's input, and make executive routine, when generating the program code of the interpretative code corresponding with the program made and transmit, the transducing signal of mensuration is carried out amplify, filter and digitizing, and, change transducing signal to the program code according to transmission, another embodiment utilizing this translation data to carry out quantizing and image conversion shows is described.
Fig. 4 is the process flow diagram that display processes each step of the process of data according to another embodiment of the present invention, and Fig. 5 a to Fig. 5 d is the data utilizing collection according to embodiments of the invention, makes the illustration figure of executive routine.
With reference to Fig. 4, when control part (220) in information terminal apparatus (200) provides execution input signal from input part (210), perform logging program, by display part (240) display (step 402).
Such as, Fig. 5 a to Fig. 5 d illustrates the process of whole executive routines made from 1 to 10, in the logging program performed as shown in Figure 5 a, in order to make executive routine, by and the multiple instruction icons that present visualization corresponding with multiple instructions of interpretative code according to instruction items (such as, mathematical instructions (Math), variable instruction (Variables), theoretical instruction (logic) etc.) show.
And, in the control part (220) of information terminal apparatus (200), when providing icon moving signal from input part (210), control display part (240), by logging program picture moving combination (arrangement) instruction icon (step 404).
Such as, move the instruction icon of the logging program that combination (arrangement) performs as shown in Figure 5 b and make executive routine.
And, at the control part (220) of information terminal apparatus (200), from input part (210) provide complete signal, control display part (240) and display made by executive routine (step 406).Such as, the executive routine made as shown in Figure 5 c is shown.
Thus, the generation control signal of the program code of interpretative code corresponding for the executive routine generated with the control part (220) in information terminal apparatus (200) makes is provided to program code generating unit (230), thus, the executive routine made in program code generating unit (230) is carried out text codes, generate the program code of interpretative code, and the program code generated is transferred to the interface portion (120) (step 408) of datalogger (100) by communication module portion (260).The program code of this interpretative code is made up of instruction, variable, constant etc., is provided to the translation processor (117) of sensor part (110) by interface portion (120).
In addition, sensor part (110) in datalogger (100) measures the physical quantity measured by sensor (111), the transducing signal corresponding with it is amplified to default level by amplifier (112), the noise of (filtration) signal is removed by filtrator (113), after being converted to digital signal by analog-digital converter (114), the execution of the program code of the interpretative code provided from translation processor (117) is provided in processor (115) basis, conversion transducing signal, and this translation data is stored in medium (116) (step 410) temporarily.
At this, the program code of interpretative code is extracted by a line at translation processor (117), divide into instruction and variable (or constant), and this variable is transferred to the function realizing this function of process by this instruction, is provided to processor (115) and obtains translation data.
This translation processor (117) is for interpretative code, be global variable by most identification variables, and restricted function calls, the process of process is identical with compiling, but directly perform without the need to making machine code file, program language comprises: language such as Lisp, Embedded Pyther.
And, at the controller (121) of interface portion (120), extract translation data from the medium (116) of sensor part (110), and transfer to information terminal apparatus (200) (step 412) by communication module (122).
At this, at controller (121) by synchronous generator (123), when changing from simulating signal to digital signal, produce the synchronizing signal for making time synchronization, and be provided to the analog-digital converter (114) of sensor part (110).
Afterwards, at the control part (220) of information terminal apparatus (200), when input part (210) provides display input signal, by the control of display part (240), and translation data is quantized, utilize multiple command icon of visualization, order its image conversion by least one in chart, curve map, measurement instrument and numerical value, thus, carry out as fig 5d showing (step 414).
Therefore, the present invention processes interpretative code, and the instruction of the program language of translater is realized by visualization tools such as icons, and make and edit routine in drag and drop (drag and drop) mode, thus, even without professional knowledge, also easily can input, make and edit the program language of translater.
And, the present invention includes information terminal apparatus, processed by control data registering instrument and collect data and make the program language of translater, wherein, described datalogger comprises storage and the physical quantity of mensuration is converted to digitised values, and the sensor part of the data of collecting and interface portion, thus, without the need to professional knowledge, user directly easily realizes performing data analysis by program, the data being collected in sensor are carried out digitized processing and stores, thereby, it is possible to reduce the processing time.
Data handling system of the present invention as above and data processing method, when taking time as the value of benchmark extraction and determination temperature or humidity or illuminance transducer display, utilizing the Data processing of existing datalogger, because second time the data utilizing particular sensor or user's manual handle to collect must be performed, or the process being made as the language such as visual program design language (Visual basic) and forming, thus, the code of interpretative code is being sent to datalogger, and at sensor, the value of input is transferred in the process of information terminal apparatus by interface, at translation processor, the value of this input is treated to the characteristic value of program, when collecting data, must amplification sensor element and when changing the condition of filtrator according to condition, because being controlled by people, and can not automatically change, but can change according to the code being sent to sensor in the present invention.
Further, in the present invention, when Data Collection, be utilized as the value of the sensor of benchmark, and under the set condition of correspondence, utilize interpretative code at datalogger, easily can collect data, so that be stored as data.
Current, by in the present invention to collect the setting of condition of data, sensor units conversion, sensor the change of the experiment condition such as amplification change select and input different menu, utilize one to carry out visualization to provide, thereby, it is possible to easily grasp Data Collection time mistake setting.
In as above illustrating, openly describe various embodiment of the present invention, but the present invention is non-essential is defined in this, general technical staff of the technical field of the invention, in the scope not departing from the technology of the present invention thought, can easily realize various displacement, distortion and change.