Method for representing industrial monitoring graph based on SVG

A graphics and industrial technology, applied in the field of SVG-based representation of industrial monitoring graphics, can solve the problems of occupying a lot of resources, slow parsing, long delay time, etc., to achieve the effect of less resource occupation, fast running speed, and strong passability

Inactive Publication Date: 2010-05-12
STATE GRID HENAN ELECTRIC POWER ELECTRIC POWER SCI RES INST
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The above method has many disadvantages: 1. The workload of drawing graphics is heavy and complicated, and the drawing personnel have to write a large amount of script codes, which is inefficient and error-prone to manually write codes; Only one line of code is needed, but the script code representing the change of this primitive may have dozens or even hundreds of lines
3. The parsing speed is slow when displaying graphics, too many script codes will cause the SVG graphics to display too slowly, and when displaying real-time graphics, many scripts to read real-time data will take up a lot of resources, and the delay time is long, which cannot meet the fast display The need for real-time data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for representing industrial monitoring graph based on SVG
  • Method for representing industrial monitoring graph based on SVG
  • Method for representing industrial monitoring graph based on SVG

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019]一种基于SVG的表示工业监测图形的方法,在SVG文档中添加循环控制模块、实时数据模块、条件验证模块;循环控制模块用于控制条件验证和图形刷新的速度;实时数据模块提供与实时数据层进行数据交换的接口;条件验证模块用于对实时数据进行逻辑运算,把验证结果交给图形和动画显示;

[0020]该方法包括以下步骤:a.加载SVG基本图形和动画;b.通过实时数据模块,加载外部实时数据,并向SVG动画的条件赋值;c.通过条件验证模块来执行SVG动画的条件逻辑,使SVG动画按条件执行;d.通过循环控制模块来实现步骤b、c的循环。

[0021]循环控制模块在SVG文档内部,被控制的SVG元素放在循环控制模块的标记之内。

[0022]条件验证模块在SVG文档内部,它存储显示动画的条件。条件验证模块的判断语句独立于SVG文档外存在,它存储显示动画的条件。

[0023]实时数据模块中,标记实时数据的变量名包含在条件验证模块中,当把SVG文档加载到内存中时,实时数据与SVG的DOM树共同存在于内存中。

[0024]实时数据模块获取实时数据的方法是主动去数据源取得数据。

[0025]实时数据模块获取实时数据的方法是外部数据源程序直接向实时数据的内存写入数据。

[0026]条件验证模块被SVG图形和动画以属性或子元素的方式引用,条件验证模块运算的结果只有"是”和"否”两种结果.

[0027]具体实施时,定义一个条件组,表示图形或动画变化的条件,在条件组中的条件成立时,执行动画。

[0028]定义的条件在SVG文档中的结构如下:

[0029]

[0030]

[0031]  

[0032]    

[0033]    

[0034]  

[0035]

[0036]

[0037]元素解释:

[0038]循环控制语句:这是本发明定义的元素;一个SVG文件中可以有多个此元素。

[0039]只有包含在此元素中的SVG图元才能被循环的获取实时数据。

[0040]SVG图元:SVG标准中的各图形元素。

[0041]SVG动画:SVG标准中的各种动画。

[0042]条件组:这是本发明定义的元素;执行动画的条件。

[0043]如上面的结构所示,如果一个图元会随着实时数据的变化而表现出动画,在其动画的节点下添加一个表示条件的节点,如果实时数据符合定义的条件,将表现出该动画。

[0044]具体实施时,可采用以下方式:

[0045]定义循环控制语句控制:cycl...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method for representing an industrial monitoring graph based on SVG, which is characterized in that a circulation control module, a real-time data module and a condition verifying module are added into an SVG file; the circulation control module is used for controlling the speed for the condition verification and graph refreshing; the real-time data module provides an interface used for carrying out data exchange with a real-time data layer; the condition verifying module is used for conducting logic calculation to real-time data, and delivering the verification result to the graphic and cartoon for display; the method comprises the following steps: a. loading SVG basic graphs and cartoons; b. loading external real-time data by the real-time data module, and conducting value assignment on the SVG cartoons; and c. executing conditional logic on the SVG cartoons by the condition verifying module so as to lead the SVG cartoons to be executed according to conditions; and d. realizing the circulation of the steps b and c by the circulation control module. The method can realize the change of the graphs or cartoons along with the change of industrial monitoring real-time data, and is characterized by few occupied resources, high operating speed, strong passing capability, powerful expansibility, concise mode and convenient use.

Description

technical field [0001] The invention relates to the computer industry application field, in particular to a method for representing industrial monitoring graphics based on SVG. Background technique [0002] SVG Scalable Vector Graphics (Scalable Vector Graphics) is a graphic format based on Extensible Markup Language (XML) used to describe two-dimensional vector graphics. This graphic format has the following advantages: 1. It can be scaled arbitrarily without losing precision; 2. Using text to describe the object, people can read the content of the image, and the image can be repaired after being damaged; 3. It can be combined with other XML-based technologies (such as html, xsl); 4. Graphics support animation. Due to these characteristics, SVG is used in various aspects of computer graphics, such as web page animations, flowcharts, presentation documents, etc. [0003] As the standard of international vector graphics, SVG can draw static industrial monitoring graphics, bu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G05B19/048G06F17/30
Inventor 郭志民刘枫琪赵俊杰
Owner STATE GRID HENAN ELECTRIC POWER ELECTRIC POWER SCI RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products