CN105425101A - Electric power system fault recording playback method - Google Patents

Electric power system fault recording playback method Download PDF

Info

Publication number
CN105425101A
CN105425101A CN201410475081.0A CN201410475081A CN105425101A CN 105425101 A CN105425101 A CN 105425101A CN 201410475081 A CN201410475081 A CN 201410475081A CN 105425101 A CN105425101 A CN 105425101A
Authority
CN
China
Prior art keywords
mouse
painting canvas
axis
draw
detected
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.)
Granted
Application number
CN201410475081.0A
Other languages
Chinese (zh)
Other versions
CN105425101B (en
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.)
Huazhong University of Science and Technology
CSG Electric Power Research Institute
Research Institute of Southern Power Grid Co Ltd
Original Assignee
Huazhong University of Science and Technology
Research Institute of Southern Power Grid 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 Huazhong University of Science and Technology, Research Institute of Southern Power Grid Co Ltd filed Critical Huazhong University of Science and Technology
Priority to CN201410475081.0A priority Critical patent/CN105425101B/en
Publication of CN105425101A publication Critical patent/CN105425101A/en
Application granted granted Critical
Publication of CN105425101B publication Critical patent/CN105425101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses an electric power system fault recording playback method. The method comprises the following steps: utilizing two Pictureboxes to achieve interactive drawing, wherein the painting canvas Picturebox1 is used for drawing an oscillogram and the Picturebox2 is used for drawing an amplification rectangular frame and positioning a cursor, adopting a dual-buffering technology, drawing all panels in a buffer area when drawing the panels and channels, and then drawing once on the Pictureboxes; reducing a sampling rate when a global graph is displayed; drawing according to the actual number of sampling points when checking a local graph; and only drawing points within a time interval observable by a user after waveform amplification and translation. In this way, oscillograms are prevented from being drawn repeatedly when the amplification rectangular frame is drawn or the cursor is moved, and smoothness is improved.

Description

A kind of Power System Fault Record back method
Technical field
The invention belongs to electric power system fault playback technology field, more specifically, relate to a kind of Power System Fault Record back method.
Background technology
For many years; fault wave recording device based on microcomputer; electric network fault can be recorded front and back electric parameters and state change process information occur; by failure wave-recording playback reproducer; can the action behavior of instantaneous variation intactly after faults and relay protection; become analytic system accident, particularly analyze the important evidence of relay protection action behavior.
There is following problem in existing fault recurrence method:
(1) fault wave recording device is in order to improve the precision of fault analysis (as fault localization), sampling rate can be very high, and data volume is very large, causes playback drawing panel needing the point of drafting a lot, every two points need draw one section of straight line, and it is not high that waveform redraws efficiency;
(2) in the procedure for displaying of waveform, need in same panel, show hyperchannel (as three-phase voltage current), be convenient to com-parison and analysis, what turn increase that panel draws like this counts;
(3) when being amplified rectangle frame by drafting and checking that waveform local or dragging cursor locate sampling point information, mouse is often mobile, and once waveform need redraw once, causes whole amplification process waveform constantly to redraw, and drafting efficiency is not high like this.
Summary of the invention
For the problems referred to above, the invention provides a kind of Power System Fault Record back method, its object is to solve panel draws and count many, the problem such as constantly need to redraw, improve and draw efficiency.
For achieving the above object, the present invention is by the following technical solutions:
A kind of Power System Fault Record back method, comprises the following steps:
(1) detect the mouse response events of painting canvas Picturebox1 and Picturebox2, if detected, then perform step (8); If do not detected, then perform step (2);
(2) selector channel name, and the Wave data of fetch channel name correspondence position in the data file;
(3) take double buffering graphics display technology, in internal memory, create the buffer zone Bitmap consistent with painting canvas Picturebox1, next draw in this buffer zone;
(4) judge X-axis scaling coefficient fZoomX, if coefficient is greater than 1/nGid, show to be now overall display state, nGrid remains unchanged; If coefficient is less than or equal to 1/nGid, show, now for checking local state, nGrid to be set to 1, wherein, nGrid represents that every several data point gets the parameter that a point carries out drawing;
(5) every nGrid point gets a point, according to the position StartTimeLoc of current window timing node in whole timing node and amplify rectangle frame and produce X-axis off-set value nXChange and X-axis scaling coefficient fZoomX, calculate drawing starting point nStartPoint and terminal nEndPoint;
(6) according to waveforms amplitude at the position StartTimeLoc of whole Y-axis window and amplify the vertical magnification reference position of rectangle frame, obtain Y-axis scaling fZoomY, Y-axis off-set value nYChange, drawing starting point nStartPoint in integrating step (5) and terminal nEndPoint, and X-axis scaling fZoomX, X-axis off-set value nXChange draw on the Bitmap of buffer zone, and call the drawing image function of Picturebox1, the image on Bitmap is drawn out in painting canvas Picturebox1;
(7) now draw complete, painting canvas PictureBox1 enters into and waits for mouse response phase;
(8) the mouse-click event of Picturebox1 or Pictureobox2 is detected, judge whether this mouse-click event is draw amplification rectangle frame or whether is cursor location, if this mouse-click event is one of them, then current active painting canvas switches to Picturebox2, response events is moved according to mouse, obtain physical coordinates position e.X and e.Y of mouse, calculate the width and length that amplify rectangle frame, then the refreshing function of painting canvas Picturebox2 is called, painting canvas Picturebox2 constantly redraws, mouse moves a pixel, Picturebox2 just redraws once, if this mouse-click event is not one of them, then terminate to draw,
(9) the mouse pine detecting Picturebox1 or Pictureobox2 plays event, if mouse up detected, the coordinate recorded when the coordinate recorded when then pressing according to mouse and mouse up, calculate fZoomX, nXChange, fZoomY, nYChange, and return step (3), complete Picturebox1 and redraw; If mouse up event do not detected, then continue to detect this event.
The present invention has following beneficial effect: what decrease that waveform need draw counts, and avoids constantly redrawing of Picturebox, substantially increases drawing efficiency.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the Power System Fault Record back method that the present invention proposes.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with accompanying drawing, the present invention is further elaborated.
In general, the present invention adopts following measures to improve drafting efficiency:
Adopt two Picturebox Interactive Drawing, wherein painting canvas Picturebox1 is used for drawing waveforms figure, Picturebox2 for drawing amplification rectangle frame and positioning cursor.Can avoid so constantly redrawing oscillogram when drawing and amplifying rectangle frame or drag cursor, improve fluency.
Employing double buffering technology is drawn, and like this at drafting multi-panel, during hyperchannel, is first plotted in buffer zone by all panels, then disposablely draws on Picturebox, substantially increase drawing efficiency like this.
During display overall situation figure, take every several point to get a point, be equivalent to and reduce sampling rate, still can demonstrate the Changing Pattern of waveform; Check local time, then draw by real sampling number, make the minimizing of counting of display on painting canvas Picturebox like this, during drawing, efficiency improves.
After waveform amplification translation, only draw the point in user's SEE time interval, so more amplify, counting of the upper drafting of Picturebox is fewer, and Consumer's Experience is more smooth.
Specifically, in the present embodiment, Power System Fault Record back method, comprises the following steps:
(1) detect the mouse response events of painting canvas Picturebox1 and Picturebox2, if detected, then perform step (8); If do not detected, then perform step (2);
(2) selector channel name, and the Wave data of fetch channel name correspondence position in the data file;
(3) take double buffering graphics display technology, in internal memory, create the buffer zone Bitmap consistent with painting canvas Picturebox1, next draw in this buffer zone;
(4) judge X-axis scaling coefficient fZoomX, if coefficient is greater than 1/nGid, show to be now overall display state, nGrid remains unchanged; If coefficient is less than or equal to 1/nGid, show, now for checking local state, nGrid to be set to 1, wherein, nGrid represents that every several data point gets the parameter that a point carries out drawing;
Wherein, fZoomX<1 represents amplification.
(5) every nGrid point gets a point, according to the position StartTimeLoc of current window timing node in whole timing node and amplify rectangle frame horizontal magnification reference position, obtain X-axis off-set value nXChange and X-axis scaling coefficient fZoomX, calculate drawing starting point nStartPoint and terminal nEndPoint.So only need draw between user visible range, greatly reduce counting of need drawing;
(6) according to waveforms amplitude at the position StartTimeLoc of whole Y-axis window and amplify the vertical magnification reference position of rectangle frame, obtain Y-axis scaling fZoomY, Y-axis off-set value nYChange, drawing starting point nStartPoint in integrating step (5) and terminal nEndPoint, and X-axis scaling fZoomX, X-axis off-set value nXChange, to draw on the Bitmap of buffer zone, and call the drawing image function of Picturebox1, the image on Bitmap is drawn out in painting canvas Picturebox1;
(7) now draw complete, painting canvas PictureBox1 enters into and waits for mouse response phase;
(8) the mouse-click event of Picturebox1 or Pictureobox2 is detected, judge whether this mouse-click event is draw amplification rectangle frame or whether is cursor location, if this mouse-click event is one of them, then current active painting canvas switches to Picturebox2, namely painting canvas PictureBox2 is visible, and Picturebox1 hides.Response events is moved according to mouse, obtain physical coordinates position e.X and e.Y of mouse, calculate the width and length that amplify rectangle frame, then the refreshing function of painting canvas Picturebox2 is called, painting canvas Picturebox2 constantly redraws, mouse moves a pixel, and Picturebox2 just redraws once; If this mouse-click event is not one of them, then terminate to draw.
Wherein, amplify rectangle frame and cursor owing to drawing on painting canvas Picturebox2, a lot of waveform of counting need not be drawn, therefore greatly improve drawing efficiency.
(9) the mouse pine detecting Picturebox1 or Pictureobox2 plays event, if mouse up detected, the coordinate recorded when the coordinate recorded when then pressing according to mouse and mouse up, calculate fZoomX, nXChange, fZoomY, nYChange, and return step (3), complete Picturebox1 and redraw; If mouse up event do not detected, then continue to detect this event.
Such waveform only need redraw once at whole dynamic drafting amplification rectangle frame or positioning cursor process intermediate value.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (1)

1. a Power System Fault Record back method, comprises the following steps:
(1) detect the mouse response events of painting canvas Picturebox1 and Picturebox2, if detected, then perform step (8); If do not detected, then perform step (2);
(2) selector channel name, and the Wave data of fetch channel name correspondence position in the data file;
(3) take double buffering graphics display technology, in internal memory, create the buffer zone Bitmap consistent with painting canvas Picturebox1, next draw in this buffer zone;
(4) judge X-axis scaling coefficient fZoomX, if coefficient is greater than 1/nGid, show to be now overall display state, nGrid remains unchanged; If coefficient is less than or equal to 1/nGid, show, now for checking local state, nGrid to be set to 1, wherein, nGrid represents that every several data point gets the parameter that a point carries out drawing;
(5) every nGrid point gets a point, according to the position StartTimeLoc of current window timing node in whole timing node and amplify rectangle frame and produce X-axis off-set value nXChange and X-axis scaling coefficient fZoomX, calculate drawing starting point nStartPoint and terminal nEndPoint;
(6) according to waveforms amplitude at the position StartTimeLoc of whole Y-axis window and amplify the vertical magnification reference position of rectangle frame, obtain Y-axis scaling fZoomY, Y-axis off-set value nYChange, drawing starting point nStartPoint in integrating step (5) and terminal nEndPoint, and X-axis scaling fZoomX, X-axis off-set value nXChange draw on the Bitmap of buffer zone, and call the drawing image function of Picturebox1, the image on Bitmap is drawn out in painting canvas Picturebox1;
(7) now draw complete, painting canvas PictureBox1 enters into and waits for mouse response phase;
(8) the mouse-click event of Picturebox1 or Pictureobox2 is detected, judge whether this mouse-click event is draw amplification rectangle frame or whether is cursor location, if this mouse-click event is one of them, then current active painting canvas switches to Picturebox2, response events is moved according to mouse, obtain physical coordinates position e.X and e.Y of mouse, calculate the width and length that amplify rectangle frame, then the refreshing function of painting canvas Picturebox2 is called, painting canvas Picturebox2 constantly redraws, mouse moves a pixel, Picturebox2 just redraws once, if this mouse-click event is not one of them, then terminate to draw,
(9) the mouse pine detecting Picturebox1 or Pictureobox2 plays event, if mouse up detected, the coordinate recorded when the coordinate recorded when then pressing according to mouse and mouse up, calculate fZoomX, nXChange, fZoomY, nYChange, and return step (3), complete Picturebox1 and redraw; If mouse up event do not detected, then continue to detect this event.
CN201410475081.0A 2014-09-17 2014-09-17 A kind of Power System Fault Record back method Active CN105425101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410475081.0A CN105425101B (en) 2014-09-17 2014-09-17 A kind of Power System Fault Record back method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410475081.0A CN105425101B (en) 2014-09-17 2014-09-17 A kind of Power System Fault Record back method

Publications (2)

Publication Number Publication Date
CN105425101A true CN105425101A (en) 2016-03-23
CN105425101B CN105425101B (en) 2018-06-12

Family

ID=55503433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410475081.0A Active CN105425101B (en) 2014-09-17 2014-09-17 A kind of Power System Fault Record back method

Country Status (1)

Country Link
CN (1) CN105425101B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110989905A (en) * 2019-12-18 2020-04-10 深圳市商汤科技有限公司 Information processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0715861A (en) * 1993-06-25 1995-01-17 Toshiba Corp Training simulator for operating electric power system
US5617535A (en) * 1992-03-03 1997-04-01 Hitachi, Ltd. Recording and playbackk apparatus
CN101247039A (en) * 2007-12-14 2008-08-20 南方电网技术研究中心 Method for power system wave record playback based on real-time simulation system
CN101477170A (en) * 2009-01-19 2009-07-08 哈尔滨工业大学深圳研究生院 Electric power wave-recording sampling time-delay detection system and method
CN103853807A (en) * 2013-11-26 2014-06-11 许继电气股份有限公司 Visual analysis method of power faults
CN104036070A (en) * 2014-05-19 2014-09-10 国家电网公司 Digitized recording playback method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5617535A (en) * 1992-03-03 1997-04-01 Hitachi, Ltd. Recording and playbackk apparatus
JPH0715861A (en) * 1993-06-25 1995-01-17 Toshiba Corp Training simulator for operating electric power system
CN101247039A (en) * 2007-12-14 2008-08-20 南方电网技术研究中心 Method for power system wave record playback based on real-time simulation system
CN101477170A (en) * 2009-01-19 2009-07-08 哈尔滨工业大学深圳研究生院 Electric power wave-recording sampling time-delay detection system and method
CN103853807A (en) * 2013-11-26 2014-06-11 许继电气股份有限公司 Visual analysis method of power faults
CN104036070A (en) * 2014-05-19 2014-09-10 国家电网公司 Digitized recording playback method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110989905A (en) * 2019-12-18 2020-04-10 深圳市商汤科技有限公司 Information processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105425101B (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN103067569B (en) Method and device of multi-window displaying of smart phone
CN103164121B (en) A kind of method and apparatus of terminal software interface display
CN104063286A (en) Method and device for testing fluency of change of displayed content
CN103472996A (en) Method and device for receiving touch in mobile device
CN105573702A (en) Remote headnote moving and scaling synchronization method and system
CN103699259B (en) A kind of method of cursor positioning, system and touch apparatus
CN104360816A (en) Screen capture method and system
CN103488419A (en) Operating method of communication terminal and communication terminal
CN104615336A (en) Information processing method and electronic equipment
CN105843516B (en) It is a kind of for showing the method and device of information in original list rolling process
CN105302464B (en) System and method for scribing flow type document
CN103929541A (en) Method and device for controlling acceleration sensor and mobile terminal
CN105468253A (en) Mobile terminal interface content display method and apparatus and terminal
CN103049191B (en) Splicing wall display system realizes method and the device of mouse interaction operation
WO2017024929A1 (en) Handwriting editing method and system based on touch operation
CN106557426B (en) A kind of method and system for analyzing the ends Android application operation fluency
CN101937311A (en) Mobile terminal and icon control method
CN104360788A (en) Transparent marking method and desktop writing control method
CN103246474A (en) Electronic device with touch screen and page content display method thereof
CN104331234B (en) A kind of method and apparatus for performing mapping operation
CN102768308A (en) Method for carrying out visual simulation test on dielectric loss of current transformer
CN104331186A (en) Processing method and system for touch screen writing area
CN107870795A (en) The method and device that a kind of electronic map is shown
CN105425101A (en) Electric power system fault recording playback method
CN114896107A (en) Bad block detection method and device for touch screen, storage medium and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant