A kind of discrete data point curve tectonic system and building method thereof based on the B/S structure
Technical field
The present invention relates to the teledata monitoring technical field, be specifically related to a kind of curve construction system and method for discrete data point.
Background technology
At the industrial data remote monitoring, various schemes have been proposed respectively all both at home and abroad in recent years.Usually reception and the monitoring of using special equipment or software to carry out teledata in the present technical scheme, use comparatively inconvenience, real-time is not strong, existing teledata monitoring system is comparatively complicated usually simultaneously, construction cycle is long, human and material resources consumption is big, its operation simultaneously needs special equipment or software support usually, also makes troubles.
As publication number is control and the data transmission system and the method for the disclosed a kind of industrial smoke on-line monitoring system of CN1936995A, comprises the flue dust monitoring subsystem, monitors dust concentration in real time; Fume emission parameter monitoring subsystem, detect parameters such as flue gas oxygen content, flow velocity, pressure, temperature in real time, the gaseous contaminant monitoring subsystem, to flue gas real-time sampling and control, carry out preliminary treatment, system control and data acquisition process subsystem are gathered the output signal of above-mentioned subsystem and are handled, store, show, write downs and add up, realization data in real time, long-distance transmissions; The flue gas preliminary treatment is program control, communicates by letter with the environment monitoring central station computer, and it adopts the C/S structure, and the environment monitoring central station computer must be installed corresponding system could realize data monitoring.
Prior art also exists real-time not strong, can not upgrade shortcomings such as client data automatically.
Summary of the invention
In view of this,, the invention discloses a kind of discrete data point curve tectonic system, can obtain the server end data in real time, and be configured to curve and demonstration in real time based on the B/S structure in order to address the above problem.
The object of the present invention is achieved like this: based on the discrete data point curve tectonic system of B/S structure, comprise by interconnective server end in the Internet and client;
Described server end comprises:
Data source, industrial data also stores;
Data access interface; And
Web server is gathered industrial data by data access interface from data source, and is published to network;
Described client comprises:
Data transmit-receive module is used for and the Web server interaction data; And
The curve construction module is set according to the user, calls the data that data transmit-receive module obtains, and is configured to curve output demonstration.
Further, described data transmit-receive module obtains data by the AJAX mode in real time from server;
Further, described curve construction module is by SilverLight module structure curve;
Further, described data access interface can carry out data acquisition to the one or more data points in the data source, and the data to each data point is gathered are arranged as array in chronological order.
The present invention also provides the curve constructing method of above-mentioned discrete data point curve tectonic system based on the B/S structure, comprises the steps:
1) user carries out the curve initializing set;
2) the curve construction module connects by data transmit-receive module and Web server, and the data point information that will gather sends to Web server;
3) client sends request to Web server by the data acquisition time of setting at interval, calls data access interface by Web server again and gathers industrial data from data source, and be sent to data transmit-receive module;
4) data transmit-receive module receives industrial data, is set according to the user by the curve construction module and is configured to curve output demonstration.
Further, in the described step 1), the user sets and comprises curve background, curvilinear coordinate figure, line weight, line color and/or descriptive matter in which there, and data acquisition time at interval;
Further, in the described step 4), data transmit-receive module obtains data by the AJAX mode in real time from server;
Further, in the described step 4), described curve construction module is by SilverLight module structure curve;
Further, the data that described curve construction module is also obtained in real time according to data transmit-receive module are carried out real-time update to curve.
The invention has the beneficial effects as follows: adopt B/S structure (Browser/Server, browser/server structure), make the autgmentability of native system extremely strong, client can conduct interviews to server end in any place that can connect the Internet, easy maintenance, and can refresh industrial data in real time.
Description of drawings
In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing:
Fig. 1 shows the structural representation based on the discrete data point curve tectonic system of B/S structure.
Embodiment
Below will be described in detail the preferred embodiments of the present invention.
Referring to Fig. 1, the present invention is based on the discrete data point curve tectonic system of B/S structure, comprise by interconnective server end in the Internet and client; Described server end comprises data source, data access interface and Web server, and described data source is used for the industrial data of storage of collected, and Web server is used for gathering industrial data by data access interface from data source, and is published to network; Described client comprises data transmit-receive module, curve construction module and Interface Control module, and described data transmit-receive module is used for and the Web server interaction data; The curve construction module is used for setting according to the user, calls the data that data transmit-receive module obtains, and is configured to curve output demonstration; Described data transmit-receive module obtains data by AJAX (Asynchronous JavaScript and XML, asynchronous JavaScript and XML) mode in real time from server, can alleviate the server burden, and can obtain data in real time; Described curve construction module is by SilverLight module structure curve, and SilverLight is the powerful application program that Microsoft provides, but efficient development image, audio frequency, Video Applications.Described data access interface can carry out data acquisition to the one or more data points in the data source, each data point is pressed the certain time interval image data, and be arranged as array in chronological order.Described Interface Control module is used for user's input initialization and sets.
The present invention also provides the curve constructing method of above-mentioned discrete data point curve tectonic system based on the B/S structure, comprises the steps:
1) user calls the Interface Control module and carries out the curve initializing set by the WEB browser, comprises curve background, curvilinear coordinate figure, line weight, line color and/or descriptive matter in which there, and data acquisition time at interval;
2) the curve construction module connects by data transmit-receive module and Web server, and the data point information that will gather sends to Web server;
3) client sends request to Web server by the data acquisition time of setting at interval, calls data access interface by Web server again and gathers industrial data from data source, and be sent to data transmit-receive module;
4) data transmit-receive module obtains data by the AJAX mode in real time from server, is set according to the user by the curve construction module and is configured to curve output demonstration, and the data of not being completely cured and obtaining in real time according to data transmit-receive module are carried out real-time update to curve.
The above only preferably is not limited to the present invention for of the present invention, and obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the present invention the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.