A kind of system and method based on flash animation real-time exhibition monitor equipment status
Technical field
The present invention relates to power equipment monitoring field, relate in particular to a kind of system and method based on flash animation real-time exhibition monitor equipment status.
Background technology
Development along with economy, people's production and life are also more and more higher to the requirement of electric power, this just has higher requirement to the safe operation status monitoring of power equipment, in power equipment monitoring running state field, traditional performance equipment state mode is literal or Image Display, when the state of equipment is shown to people at the moment the time, what often show is that certain equipment is in certain state, such as: to the monitoring of electric power well lid, we are by sending the remote unlocking instruction to the well lid terminal, well lid is opened rear uploaded state, interface display is " X well lid: remote unlocking ", for " remote unlocking " this word, most of users may not too easily understand, and the user experiences relatively poor.
The flash animation mode that does not embed script that the usefulness that also has in the prior art is common is showed, the common animation that does not embed script that is made into after namely beautifying with the real equipment picture, because the power equipment kind is numerous, each equipment has numerous monitoring points, there is again a lot of states each monitoring point, then make up a rear equipment and just may have hundreds of states, the corresponding common animation of each state, monitoring system then may be used tens thousand of common animations, workload is very large, and efficient is low, is difficult to management, mistake also easily appears, so come the real-time state that represents thousands of equipment unrealistic with this common flash animation mode.And common flash flash demo, can not realize same equipment corresponding flash animation of real-time broadcast under the distinct device state, can not realize showing different animations according to different device type, can not realize that more thousands of dissimilar equipment play the animation of dissimilar different conditions simultaneously according to the real-time status of equipment self.Instant, three-dimensional, the state intuitively of showing each equipment with a kind of which type of method, the state variation of Dynamic Display equipment really lets user experiencing the effect of What You See Is What You Get, has just become the power industry urgent problem.
Summary of the invention
Purpose of the present invention is exactly in order to address the above problem, a kind of system and method based on flash animation real-time exhibition monitor equipment status is provided, the complicated running status that it is can be instant, succinct, showed intuitively power equipment has effectively solved user's indigestion when showing the power equipment running status, has experienced relatively poor problem.。
To achieve these goals, the present invention adopts following technical scheme:
A kind of system based on flash animation real-time exhibition monitor equipment status is to realize in the framework that is comprised of monitor supervision platform, monitoring host computer, monitor terminal; Described monitor terminal arrives monitoring host computer with the data upload that gathers, the mode that described monitoring host computer is crossed the TCP/IP Ethernet interface with the data communication device of receiving is transferred to monitor supervision platform, described monitor supervision platform carries out analyzing and processing to the monitor data of Real-time Collection, with analysis result with flash animation mode real-time exhibition monitor equipment status, so that for administrative staff provide effective Monitoring Data, analyzing failure cause or early warning in early stage.
Described monitor terminal is a kind of hardware device that adopts high integration and ultralow Consumption, and this equipment is installed in the electric power tunnel, various environmental datas in the electric power tunnel are gathered, then with data upload to monitoring host computer;
Described monitoring host computer is the equipment that connects monitor supervision platform and monitor terminal, and the device data that its acquisition monitoring terminal collects is sent to monitor supervision platform after the data encapsulation.Monitoring host computer is transferred to monitor supervision platform with the data received in the mode of TCP/IP Ethernet interface.
Described monitor supervision platform possesses the function that data receiver, data processing, alarm generation, real time monitoring, history are checked.Monitor supervision platform is supported the access of multiple common equipment, can control and the data response the equipment of monitoring fast, and have open framework, is convenient to the access of expanded function and third-party platform.
Use a kind of method based on flash animation real-time exhibition monitor equipment status of said system, it is take the true outward appearance of equipment as with reference to being beautified again, then the detail section that produces animation is described, and then produce animation effect under the various device different conditions, and in the flash animation, embed script, define the state interface method of updating the equipment, when the state of monitoring equipment upgrades, data real time propelling movement module receives device status data and is pushed to display module, display module calls the open state interface method of updating the equipment of flash animation again, realizes that the flash animated state changes with the variation of monitor equipment status.
Above-mentioned method based on flash animation real-time exhibition monitor equipment status, the specific works step is as follows:
The flash animation effect is made in step 1, beginning;
Step 2, definition flash animation interface;
Step 3, display module load the flash animation;
Step 4, display module call the state interface of updating the equipment of flash animation;
Step 5, Flash animation upgrade animation effect according to state parameter, finish.
Described step 1, make the flash animation effect: take the true outward appearance of equipment as with reference to being beautified again, then the detail section that produces animation is described, different processing is done in the Flash the inside that do not coexist according to device type, animation, shape animation, key frame redirect control, shade effect, assembly tool method between the scene among the Flash, film clip, figure, button, benefit are carried out diversified combination utilization, show the different conditions of various device in the mode of animation.
Described step 2, definition flash animation interface: the Flash animation receives the different conditions parameter of various device by the interface function of definition from the outside, reflect equipment operation condition, and for ease of expansion, parameter is used XML format string form.
Described XML is extend markup language, is used for the electroactive marker subfile and makes it have structural markup language, is used for flag data, definition data type, the original language that to be a kind of user of permission define oneself markup language.XML provides a kind of standardization, flexible, powerful method, is used for swap data between many different platforms and application program.Therefore, use the character string of XML form as parameter, call easily the flash animation for other system.
Described step 3, display module loads the flash animation: be divided into following steps:
(1), creates a flash animate object;
(2), load animation data stream for the flash object;
(3), the flash attribute is set.
Described step 4, display module are called the state interface of updating the equipment of flash animation: display module original upload flash animation or when receiving real-time device data, call the real-time status updating interface of flash animation exploitation and upgrade the flash animation.
Described step 5, the flash animation upgrades animation effect according to state parameter: after the flash animation receives device parameter, the type of judgment device at first, and then according to the state value of equipment and whether alarm, represent respectively the running status of equipment with the method for the presentation device states such as graphic change, literal, numerical value change, change color.
Beneficial effect of the present invention:
Usually, the corresponding flash animation of monitoring equipment, the script of embedding finds animation corresponding to equipment current state and broadcast accurately from numerous assembled state just as the brain of flash animation.This invention has realized that a kind of equipment can be according to the different different animations of equipment state broadcast; Realized the different dissimilar animations of device category broadcast; Realized that dissimilar equipment can play simultaneously the animation of dissimilar different conditions according to the real-time status of equipment self.The complicated running status that a kind of like this flash animation that has embedded script, open interface function is instant, succinct, showed intuitively power equipment has effectively solved user's indigestion when showing the power equipment running status, has experienced relatively poor problem.The invention solves the running status of coming presentation device with literal, picture lively, be not easy to understand, the user experiences bad problem, the staff only depends on literal, pictorial information to be difficult to judge the ruuning situation of monitoring equipment, and the method is as reference take material object, describe through beautifying, produce vivid animation form, the abundant machine operation that represents, even be not familiar with like this running status that the staff of system also can grasp equipment rapidly, the user experiences abundant.And the inventive method is to use the flash animation of vector quantization, have lively, the characteristics such as operational efficiency is high, interface interchange is convenient, favorable expandability of representing, and in animation, use script definition external interface, then satisfied the displaying demand of distinct device under various states.
Description of drawings
Fig. 1 is the method flow diagram based on flash animation real-time exhibition monitor equipment status;
Fig. 2 is the system schematic based on flash animation real-time exhibition monitor equipment status.
Wherein, 6. monitor supervision platform, 7. monitoring host computer, 8. monitor terminal.
Embodiment
The invention will be further described below in conjunction with accompanying drawing and embodiment.
As shown in Figure 1: the method flow diagram based on flash animation real-time exhibition monitor equipment status mainly is divided into following steps:
1, make the flash animation effect, mainly be divided into following steps:
(1), the terminal equipment material is carried out landscaping treatment.
At first, the real pictures of capture apparatus, photograph taking is comprehensively careful, should comprise the overall profile photo of equipment, and the photo of concrete parts also will be arranged.The equipment photo of actual photographed is beautified, then the detail section that produces animation is described.For example: the wind booth of ventilating opening, at first according to the outward appearance of wind booth, the appearance of drawing air-out booth in flash, and based on this point of the lock in the wind booth, well lid, collector, landing gear etc. are all displayed clearly, show that for the back animation variation of different piece is prepared.The design sketch of the real equipment of this emulation, which kind of equipment just can judge this in the time of can allowing the user see flash is, visual effect is more directly perceived.
(2), the animation under each state of making terminal equipment.
The flash animation can adopt diversified method to show different sights, and graphic change, literal, numerical value change, change color all are the methods of presentation device state.
Graphic change: for the many equipment of state variation, different numerical value represents the different state of equipment, and a lot of assembled state and concurrent state are arranged, and will tackle more flexibly the generation of various states when this just needs the flash animated show.We break the whole up into parts some state, according to least unit, be made into the film clip that is changed to the basis with individual part, sorting code number is carried out in these film clips, then the parameter of importing into is judged, classified, obtain final state value, and then named film clip is called, finally being presented in face of the user is the orderly displayings of a plurality of animations, thus all animation process of the more vivid equipment that shows from a certain state variation to the another one state.
Numerical value change: some equipment emphatically performance be the variation of the numerical value that collects of equipment, comprise the numerical value of the high early warning of equipment, high alarm, low early warning, low alarm, need these are all displayed accurately in the flash animation.Judge the numerical value of high early warning, high alarm, low early warning, low alarm among the flash according to the parameter of importing into, then on graduation apparatus, draw dynamically different color lines and represent warning value, again with the actual numerical value that collects mode the indicating on graduation apparatus with sliding pointer.Show so intuitively, allow the user see that clearly data whether in normal range (NR), are conducive to judge fast.For different analog quantity equipment, we also adopt different technique of expressions, such as: the water-level gauges in the hygrometer of vertical thermometer, dial plate type, the insertion water etc., such technique of expression makes the user can be good at distinguishing to different analog quantity equipment, and makes the form of expression more diversified.For the equipment of epidemic situation comparison complexity, we adopt animation to add the method for literal, show more clearly equipment state.Animation shows emphatically the physical change of equipment, text description then is the explanation to the equipment physical change, and whether text color also can be along with reporting to the police and change, and in order to satisfy the demand of different user, the particular content of text description is that the user can revise at any time.
Change color: the alarm level of equipment has clearly difference in the supervisory control system, also different alarm levels has been done corresponding processing in the flash animation, according to alarm level from low to high, also is to distinguish with the alarm icon of different colours in the animation.
2, definition flash animation interface.
The interface function parameter is divided into two ranks, the other GC group connector facility information of parent, each monitoring variable information of the other GC group connector equipment of sub level.
Terminal equipment information comprises: the numbering of the monitoring variable of terminal equipment numbering, terminal equipment title and reactive terminal equipment state.
Monitoring variable information comprises: whether monitoring variable numbering, monitoring variable title, monitoring variable type, state value (numeral), state value (character), this state reporting time, alarm level, alarm are confirmed, effective range lower limit, the effective range upper limit, high warning value, high alarm level, high early warning value, high warning level, low early warning value, low warning level, low warning value, low alarm level.
For different device types, the processing method of flash also is different with methods of exhibiting.Then judgment device type in the parameter that can at first externally import among the Flash is carried out diverse ways according to device type and is called.And what the Flash animation represented is real time data, when equipment changes, and the new state of presentation device that flash can be instant, the impact that the analysis that does not exist data delay to bring to the user is judged.
3, load animation, namely display module loads the flash animation.
(1), creates a flash animate object.Region of memory of display module application is waited for being written into of flash animation.
(2), load animation data stream for the flash object.According to the path of appointment, with flash animation file data fluidisation, and be loaded in the region of memory that display module is the application of flash object.
(3), the flash attribute is set.Comprise the flash animation image quality display quality, background colour, right-click menu, whether allow full frame, whether transparent demonstration etc.
4, call the state interface of updating the equipment, namely display module calls the state interface of updating the equipment of flash animation.
Display module is organized device status data, and imports in the flash animation.Display module organizes device status data that dual mode is arranged: read from data memory module or obtain from the real time propelling movement data module.Need to be from data memory module when display module is initial the fetch equipment status data, and the equipment state of flash animation is set.Then display module is connected with the real time propelling movement data module, in case equipment uploaded state data, then display module can receive immediately, and data are sent to the flash animation.
5, upgrade animation effect, namely the flash animation upgrades animation effect 5 according to state parameter.
After the flash animation file receives device status data, upgrade animation, with the consersion unit running status.Then judgment device type in the parameter that the flash animation at first externally imports into is carried out diverse ways according to device type and is called.Use the variation of the method presentation device states such as graphic change, literal variation, numerical value change, change color.
As shown in Figure 2, based on the system schematic of flash animation real-time exhibition monitor equipment status, it comprises monitor supervision platform 6, and the monitoring host computer 7 and the monitor terminal 8 that are connected successively with monitor supervision platform 6.
Monitoring host computer 7 is installed in the transformer station, as the medium between monitor supervision platform 6 and the monitor terminal 8, realizes the conversion of monitor supervision platform 6 network services and the communication protocol of monitor terminal 8, and realization is to the remote power feeding of monitor terminal 8, and communication such as patrols and examines at a series of functions.
Monitor terminal 8 can detect cable sheath earth current and fault current, and monitor terminal 8 adopts ultralow Consumption, has realized Real-Time Monitoring and the collection that can't realize under the conventional power consumption.
Adopt bus to be connected between monitor terminal 8 and the monitoring host computer 7, by monitoring host computer 7 remote power feedings, communication employing polling mode.
Although above-mentionedly by reference to the accompanying drawings the specific embodiment of the present invention is described; but be not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various modifications that creative work can make or distortion still in protection scope of the present invention.