CN102708578A - Real-time curve drawing method - Google Patents

Real-time curve drawing method Download PDF

Info

Publication number
CN102708578A
CN102708578A CN2012101511946A CN201210151194A CN102708578A CN 102708578 A CN102708578 A CN 102708578A CN 2012101511946 A CN2012101511946 A CN 2012101511946A CN 201210151194 A CN201210151194 A CN 201210151194A CN 102708578 A CN102708578 A CN 102708578A
Authority
CN
China
Prior art keywords
real
time
point
analog quantity
curvilinear
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.)
Pending
Application number
CN2012101511946A
Other languages
Chinese (zh)
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.)
Henan Splendor Science and Technology Co Ltd
Original Assignee
Henan Splendor Science and Technology 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 Henan Splendor Science and Technology Co Ltd filed Critical Henan Splendor Science and Technology Co Ltd
Priority to CN2012101511946A priority Critical patent/CN102708578A/en
Publication of CN102708578A publication Critical patent/CN102708578A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a real-time curve drawing method which comprises the following steps of: reading sampling time and analog quantity real-time values of sampling points; drawing a curvilinear figure by using the sampling time of the sampling points as abscissas and using the analog quantity real-time values of the sampling points as ordinates; comparing the analog quantity real-time values of a current sampling point and a previous sampling point and then drawing a quarter of period of cosine curve on the curvilinear figure by using the point with the small analog quantity real-time value as an origin of coordinates, using the point with the large analog quantity real-time value as a crest or trough point and using four pieces of sampling time as a period; translating the curvilinear figure forward by one period by using one piece of sampling time as the period, judging whether the sampling points on the curvilinear figure reach the boundary of the curvilinear figure, and if the sampling points on the curvilinear figure reach the boundary of the curvilinear figure, deleting the sampling points from a buffer zone; and entering the next circulation. By the method, a smooth, attractive and real real-time analog quantity curve can be drawn; and the method is simple and practical.

Description

The real-time curve method for drafting
Technical field
The present invention relates to a kind of curve plotting method, specifically, related to a kind of real-time curve method for drafting.
Background technology
The analog quantity instantaneous value is described out with the method for curvilinear figure, can reflect the variation tendency and the real-time status of analog quantity instantaneous value more intuitively, be convenient to our understanding and observation.
Because real-time curve only need reflect the data in the current and last relative short period section; Therefore just can curvilinear figure be fixed in a certain fixing a bit of time; Sampled data through the fixed sample point time obtains is carried out described point, and each point coupled together just can obtain a simple curve; Yet the curve that obtains through such method is the curve of a static state, and directly two described points is coupled together with straight line and will make curve seem only level and smooth, seems attractive in appearance inadequately, and is also true inadequately to the reflection of analog quantity.
In order to solve the problem of above existence, people are seeking a kind of desirable technical solution always.
Summary of the invention
The objective of the invention is deficiency, thereby the real-time curve method for drafting of simple, the practical carrier state of a kind of method is provided to prior art.
To achieve these goals, the technical scheme that the present invention adopted is: a kind of real-time curve method for drafting, and it may further comprise the steps:
Step 1, once read the sampling time and the real-time numerical value of analog quantity of a sampled point in order from buffer zone;
Step 2, on the curve description region, be horizontal ordinate, be ordinate curve plotting figure with sampling time of sampled point with the real-time numerical value of the analog quantity of sampled point;
Step 3, the real-time numerical value of the analog quantity of current sampling point and previous sampled point is carried out size relatively; Then, be true origin, be crest or trough point, on curvilinear figure, describe the cosine curve of four/one-period with four sampling times as the cycle with the less point of the real-time numerical value of analog quantity with the bigger point of the real-time numerical value of analog quantity;
Step 4, be the cycle with curvilinear figure translation one-period forward with a sampling time again, and judge the sampled point border of arrival curve figure whether on the curvilinear figure, if, then with this sampled point from buffer block deletion;
Step 5, return step 1, get into next circulation.
The relative prior art of the present invention has outstanding substantive distinguishing features and marked improvement, specifically, can draw level and smooth, attractive in appearance, real real time modelling discharge curve through this real-time curve method for drafting, and it has the simple and practical advantage of method.
Embodiment
Through embodiment, technical scheme of the present invention is done further detailed description below.
A kind of real-time curve method for drafting, it may further comprise the steps:
Step 1, once read the sampling time and the real-time numerical value of analog quantity of a sampled point in order from buffer zone; If first point is then directly got second point from buffer zone again;
Step 2, on the curve description region, be horizontal ordinate, be ordinate curve plotting figure with sampling time of sampled point with the real-time numerical value of the analog quantity of sampled point;
Step 3, the real-time numerical value of the analog quantity of current sampling point and previous sampled point is carried out size relatively; Then, be true origin, be crest or trough point, on curvilinear figure, describe the cosine curve of four/one-period with four sampling times as the cycle with the less point of the real-time numerical value of analog quantity with the bigger point of the real-time numerical value of analog quantity;
Step 4, be the cycle with curvilinear figure translation one-period forward with a sampling time again, and judge the sampled point border of arrival curve figure whether on the curvilinear figure, if, then with this sampled point from buffer block deletion;
Step 5, return step 1, get into next circulation.
Through above step, just can obtain a level and smooth dynamic real-time analog quantity curve attractive in appearance.
After curvilinear figure under the different conditions has been drawn, different curvilinear figures is arranged to various colors, for use in the difference different state.
Should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not to its restriction; Although with reference to preferred embodiment the present invention has been carried out detailed explanation, the those of ordinary skill in affiliated field is to be understood that: still can specific embodiments of the invention make amendment or the part technical characterictic is equal to replacement; And not breaking away from the spirit of technical scheme of the present invention, it all should be encompassed in the middle of the technical scheme scope that the present invention asks for protection.

Claims (1)

1. a real-time curve method for drafting is characterized in that, this method may further comprise the steps: step 1, once read the sampling time and the real-time numerical value of analog quantity of a sampled point in order from buffer zone; Step 2, on the curve description region, be horizontal ordinate, be ordinate curve plotting figure with sampling time of sampled point with the real-time numerical value of the analog quantity of sampled point; Step 3, the real-time numerical value of the analog quantity of current sampling point and previous sampled point is carried out size relatively; Then, be true origin, be crest or trough point, on curvilinear figure, describe the cosine curve of four/one-period with four sampling times as the cycle with the less point of the real-time numerical value of analog quantity with the bigger point of the real-time numerical value of analog quantity; Step 4, be the cycle with curvilinear figure translation one-period forward with a sampling time again, and judge the sampled point border of arrival curve figure whether on the curvilinear figure, if, then with this sampled point from buffer block deletion; Step 5, return step 1, get into next circulation.
CN2012101511946A 2012-05-16 2012-05-16 Real-time curve drawing method Pending CN102708578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101511946A CN102708578A (en) 2012-05-16 2012-05-16 Real-time curve drawing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101511946A CN102708578A (en) 2012-05-16 2012-05-16 Real-time curve drawing method

Publications (1)

Publication Number Publication Date
CN102708578A true CN102708578A (en) 2012-10-03

Family

ID=46901296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101511946A Pending CN102708578A (en) 2012-05-16 2012-05-16 Real-time curve drawing method

Country Status (1)

Country Link
CN (1) CN102708578A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095139A (en) * 2016-05-30 2016-11-09 安徽慧视金瞳科技有限公司 A kind of method promoting lines drafting speed in projection interactive system
CN106504298A (en) * 2016-09-22 2017-03-15 珠海格力电器股份有限公司 Curve plotting method and device
CN111223184A (en) * 2019-11-19 2020-06-02 中煤航测遥感集团有限公司 Target curve drawing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033665A1 (en) * 2005-06-06 2009-02-05 Hideyuki Iguchi Curve drawing apparatus, curve drawing method, parking support system and vehicle
CN101706524A (en) * 2009-11-18 2010-05-12 北京普源精电科技有限公司 Data collection device and data collection method thereof
CN102111568A (en) * 2009-12-28 2011-06-29 新奥特(北京)视频技术有限公司 Method for drawing time-sharing tendency chart and character generator

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033665A1 (en) * 2005-06-06 2009-02-05 Hideyuki Iguchi Curve drawing apparatus, curve drawing method, parking support system and vehicle
CN101706524A (en) * 2009-11-18 2010-05-12 北京普源精电科技有限公司 Data collection device and data collection method thereof
CN102111568A (en) * 2009-12-28 2011-06-29 新奥特(北京)视频技术有限公司 Method for drawing time-sharing tendency chart and character generator

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095139A (en) * 2016-05-30 2016-11-09 安徽慧视金瞳科技有限公司 A kind of method promoting lines drafting speed in projection interactive system
CN106095139B (en) * 2016-05-30 2018-10-12 安徽慧视金瞳科技有限公司 A method of it promoting lines in projecting interactive system and draws speed
CN106504298A (en) * 2016-09-22 2017-03-15 珠海格力电器股份有限公司 Curve plotting method and device
CN106504298B (en) * 2016-09-22 2019-07-23 珠海格力电器股份有限公司 Curve plotting method and device
CN111223184A (en) * 2019-11-19 2020-06-02 中煤航测遥感集团有限公司 Target curve drawing method and device

Similar Documents

Publication Publication Date Title
CN102708578A (en) Real-time curve drawing method
JP2015505062A5 (en)
MX2015008716A (en) Shared and managed memory unified access.
CN204602765U (en) A kind of touch-type glass screen rack for cleaning
CN204142637U (en) Multi-functional pH test paper comparator block
CN202945996U (en) Multifunctional combination extension ladder
CN205405110U (en) Intelligence energy -saving control system
Malik et al. How can Pakistan fully exploit its GSP Plus status
CN203487589U (en) Multifunctional washing table
CN204617180U (en) A kind of sunbonnet with sunglasses
Di et al. Review of Community Participation in Tourism Development at Home and Abroad over the Past Decade
Zhang et al. Data acquisition design based on the STM32
CN103352279A (en) Inclined return chute structure of headstock box of combing machine
CN207927951U (en) A kind of umbrella stem limiting device
CN206211441U (en) A kind of wire casing reducing splitter
Lee The Prospect of AIIB's Potential Investment in North Korea and Its Implications
CN201665073U (en) Color pen
CN205829544U (en) Photovoltaic module structure
CN202874265U (en) Eyebrow pencil with cotton swab
Roy Rethinking the Global Urban Space in Salman Rushdie’s Novels
CN104687897A (en) Mirror with magnifying lens
CN205880189U (en) Smart electric meter management system that ages
CN203776826U (en) Tool for cleaning window frame slots
CN202533653U (en) Mobile fixing clamp for scanning film
CN205721542U (en) Mobile terminal based on big data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20121003