Browse Prior Art Database

One high performence and low delay menthod for drawing a dynamic chart for real-time data-flow

IP.com Disclosure Number: IPCOM000247594D
Publication Date: 2016-Sep-19
Document File: 7 page(s) / 67K

Publishing Venue

The IP.com Prior Art Database

Abstract

This invention provide a method to make the writing and drawing process be executed at the same time. Two files are used to support drawing. Two caches are used to receive input data and to write data to the files. As to the time of receiving data is shorter than the time of writing data to files, utilizing this method will ensure that there is always a file ready for drawing, and there is always a cache ready for receiving input data. This method decreases the delay to lowest level and thus improves the performance of drawing dramatically.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 53% of the total text.

Page 01 of 7

One high performence and low delay menthod for drawing a dynamic chart for real-time data-flow

In some cases, people need to monitor the running state of system by real-time data.The most intuitive way to monitor the running state is drawing a dynamic chart by the real-time data flow. A tool to draw the dynamic chart usually includes as least 3 modules: data collection module,writing module and drawing module. The traditional method for draw a dynamic chart usually uses below steps. Step 1: get the data from data collection module and store to one file; Step 2: lock the file and draw the chart with it, meanwhile, save the new data to the cache; Step 3: attach the data in the cache to the file, meanwhile, save the new data to a new cache; Step 4: update the chart with the file. Step 2 to 4 makes a loop to update the chart, the chart isdynamic, but in the traditional method, one problem appears, during writing the data to the file, the file is locked, and the drawing stops. This problem makesthe chart not very fluent.The invention will solve this problem.

This invention provide a method to make the writing and drawing process be executed at the same time. Two files are used to support drawing. Two caches are used to receive input data and to write data to the files. As to the time of receiving data is shorter than the time of writing data to files, utilizing this method will ensure that there is always a file ready for drawing, and there is always a cache ready for receiving input data. This method decreases the delay to lowest level and thus improves the performance of drawing dramatically.

Suppose:

#1: The speed of drawing the new and history data is faster then the speed of input data-flow. #2: The time of writing the data form cache to file is less than half of the time of drawing.

Our invention includes six steps:

Step #1: At the beginning, There are two empty files and two empty caches. The input data-flow be written to the first cache (C1). This step continued for 2 units time.

1



Page 02 of 7

Picture 1

Step 2: The data of last 2 units time in C1 be written to the first file (F1), meanwhile the new data be written to the second cache (C2). This step continued for 1 unit time.

Picture 2

Step 3: The new data be written to C2 continual, meanwhile the data in C1 be written to the second file (F2), and the drawing module draw the picture...