Intelligent scanning measuring method in vector network analyzer
Technical field
The present invention relates to technical field of measurement and test, and in particular to intelligent scanning measuring method in a kind of vector network analyzer.
Background technology
The current scan mode of vector network analyzer needs user to select scan mode, and according to sweep time, intermediate frequency
Bandwidth decides whether to support quick scan mode.Two ways is needed between vector network analyzer main process task and data processor
Frequently interaction, primary processor needs to send various arrange parameters and scanning related command, and data processor could start at data
Manage and return result.
Stand-by period during prior art step-scan per frequency is built-in or user specifies, decimal point during quick scanning
The sweep time of frequency plate is equal to IF process time+delay time, and delay time is determined by system clock, it is impossible to reached at data
Reason is synchronous with scanning, and it is not very consistent to cause to scan obtained result every time.
The content of the invention
It is an object of the invention to provide intelligent scanning measuring method in a kind of vector network analyzer, automatic detection is pending
The width phase information of signal, and the data synchronization processing signal synchronous with scanning is produced, without setting constant time lag and substantial amounts of number
According to interaction and communication time, to improve while the speed scanned every time, it is ensured that the accuracy of result, and pass through synchronous place
The method for managing signal ensures the uniformity of result per treatment.
For up to above-mentioned purpose, on the one hand, surveyed the embodiments of the invention provide intelligent scanning in a kind of vector network analyzer
Amount method, including:
Judge whether step-by-step counting and intermediate-frequency bandwidth meet preparatory condition;
If so, then selecting step-scan;If it is not, then selecting quick scanning;
Wherein, the step-scan determines the data acquisition moment using preprocessor, and the quick scanning utilizes data
Processing synchronizing clock signals determine the data acquisition moment.
Optionally, in the step-scan, the data acquisition moment is determined using peak detection method.
It is preferred that, in the quick scanning:
The data processing synchronizing cycle=frequency step/frequency sweep reference clock × sampling clock;
Data processing synchronizing relay=data processing synchronizing cycle-data processing sampling time;
Fractional frequency division plate stepping=frequency step/(per spot scan time × frequency sweep reference clock).
It is preferred that:
Step-by-step counting=frequency step/the intermediate-frequency bandwidth;
Wherein, the frequency step=frequency span/number of scan points;
Wherein, the frequency span=termination frequency-initial frequency;
The termination frequency and initial frequency are pre-set by user.
Further:
The preparatory condition is:Intermediate-frequency bandwidth<1k and step-by-step counting<1.
Above-mentioned technical proposal has the advantages that:
Above-mentioned technical proposal is accurate to obtain with the data processing synchronizing signal of frequency using sampled signal in quick scanning
Sampling instant, during step-scan using preprocessor reduce the program interaction time, improve on the whole lattice gauge scanning
Speed.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the step-scan timing diagram of vector network analyzer;
Fig. 2 is the quick scanning sequence figure of vector network analyzer;
Fig. 3 be the embodiment of the present invention one vector network analyzer in intelligent scanning measuring method flow chart;
Fig. 4 be the embodiment of the present invention two vector network analyzer in intelligent scanning measuring method flow chart.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
Vector network analyzer user especially production line user requires very high, conventional vector Network Analyzer to measuring speed
Scan process mode be properly termed as point by point scanning method:The frequency and power of each scanning element are set, lock phase fixed ampllitude is waited, enables
Data processing, the original width phase information of passback;Some vector network analyzers also support fast scanning (also referred to as analog scanning
Method):Set radio frequency source to originate, terminate and step frequency amount, start source frequency sweep and data treatment progress, return original width and believe
Breath.Step-scan needs substantial amounts of wait and interaction time, thus sweep speed is slow but precision is higher, quick scan mode without
Every spot scan frequency and delay stand-by period need to be set, so processing speed is fast but precision is relatively low.The present invention utilizes high-performance
The fast signal disposal ability of processor, proposes a kind of quick scanning survey method of intelligence, when setting frequency or frequency sweep in source
Start detection pretreatment, if detection result meets specified tolerance value or reaches delay time, start normal detection, processing knot
Fruit is shown on screen.This mode can avoid a large amount of delay times that frequently interaction is produced between different CPU as far as possible,
Quick measuring speed can be obtained can reach higher measurement accuracy again.
Embodiment one
Fig. 3 be the embodiment of the present invention one a kind of vector network analyzer in intelligent scanning measuring method flow chart, such as
Shown in figure, including:
Step 301, judge whether step-by-step counting and intermediate-frequency bandwidth meet preparatory condition;
Preferably:
The preparatory condition is:Intermediate-frequency bandwidth<1k and step-by-step counting<1.
If so, performing step 302;If it is not, performing step 303;
Step 302, step-scan is carried out;
Wherein, the step-scan determines the data acquisition moment using preprocessor.
Step 303, quickly scanned;
Wherein, the quick scanning determines the data acquisition moment using data processing synchronizing clock signals.
Optionally, in the step-scan, the data acquisition moment is determined using peak detection method.
It is preferred that, in the quick scanning, meet following condition:
Data processing synchronizing cycle=frequency step/frequency sweep reference clock × sampling clock;
Data processing synchronizing relay=data processing synchronizing cycle-data processing sampling time;
Fractional frequency division plate stepping=frequency step/(per spot scan time × frequency sweep reference clock).
It is preferred that:
Step-by-step counting=frequency step/the intermediate-frequency bandwidth;
Wherein, the frequency step=frequency span/number of scan points;
Wherein, the frequency span=termination frequency-initial frequency;
The termination frequency and initial frequency are pre-set by user.
In the above-described embodiments, it is necessary to which explanation, can handle synchronizing signal using timer mode alternate data, this
The mode of kind requires that precision of timer is high, and the response of Interruption is real-time;High speed date transfer bus can be utilized
To reduce the data interaction time.
The advantage of above-described embodiment is obtained when being quick scanning using sampled signal with the data processing synchronizing signal of frequency
Accurate sampling instant, reduces the program interaction time using preprocessor during step-scan, lattice gauge is improved on the whole
Sweep speed.
Embodiment two
As shown in figure 4, being the flow chart of intelligent scanning measuring method in the vector network analyzer of the present embodiment two;As schemed
Shown, the intelligent scanning process of the present embodiment is as follows:
1. the termination frequency and initial frequency that are set according to user calculate frequency span=termination frequency-initial frequency, frequency
Rate stepping=frequency span/number of scan points;Step-by-step counting=frequency step/intermediate-frequency bandwidth.
If 2. Current Scan intermediate-frequency bandwidth<1000Hz and step-by-step counting<1, then scan type is step-scan, otherwise
Setting scan type is quick scan type.
3. as shown in Figure 1 and Figure 4, during step-scan, if current scan point is i points, then current frequency is i × frequency step
+ frequency initial value, current frequency is set onto fractional frequency division plate, starts sampling preprocessor, and preprocessor passes through peak
It is worth whether the detection signal amplitude shake of detection method is less than the tolerance line of definition (such as:Less than 0.001dB), if less than tolerance or
Pretreatment time exceedes the delay t that system is defined0Time, then start systematic sampling filter (t in Fig. 1pTime).
4. as shown in Figure 2 and Figure 4, quickly scan, calculate first per spot scan time=total scanning time/scanning element
Number, calculates data processing synchronizing cycle=frequency step/frequency sweep reference clock × sampling clock, point of data processing synchronizing signal
Resolution is equal with sampling clock resolution ratio, data processing synchronizing relay=synchronizing cycle-data processing sampling time;Calculate decimal
Plate stepping=frequency step/(per spot scan time × frequency sweep reference clock) is divided, initiation culture scanning, enable data processing are same
Walk the d that is delayed in clock and data processor, such as Fig. 2tAfterwards in stMoment starts data processing.
5. result is stored in RAM, main frame is waited to read.Whole scanning elements terminate Current Scan program after being disposed.
In the above-described embodiments, it is necessary to which explanation, can handle synchronizing signal using timer mode alternate data, this
The mode of kind requires that precision of timer is high, and the response of Interruption is real-time;High speed date transfer bus can be utilized
To reduce the data interaction time.
The advantage of above-described embodiment is obtained when being quick scanning using sampled signal with the data processing synchronizing signal of frequency
Accurate sampling instant, reduces the program interaction time using preprocessor during step-scan, lattice gauge is improved on the whole
Sweep speed.
Those skilled in the art will also be appreciated that the various illustrative components, blocks that the embodiment of the present invention is listed
(illustrative logical block), unit, and step can be by the knots of electronic hardware, computer software, or both
Conjunction is realized.To clearly show that the replaceability (interchangeability) of hardware and software, above-mentioned various explanations
Property part (illustrative components), unit and step universally describe their function.Such work(
Can be that the design requirement depending on specific application and whole system is realized by hardware or software.Those skilled in the art
For every kind of specific application various methods can be used to realize described function, but this realization is understood not to
The scope protected beyond the embodiment of the present invention.
Above-described embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect
Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention
Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc. all should be included
Within protection scope of the present invention.