CN105354419B - A kind of trajectory processing method being applied in spectrum analyzer - Google Patents
A kind of trajectory processing method being applied in spectrum analyzer Download PDFInfo
- Publication number
- CN105354419B CN105354419B CN201510732294.1A CN201510732294A CN105354419B CN 105354419 B CN105354419 B CN 105354419B CN 201510732294 A CN201510732294 A CN 201510732294A CN 105354419 B CN105354419 B CN 105354419B
- Authority
- CN
- China
- Prior art keywords
- pattern
- video average
- counter variable
- value
- average counter
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Z—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS, NOT OTHERWISE PROVIDED FOR
- G16Z99/00—Subject matter not provided for in other main groups of this subclass
Landscapes
- Spectrometry And Color Measurement (AREA)
- Other Investigation Or Analysis Of Materials By Electrical Means (AREA)
Abstract
A kind of trajectory processing method being applied in spectrum analyzer provided by the invention, this method solves the track data process problem after trajectory processing pattern changes by the way of counting, the video average counter variable used in video average mode is expanded to maximum holding pattern, minimum holding pattern and refreshed in display pattern by this method, four kinds of tupes of i.e. each track share a video average counter variable, when the tupe of track changes, the value of video average counter variable is initialized as 1.Construct a trajectory processing function, by the value for judging video average counter variable whether be 1 to determine the processing mode to the current data of acquisition in the function, more simple on the framework of whole software, the maintenance enhanced convenience in later stage.When spectrum analyzer provides multiple track datas, this method is not in the problem of processing is complicated, and scalability is very strong.
Description
Technical field
The present invention relates to spectrum analysis field, more particularly to a kind of trajectory processing being applied in spectrum analyzer are newly square
Method.
Background technology
In spectrum analyzer, more information are obtained from frequency spectrum data in order to facilitate user, typically can all be provided more
Bar track, and can provide simultaneously for every track such as refresh display, it is maximum keep, it is minimum keep and video it is average this four
Kind tupe.In these four patterns, in addition to refreshing and showing, its excess-three pattern is all referred to current spectral data
After being handled with historical data, final display data can be just obtained.Such as, it is necessary to ought in the case of maximum be kept
The frequency spectrum data of preceding acquisition and last frequency spectrum data carry out maximum holding operation between the two, and the result after processing is stored
Into display buffer, screen is sent to afterwards and is shown.After original initial data is obtained again next time, mistake above is repeated
Journey, so as to realize that the maximum of track keeps display function.Minimum keeps similar therewith with video averaging process.Said process
It is the normal operation flow after track tupe is set, now the problem is that when trajectory processing pattern changes
(for example remaining switched to minimum holding pattern or video average mode by maximum), above-mentioned repetitive process will be interrupted, journey
Sequence should be handled according to new trajectory processing pattern.But now due to the data in the display buffer of track still interrupt
Last frame data before.Obviously, if recycling the data in display buffer and the data that newly obtain under new model
Respective handling is carried out, obtained display data is incorrect.So switch (can also be referred to as at breakpoint) in emergence pattern
Afterwards, how handling historical data present in the display buffer of track must just solve the problems, such as one.
Processing method at present in spectrum analyzer is as follows:After the tupe of track changes, root in a program
According to the new model after switching, artificially the data of display buffer are initialized.Such as when tupe is cut from display is refreshed
After changing to maximum keep, the work for needing to do in a program includes two aspects:1) mark of data processing mode is carried out;2) because
Maximum holding pattern is now switched into, then is needed the setting value of current track display buffer to a very small numerical value
(for example being set to -500.0), become the initial data that initial history data obtain again and newly and carry out maximum holding computing,
So as to obtain the first frame data under maximum holding pattern;When being switched under minimum holding pattern, then need display buffer
Data initialization in area is to a very big value.In specific programming, current way is initialised to reference to electricity
It is flat residing numerically (for example with reference now to level to be 0dBm, be then initialised to 0.0;It is if 10dBm, then its is initial
Change to 10.0.) artificially initialize the data of display buffer and as the initial history data after pattern switching, Zhi Houzai
Into normal handling process so as to realizing the pattern switching of track.
Prior art has the following disadvantages:
1), it is necessary to artificially be initialized to the data in the display buffer of track after pattern switches, and this
Initialization needs the initialization according to corresponding to being carried out the identification number of track and current datum.The variable being related to and consideration
Factor is more, and realization is wasted time and energy first.
2) when spectrum analyzer provides multiple track datas, data processing is complex, is not easy to maintenance and expansion.
After pattern switches, although handling the display data for correctly obtaining the first frame by prior art,
Clearly display data now is exactly that pattern switches the initial data obtained afterwards.But for this number of acquisition
According to program needs to carry out two steps:First, the artificial initialization of display buffer is carried out first;Second, after initialization
The raw spectroscopy data that obtains again and newly of data carry out processing under new model.It is time-consuming, laborious for the angle of program.
The content of the invention
For the trajectory processing method in existing spectrum analyzer after hand-off process pattern, to display buffer
Operating process existing for data processing is complicated, it is necessary to artificial the problem of initialization to the data in display buffer, this
Invention provides a kind of trajectory processing new method being applied in spectrum analyzer.
The present invention uses following technical scheme:
A kind of trajectory processing new method being applied in spectrum analyzer, including:
Step 1:The extension of video average counter variable, there are four kinds of processing moulds for every track in spectrum analyzer
Formula, respectively refresh display pattern, maximum holding pattern, minimum holding pattern and video average mode, by video average operation
In required video average counter variable be extended to maximum holding pattern, minimum holding pattern and refresh display pattern this three
Under individual tupe, four kinds of tupes share a video average counter variable, when trajectory processing pattern is cut by a pattern
When changing to another pattern, the value of video average counter variable is initialized as 1;
Step 2:Tupe is identified, and four kinds of tupes of every track are identified, and refreshes display pattern, maximum
Holding pattern, minimum holding pattern and video average mode are identified with four different integers respectively;
Step 3:Trajectory processing function is built, trajectory processing function is built on the premise of step 1 and step 2, at track
Managing function includes the value of current data, display buffer, tupe and video average counter variable;
Step 4:The flow of trajectory processing function, judges whether the value of video average counter variable is equal to 1, if video is averaged
The value of counting variable is equal to 1, then directly copies in display buffer the first frame data of acquisition and show and as being switched to
Initial history data after new model, then the value of video average counter variable add 1, function returns;If video average counter becomes
Amount is more than 1, then the value identified according to the tupe described in step 2 is judged tupe, and judgement obtains current
Tupe, it is then under current tupe that the current data of acquisition is corresponding to the historical data progress of display buffer
Processing, handle the data that obtain afterwards and be sent into display buffer, then video average counter variable adds 1, and function returns.
Preferably, the upper limit of the value of the video average counter variable is 200, just video is not being counted averagely more than 200
The value of number variable is added up.
The invention has the advantages that:
A kind of trajectory processing new method being applied in spectrum analyzer provided by the invention, by under video average mode
Video average counter variable is equally applied to maximum holding pattern, minimum holding pattern and refreshing display pattern, and these three handle moulds
Under formula, unification of four kinds of tupes in logic level is ensure that, after solving tupe switching by the way of the counting
The processing of first frame data, when trajectory processing pattern switches, the value of video average counter variable is initialized as 1.Structure
Build a trajectory processing function, by the value for judging video average counter variable whether be 1 to determine to acquisition in the function
The processing mode of current data is more simple on the framework of whole software.
Trajectory processing method provided by the invention more saves relative to existing trajectory processing method in the realization of program
When, it is laborsaving, when trajectory processing pattern switches, data to display buffer that the trajectory processing method need not be artificial
Initialized, it is only necessary to which whether the value for judging video average counter variable is 1, if 1, then will directly obtain the first frame data
Copy in display buffer, while the value of video average counter variable is added up;If not 1, then according to current place
Reason pattern, the current data and historical data of acquisition are handled, then the data after processing are sent into display buffer, together
When the value of video average counter variable is added up, therefore this method to the trajectory processing method in spectrum analyzer more
Simply, it is practical.
Trajectory processing method provided by the invention, a plurality of track in spectrum analyzer can be handled, to a plurality of
Trajectory processing process operation is simple, and scalability is very strong, and the Software for Design of whole processing method is simple, in the maintenance in later stage
Upper enhanced convenience.
Brief description of the drawings
Fig. 1 is the FB(flow block) of trajectory processing function.
Embodiment
The present invention will be described in detail below in conjunction with the accompanying drawings:
With reference to Fig. 1, a kind of trajectory processing new method being applied in spectrum analyzer, including:
Step 1:The extension of video average counter variable, there are four kinds of processing moulds for every track in spectrum analyzer
Formula, respectively refresh display pattern, maximum holding pattern, minimum holding pattern and video average mode, four kinds of tupes are not
Can exist simultaneously, four kinds of tupes belong to either-or relation, therefore required video in video average operation is averaged
Counting variable is extended to maximum holding pattern, minimum holding pattern and refreshed under display pattern these three tupes, four
Kind tupe shares a video average counter variable, when trajectory processing pattern is by a pattern switching to another pattern
When, the value of video average counter variable is initialized as 1;
Step 2:Tupe is identified, and four kinds of tupes of every track are identified, and refreshes display pattern, maximum
Holding pattern, minimum holding pattern and video average mode are identified with four different integers respectively, refresh display pattern
0 is identified as, it is 1 that maximum, which keeps pattern identification, and it is 2 that minimum, which keeps pattern identification, and video average mode is identified as 3;
Step 3:Trajectory processing function is built, trajectory processing function is built on the premise of step 1 and step 2, at track
Managing function includes the value of current data, display buffer, tupe and video average counter variable;
Step 4:The flow of trajectory processing function, judges whether the value of video average counter variable is equal to 1, if video is averaged
The value of counting variable is equal to 1, then directly copies in display buffer the first frame data of acquisition and show and as being switched to
Initial history data after new model, then the value of video average counter variable add 1, function returns;If video average counter becomes
Amount is more than 1, then the value identified according to the tupe described in step 2 is judged tupe, and judgement obtains current
Tupe, it is then under current tupe that the current data of acquisition is corresponding to the historical data progress of display buffer
Processing, handle the data that obtain afterwards and be sent into display buffer, then video average counter variable adds 1, and function returns.
Wherein, the upper limit of the value of video average counter variable can be set as 200, is not just averaged more than 200 to video
The value of counting variable is added up.Certainly, the upper limit of the value of video average counter variable artificial according to the actual requirements can be entered
Row setting, the upper limit of the value of video average counter variable have to be larger than 1, be not limited to above-described higher limit.
Trajectory processing method provided by the invention more saves relative to existing trajectory processing method in the realization of program
When, it is laborsaving, when trajectory processing pattern switches, solve the first frame number after tupe switching by the way of the counting
According to processing, the trajectory processing method need not the artificial data to display buffer initialize, it is only necessary to judgement regards
Whether the value of frequency average counter variable is 1, therefore simple in the software architecture of whole processing method, in the maintenance in later stage more
It is simple.In addition, trajectory processing method provided by the invention can be handled a plurality of track in spectrum analyzer, when frequency
Be not in the problem of processing is complicated, scalability is very strong when spectrum analyzer provides multiple track datas processing.
Certainly, described above is not limitation of the present invention, and the present invention is also not limited to the example above, this technology neck
The variations, modifications, additions or substitutions that the technical staff in domain is made in the essential scope of the present invention, it should also belong to the present invention's
Protection domain.
Claims (2)
- A kind of 1. trajectory processing method being applied in spectrum analyzer, it is characterised in that including:Step 1:The extension of video average counter variable, there are four kinds of tupes for every track in spectrum analyzer, Respectively refresh display pattern, maximum holding pattern, minimum holding pattern and video average mode, by must in video average operation The video average counter variable needed is extended to maximum holding pattern, minimum holding pattern and refreshes display pattern at these three Under reason pattern, four kinds of tupes share a video average counter variable, when trajectory processing pattern by a pattern switching to During another pattern, the value of video average counter variable is initialized as 1;Step 2:Tupe is identified, and four kinds of tupes of every track are identified, and refreshes display pattern, maximum holding Pattern, minimum holding pattern and video average mode are identified with four different integers respectively;Step 3:Trajectory processing function is built, trajectory processing function, trajectory processing letter are built on the premise of step 1 and step 2 Number includes the value of current data, display buffer, tupe and video average counter variable;Step 4:The flow of trajectory processing function, judges whether the value of video average counter variable is equal to 1, if video average counter The value of variable is equal to 1, then directly copies in display buffer the first frame data of acquisition and show and as being switched to new mould Initial history data after formula, then the value of video average counter variable add 1, function returns;If video average counter variable is big In 1, then the value identified according to the tupe described in step 2 judges that tupe judgement obtains current processing Pattern, then locate under current tupe by the current data of acquisition is corresponding with the historical data progress of display buffer Reason, handle the data obtained afterwards and be sent into display buffer, then video average counter variable adds 1, and function returns.
- 2. a kind of trajectory processing method being applied in spectrum analyzer according to claim 1, it is characterised in that described The upper limit of the value of video average counter variable is 200, more than 200 with regard to no longer being added up to the value of video average counter variable.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510732294.1A CN105354419B (en) | 2015-11-02 | 2015-11-02 | A kind of trajectory processing method being applied in spectrum analyzer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510732294.1A CN105354419B (en) | 2015-11-02 | 2015-11-02 | A kind of trajectory processing method being applied in spectrum analyzer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105354419A CN105354419A (en) | 2016-02-24 |
CN105354419B true CN105354419B (en) | 2018-01-30 |
Family
ID=55330391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510732294.1A Expired - Fee Related CN105354419B (en) | 2015-11-02 | 2015-11-02 | A kind of trajectory processing method being applied in spectrum analyzer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354419B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111896808B (en) * | 2020-07-31 | 2023-02-03 | 中国电子科技集团公司第四十一研究所 | Method for integrally designing frequency spectrum track processing and adaptive threshold generation |
CN113157408B (en) * | 2021-03-25 | 2024-05-17 | 上海科世达-华阳汽车电器有限公司 | Method, device, electronic equipment and medium for timing counting of embedded software |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1431207A (en) * | 1972-06-26 | 1976-04-07 | Ibm | Methods of analyzing line spectra |
CN1088376A (en) * | 1992-10-27 | 1994-06-22 | 艾利森·Ge·流动通讯有限公司 | The multi-mode signal processing |
CN103487653A (en) * | 2013-09-18 | 2014-01-01 | 中国电子科技集团公司第四十一研究所 | Device and method for processing real-time frequency spectrum tracks |
-
2015
- 2015-11-02 CN CN201510732294.1A patent/CN105354419B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB1431207A (en) * | 1972-06-26 | 1976-04-07 | Ibm | Methods of analyzing line spectra |
CN1088376A (en) * | 1992-10-27 | 1994-06-22 | 艾利森·Ge·流动通讯有限公司 | The multi-mode signal processing |
CN103487653A (en) * | 2013-09-18 | 2014-01-01 | 中国电子科技集团公司第四十一研究所 | Device and method for processing real-time frequency spectrum tracks |
Also Published As
Publication number | Publication date |
---|---|
CN105354419A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105354419B (en) | A kind of trajectory processing method being applied in spectrum analyzer | |
CN106897409A (en) | Data point library storage method and device | |
CN107291382A (en) | The method and solid state hard disc of operating lag are read in a kind of solid state hard disc reduction | |
CN105527948A (en) | Large scale distributed data acquisition system and method based on industrial process | |
CN104572296B (en) | A kind of method for predicting cloud platform storage resource increment | |
CN105336373A (en) | Efuse module, and calibration system and calibration method of fusing current of Efuse module | |
CN111177128B (en) | Metering big data batch processing method and system based on improved outlier detection algorithm | |
CN113096072B (en) | Method for constructing color system of yarn dyed yarns | |
CN104899908B (en) | The method and apparatus for generating event group evolution diagram | |
CN110309815A (en) | A kind of processing method and system of facial recognition data | |
CN105262702B (en) | TDMA communication network slot uniform distribution method based on minimal time delay shake | |
CN107726552B (en) | A kind of matching process of general-purpose line control machine | |
CN103439964B (en) | A kind of online updating system and method for OCSVM monitoring model | |
CN102945184A (en) | Realization method for configuration control on window data | |
CN110147289A (en) | Unexpected message screening technique and device and computer readable storage medium | |
CN108802512B (en) | Power distribution system test method and device | |
CN109857817A (en) | The whole network domain electronic mutual inductor frequent continuous data is screened and data processing method | |
CN105468311A (en) | Visualized high-efficiency digital printing colour correction management method | |
CN107256045A (en) | The method and device of mass concrete intelligent temperature control | |
CN102638376A (en) | Network resource upgrading method | |
Soma et al. | Schedule optimization using fuzzy inference | |
CN106655157B (en) | A kind of power regulation method and system for photovoltaic plant | |
TWI741760B (en) | Learning based resource allocation method, learning based resource allocation system and user interface | |
CN108509196A (en) | A kind of iOS color managements strategy | |
Dohi et al. | Statistical estimation algorithms for repairs-time limit replacement scheduling under earning rate criteria |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180130 Termination date: 20211102 |