Radio frequency scanning method of spectrum analyzer and spectrum analyzer

文档序号:613579 发布日期:2021-05-07 浏览:2次 中文

阅读说明:本技术 频谱分析仪的射频扫描方法和频谱分析仪 (Radio frequency scanning method of spectrum analyzer and spectrum analyzer ) 是由 罗勇 刘山 罗森 于 2021-02-04 设计创作,主要内容包括:一种频谱分析仪的射频扫描方法及频谱分析仪,所述的射频扫描方法将射频扫描过程拆解为逻辑运算步骤和射频扫描步骤,逻辑运算步骤将利用预先构建的扫描指令集,将获取的扫描配置和特定条件通过逻辑计算转换为指令流,执行步骤对指令流进行逐条执行,由于逻辑运算步骤只进行逻辑计算,可一次性转换得到射频扫描所需的所有指令,使得扫描逻辑变成一个静态的运算,对于开发者来说,实现、修改和调试都非常简单,射频扫描步骤只负责对指令进行解析执行,无需暂停和参与复杂参数计算,使得指令执行速度更快,提高了扫描过程的通用性,易于方案扩展,同样降低了扫描过程的开发难度,提升了频谱分析仪的开发效率,降低维护和调试的成本。(A radio frequency scanning method of a spectrum analyzer and the spectrum analyzer, the radio frequency scanning method disassembles the radio frequency scanning process into a logic operation step and a radio frequency scanning step, the logic operation step uses a scanning instruction set which is constructed in advance, the obtained scanning configuration and specific conditions are converted into an instruction stream through logic calculation, the execution step executes the instruction stream one by one, because the logic operation step only carries out the logic calculation, all instructions required by the radio frequency scanning can be obtained through one-time conversion, the scanning logic becomes a static operation, for developers, the realization, modification and debugging are very simple, the radio frequency scanning step only takes charge of analyzing and executing the instructions, does not need to pause and participate in complex parameter calculation, the instruction execution speed is faster, the universality of the scanning process is improved, the scheme is easy to expand, and the development difficulty of the scanning process is also reduced, the development efficiency of the spectrum analyzer is improved, and the maintenance and debugging cost is reduced.)

1. A method for radio frequency scanning of a spectrum analyzer, comprising:

a logic operation step; acquiring scanning configuration and specific conditions, wherein the specific conditions are dynamic hardware configuration requirements encountered in the process of completing radio frequency scanning; the dynamic hardware configuration requirements comprise stray avoidance, radio frequency scanning channel switching and matching gain;

converting the scanning configuration and the specific condition into an instruction stream by using a scanning instruction set which is constructed in advance, and writing the instruction stream into a cache region; the instruction stream includes a plurality of instructions; the scanning instruction set is obtained by abstracting all actions of operations required by all external equipment and self logic scheduling operations in the radio frequency scanning process into codes in advance;

and a radio frequency scanning step: reading the instructions from the cache region one by one, and executing the read instructions one by one until all the instructions in the cache region are executed.

2. The method of claim 1, wherein the scan instruction set includes, but is not limited to: a read/write instruction, an arithmetic instruction, a delay instruction and a cycle instruction;

the read/write instruction is used for executing read/write operation on external equipment;

the operation instruction is used for controlling external equipment to execute operation;

the delay instruction is used for controlling the external equipment to execute delay operation;

the loop instruction is used for executing loop operation on other instructions.

3. The method of claim 1, wherein reading instructions from the cache region on a per-entry basis, further comprises:

after the instruction stream is completely written into the cache region, the instructions are read from the cache region one by one to start radio frequency scanning.

4. A spectrum analyzer, comprising:

the gain adjusting module is used for adjusting the gain of the input signal of the spectrum analyzer;

at least one radio frequency scanning channel, wherein the radio frequency scanning channel is used for radio frequency scanning, and each radio frequency scanning channel corresponds to different radio frequency scanning frequency bands;

the radio frequency scanning channel selection switch is used for controlling the switching of the radio frequency scanning channel;

the filtering module is used for filtering the radio frequency signal output by the radio frequency scanning channel;

the analog-digital sampling module is used for performing analog-digital conversion on the filtered radio frequency signal and outputting a digital radio frequency signal;

the digital signal processing module is used for carrying out signal processing on the digital radio frequency signal and outputting a frequency domain waveform;

the display module is used for displaying the frequency domain waveform;

the first controller comprises a logic operation unit and a radio frequency scanning unit;

the logic operation unit is used for acquiring scanning configuration and specific conditions, wherein the specific conditions are dynamic hardware configuration requirements met in the radio frequency scanning process; the dynamic hardware configuration requirements comprise stray avoidance, radio frequency scanning channel switching and matching gain; converting the scanning configuration and the specific condition into an instruction stream by using a scanning instruction set which is constructed in advance, and writing the instruction stream into a cache region; the instruction stream includes a plurality of instructions; the scanning instruction set is obtained by abstracting all actions of operations required by all external equipment and self logic scheduling operations in the radio frequency scanning process into codes in advance;

the radio frequency scanning unit is used for reading the instructions from the cache region one by one and executing the read instructions one by one until all the instructions in the cache region are executed.

5. A spectrum analyzer, comprising:

the gain adjusting module is used for adjusting the gain of the input signal of the spectrum analyzer;

at least one radio frequency scanning channel, wherein the radio frequency scanning channel is used for radio frequency scanning, and each radio frequency scanning channel corresponds to different radio frequency scanning frequency bands;

the radio frequency scanning channel selection switch is used for controlling the switching of the radio frequency scanning channel;

the filtering module is used for filtering the radio frequency signal output by the radio frequency scanning channel;

the analog-digital sampling module is used for performing analog-digital conversion on the filtered radio frequency signal and outputting a digital radio frequency signal;

the digital signal processing module is used for carrying out signal processing on the digital radio frequency signal and outputting a frequency domain waveform;

the display module is used for displaying the frequency domain waveform;

the first controller is used for acquiring scanning configuration and specific conditions, wherein the specific conditions are dynamic hardware configuration requirements encountered in the radio frequency scanning process; the dynamic hardware configuration requirements comprise stray avoidance, radio frequency scanning channel switching and matching gain; converting the scanning configuration and the specific condition into an instruction stream by using a scanning instruction set which is constructed in advance, and writing the instruction stream into a cache region; the instruction stream includes a plurality of instructions; the scanning instruction set is obtained by abstracting all actions of operations required by all external equipment and self logic scheduling operations in the radio frequency scanning process into codes in advance;

and the second controller is used for reading the instructions one by one from the cache region and executing the read instructions one by one until all the instructions in the cache region are executed.

6. The spectrum analyzer of claim 4 or 5, wherein the set of scan instructions includes, but is not limited to: a read/write instruction, an arithmetic instruction, a delay instruction and a cycle instruction;

the read/write instruction is used for executing read/write operation on external equipment;

the operation instruction is used for controlling external equipment to execute operation;

the delay instruction is used for controlling the external equipment to execute delay operation;

the loop instruction is used for executing loop operation on other instructions.

Technical Field

The invention relates to the technical field of spectrum analyzers, in particular to a radio frequency scanning method of a spectrum analyzer and a spectrum analyzer.

Background

In modern society, wireless communication is closely related to the life of people, and various radio frequency products emerge endlessly. Spectrum analyzers are then becoming increasingly indispensable as an enabler for frequency domain analysis, whether product development or signal probing.

The spectrum analyzer is an instrument for researching the spectrum characteristics of electric signals, is used for measuring signal parameters such as signal distortion degree, modulation degree, spectrum purity, frequency stability, intermodulation distortion and the like, can be used for measuring certain parameters of circuit systems such as amplifiers, filters and the like, and is a multipurpose electronic measuring instrument. Spectrum analyzers are also known as frequency domain oscilloscopes, tracking oscilloscopes, analysis oscilloscopes, harmonic analyzers, frequency characteristic analyzers, or fourier analyzers, among others.

For spectral analysis, especially for frequency domain analysis with large dynamic range, radio frequency scanning is a necessary process, and is also a necessary process for spectrum analyzer measurement. However, in the existing rf scanning process, specific conditions (such as stray avoidance requirements) need to be continuously queried, so that the rf scanning needs to be continuously suspended, and the rf scanning needs to be resumed after the configuration of part of external devices in the spectrum analyzer is calculated and modified. Particularly, for modern high-band and wide-band spectrum analyzers, the logic calculation is more complex, and more tentative frequencies are needed, so that the radio frequency scanning efficiency of the spectrum analyzer is low, and the key point is that the development difficulty is high, and the maintenance and the expansion are not easy.

Disclosure of Invention

The invention mainly solves the technical problem of improving the development and operation efficiency of the spectrum analyzer and reducing the maintenance and debugging cost.

According to a first aspect, a radio frequency scanning method of a spectrum analyzer in an embodiment comprises:

a logic operation step; acquiring scanning configuration and specific conditions, wherein the specific conditions are dynamic hardware configuration requirements encountered in the process of completing radio frequency scanning; the dynamic hardware configuration requirements comprise stray avoidance, radio frequency scanning channel switching and matching gain;

converting the scanning configuration and the specific condition into an instruction stream by using a scanning instruction set which is constructed in advance, and writing the instruction stream into a cache region; the instruction stream includes a plurality of instructions; the scanning instruction set is obtained by abstracting all actions of operations required by all external equipment and self logic scheduling operations in the radio frequency scanning process into codes in advance;

and a radio frequency scanning step: reading the instructions from the cache region one by one, and executing the read instructions one by one until all the instructions in the cache region are executed.

According to a second aspect, there is provided in an embodiment a spectrum analyser comprising:

the gain adjusting module is used for adjusting the gain of the input signal of the spectrum analyzer;

at least one radio frequency scanning channel, wherein the radio frequency scanning channel is used for radio frequency scanning, and each radio frequency scanning channel corresponds to different radio frequency scanning frequency bands;

the radio frequency scanning channel selection switch is used for controlling the switching of the radio frequency scanning channel;

the filtering module is used for filtering the radio frequency signal output by the radio frequency scanning channel;

the analog-digital sampling module is used for performing analog-digital conversion on the filtered radio frequency signal and outputting a digital radio frequency signal;

the digital signal processing module is used for carrying out signal processing on the digital radio frequency signal and outputting a frequency domain waveform;

the display module is used for displaying the frequency domain waveform;

the first controller comprises a logic operation unit and a radio frequency scanning unit;

the logic operation unit is used for acquiring scanning configuration and specific conditions, wherein the specific conditions are dynamic hardware configuration requirements met in the radio frequency scanning process; the dynamic hardware configuration requirements comprise stray avoidance, radio frequency scanning channel switching and matching gain; converting the scanning configuration and the specific condition into an instruction stream by using a scanning instruction set which is constructed in advance, and writing the instruction stream into a cache region; the instruction stream includes a plurality of instructions; the scanning instruction set is obtained by abstracting all actions of operations required by all external equipment and self logic scheduling operations in the radio frequency scanning process into codes in advance;

the radio frequency scanning unit is used for reading the instructions from the cache region one by one and executing the read instructions one by one until all the instructions in the cache region are executed.

According to a third aspect, there is provided in one embodiment a spectrum analyser comprising:

the gain adjusting module is used for adjusting the gain of the input signal of the spectrum analyzer;

at least one radio frequency scanning channel, wherein the radio frequency scanning channel is used for radio frequency scanning, and each radio frequency scanning channel corresponds to different radio frequency scanning frequency bands;

the radio frequency scanning channel selection switch is used for controlling the switching of the radio frequency scanning channel;

the filtering module is used for filtering the radio frequency signal output by the radio frequency scanning channel;

the analog-digital sampling module is used for performing analog-digital conversion on the filtered radio frequency signal and outputting a digital radio frequency signal;

the digital signal processing module is used for carrying out signal processing on the digital radio frequency signal and outputting a frequency domain waveform;

the display module is used for displaying the frequency domain waveform;

the first controller is used for acquiring scanning configuration and specific conditions, wherein the specific conditions are dynamic hardware configuration requirements encountered in the radio frequency scanning process; the dynamic hardware configuration requirements comprise stray avoidance, radio frequency scanning channel switching and matching gain; converting the scanning configuration and the specific condition into an instruction stream by using a scanning instruction set which is constructed in advance, and writing the instruction stream into a cache region; the instruction stream includes a plurality of instructions; the scanning instruction set is obtained by abstracting all actions of operations required by all external equipment and self logic scheduling operations in the radio frequency scanning process into codes in advance;

and the second controller is used for reading the instructions one by one from the cache region and executing the read instructions one by one until all the instructions in the cache region are executed.

According to the radio frequency scanning method of the spectrum analyzer and the spectrum analyzer, a radio frequency scanning process is divided into a logic operation step and a radio frequency scanning step, the logic operation step utilizes a scanning instruction set which is constructed in advance to convert the obtained scanning configuration and specific conditions into an instruction stream through logic calculation, and the execution step executes instructions in the instruction stream one by one.

Drawings

FIG. 1 is a schematic diagram of a spectrum analyzer;

FIG. 2 is a schematic structural diagram of a radio frequency scanning channel;

FIG. 3 is a schematic diagram of a conventional RF scanning method;

FIG. 4 is a schematic flow chart of a radio frequency scanning method of a spectrum analyzer according to an embodiment of the present invention;

FIG. 5 is a schematic flow chart of a serial RF scanning mode;

FIG. 6 is a schematic flow chart of a parallel RF scanning mode;

FIG. 7 is a flow diagram of a signal measurement method of a spectrum analyzer according to an embodiment;

FIG. 8 is a flow chart of a signal measurement method of a spectrum analyzer according to another embodiment;

fig. 9 is a flowchart of a signal measurement method of a spectrum analyzer according to still another embodiment.

Detailed Description

The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. Wherein like elements in different embodiments are numbered with like associated elements. In the following description, numerous details are set forth in order to provide a better understanding of the present application. However, those skilled in the art will readily recognize that some of the features may be omitted or replaced with other elements, materials, methods in different instances. In some instances, certain operations related to the present application have not been shown or described in detail in order to avoid obscuring the core of the present application from excessive description, and it is not necessary for those skilled in the art to describe these operations in detail, so that they may be fully understood from the description in the specification and the general knowledge in the art.

Furthermore, the features, operations, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. Also, the various steps or actions in the method descriptions may be transposed or transposed in order, as will be apparent to one of ordinary skill in the art. Thus, the various sequences in the specification and drawings are for the purpose of describing certain embodiments only and are not intended to imply a required sequence unless otherwise indicated where such sequence must be followed.

The numbering of the components as such, e.g., "first", "second", etc., is used herein only to distinguish the objects as described, and does not have any sequential or technical meaning. The term "connected" and "coupled" when used in this application, unless otherwise indicated, includes both direct and indirect connections (couplings).

Referring to fig. 1, fig. 1 is a schematic diagram of a spectrum analyzer, which includes: a gain adjustment module 10, at least one radio frequency scanning channel (RF channel) 20, a radio frequency channel selection switch (RF channel selection switch) 30, a filtering module 40, an analog-to-digital sampling module (ADC sampling module) 50, a digital signal processing module 60, and a display module 70, wherein the gain adjustment module 10 is configured to adjust a gain of an input signal RFIN; the radio frequency scanning channels 20 are used for radio frequency scanning, and each radio frequency scanning channel corresponds to a different radio frequency scanning frequency band; the radio frequency scanning channel selection switch 30 is used for controlling the switching of the radio frequency scanning channels; the filtering module 40 is configured to filter the radio frequency signal output by the radio frequency scanning channel; the analog-to-digital sampling module 50 is configured to perform analog-to-digital conversion on the filtered radio frequency signal and output a digital radio frequency signal; the digital signal processing module 60 is configured to perform signal processing on the digital radio frequency signal and output a frequency domain waveform; the display module is used for displaying the frequency domain waveform.

Referring to fig. 2, fig. 2 is a schematic structural diagram of a radio frequency scanning channel, where the radio frequency scanning channel includes N frequency mixing modules, each frequency mixing module includes a frequency mixer, a local oscillator signal generator, a gain adjuster, and a filter, and the process of performing radio frequency scanning on an input signal IN is implemented by switching the frequency of the local oscillator signal generator 1 IN the first frequency mixing module and gating the frequency component of the input signal IN to reach a frequency point of a first intermediate frequency by using a frequency conversion principle of a frequency domain. However, in actual spectrum analyzer measurement, complicated conditions such as multi-stage frequency conversion, multiple radio frequency scanning channels, and multi-stage filtering are generally involved, and radio frequency scanning work is performed by combining and controlling a plurality of external devices such as phase-locked loops, radio frequency switches, filters, amplifiers, attenuators, and the like to present frequency domain waveforms to users.

In the actual radio frequency scanning process, due to image rejection, signal leakage and other reasons, a radio frequency link may generate more or less spurs, when these spurs are avoided, and when switching among a plurality of radio frequency scanning channels, it is necessary to suspend the frequency switching of the local oscillator signal generator 1, recalculate and configure the external devices in the radio frequency scanning channels, such as the local oscillator frequencies of the local oscillator generators 2 and 3, the gain regulators and the like, and after the recalculation and configuration are completed, trigger the local oscillator signal generator 1 to continue to switch the frequencies for scanning. Referring to fig. 3, fig. 3 is a schematic diagram of a conventional rf scanning method, and it can be seen that after a configuration of rf scanning is calculated once during rf scanning, N external devices are configured in sequence, and after a delay time is reached and a hardware environment is stabilized, the local oscillator signal generator 1 is triggered to switch frequency for scanning, after a scanning is completed, the local oscillator signal generator 1 needs to be suspended to switch frequency, and a specific condition is searched again, where the specific condition is used for meeting a requirement of avoiding strays and switching rf scanning channels, and the above process is repeated until the scanning is completed. In other words, the existing rf scanning method needs to perform logical recalculation of configuration parameters of the external device while performing scanning, and both the logical recalculation of the configuration parameters and the logical recalculation of the external device need to stop scanning, which results in low rf scanning efficiency of the spectrum analyzer.

In the embodiment of the invention, a developer abstracts all actions of operations required by all external equipment and self logic scheduling operations into codes in advance in the radio frequency scanning process of a spectrum analyzer to obtain a scanning instruction set; then based on the hardware scheme of the spectrum analyzer, a developer inputs all specific conditions corresponding to the hardware scheme, or a scan control state machine queries a specific condition table pre-stored in a memory to obtain all specific conditions meeting the spectrum analyzer, in addition, a scan configuration is obtained according to the measurement configuration of a user on the spectrum analyzer, after the scan control state machine obtains all specific conditions and the scan configuration, a scan instruction set is utilized to convert the specific conditions and the scan configuration into instruction streams, after the instruction streams are all written into a cache region, the scan control state machine reads a plurality of instructions in the instruction streams from the cache region one by one, and executes the read instructions one by one until all instructions in the cache region are executed. In the embodiment of the invention, the logic operation and the scanning can be executed in series or in parallel, in other words, the logic operation and the radio frequency scanning are separated, before the radio frequency scanning, the instruction stream is obtained through the logic operation, and after the radio frequency scanning is started, the controller only needs to read and execute the instructions one by one without pause, and the method is simple and easy to implement. In addition, the logic operation and the radio frequency scanning can be performed in parallel, so that the radio frequency scanning time is saved, and the radio frequency scanning efficiency is improved.

Referring to fig. 4, fig. 4 is a schematic flowchart of an rf scanning method of a spectrum analyzer according to an embodiment of the present invention, where the rf scanning method includes:

step 101, acquiring a scanning configuration and a specific condition, wherein the specific condition is a hardware configuration requirement for completing a special dynamic action encountered in a radio frequency scanning process. The special dynamic actions in this embodiment include stray avoidance, radio frequency scan channel switching, and matching gain.

In this embodiment, the scanning configuration is configured to be changed according to parameters evolved by a user from a measurement configuration of the spectrum analyzer, the scanning configuration is changed for different measurement configurations of the spectrum analyzer by the user, the specific condition is not changed with the difference of the measurement configuration by the user, the specific condition is only related to a hardware scheme and related indexes of the spectrum analyzer, the specific condition is changed only when the hardware scheme of the spectrum analyzer is changed, when the specific condition is changed, a developer can dynamically write the specific condition into a storage space, and at this time, neither a scanning state machine nor a logic operation part needs to be modified.

In one embodiment, the specific condition is stored in a preset storage area, the controller obtains the specific condition from the preset storage area before the radio frequency scanning, and obtains the scanning configuration according to the measurement configuration of the user on the spectrum analyzer.

Step 102, converting the scanning configuration and the specific condition into an instruction stream by using a scanning instruction set which is constructed in advance, and writing the instruction stream into a cache region.

Wherein the instruction stream comprises a plurality of instructions; the scan instruction set is obtained by abstracting all operations required by all external devices in the radio frequency scanning process and all actions of the self logic scheduling operation into codes in advance.

In this embodiment, the scan instruction set abstracts all actions of operations required by all external devices and self logic scheduling operations in the rf scanning process into code for the developer before step 101. The instructions included in the scan instruction set have completeness and orthogonality.

In one embodiment, the format of the instructions in the scan instruction set is operation + object + operand, and the scan instruction set includes, but is not limited to: a read/write instruction, an arithmetic instruction, a delay control instruction and a cycle control instruction; the read/write command is used for controlling the external equipment to execute read/write operation; the operation instruction is used for controlling external equipment to execute operation; the delay instruction is used for controlling the external equipment to execute delay operation; the loop instruction is used to perform a loop operation on the other instructions.

The object in this embodiment refers to a target corresponding to an operation, and the operand refers to a content of a specific implementation of the operation, for example, data 1000 is written into a register 1 of a phase-locked loop 1, the operation is a write instruction, the object is the phase-locked loop 1, and the two operands 1 and 1000 represent the register 1 and the write data, respectively.

Step 103, reading the instructions from the cache region one by one, and executing the read instructions one by one until all the instructions in the cache region are executed.

In this embodiment, steps 101 and 102 are logical operation steps, and step 103 is a radio frequency scanning step, and in an actual application process, the logical operation step and the radio frequency scanning step may be executed in the same controller, or may be executed in different controllers, and in addition, the logical operation step and the radio frequency scanning step may be executed in series in the same controller or in different controllers, that is, after the logical operation step, the radio frequency scanning step is executed; the logic operation step and the radio frequency scanning step can also be executed in parallel.

Referring to fig. 5, fig. 5 is a schematic flow chart of a serial rf scanning method, wherein the logic operation step includes obtaining a scanning configuration and a specific condition, converting the specific condition into an instruction stream, and writing the instruction stream into a cache region; the radio frequency scanning step comprises reading instructions one by one from the cache region and executing the read instructions, and when all the instructions in the cache region are read and executed, the scanning is completed.

In one embodiment, the logic operation step and the radio frequency scanning step are both executed in a first controller, the first controller comprises a logic operation unit and a radio frequency scanning unit, and the logic operation unit is used for acquiring scanning configuration and specific conditions; the logic operation unit is also used for converting the scanning configuration and the specific condition into an instruction stream by utilizing a scanning instruction set which is constructed in advance, and writing the instruction stream into a cache region; the radio frequency scanning unit is used for reading the instructions from the cache region one by one and executing the read instructions one by one until all the instructions in the cache region are executed.

In this embodiment, after the logic operation unit writes the instruction stream into the cache region, the rf scanning unit starts rf scanning, that is, reads the instructions from the cache region one by one. The cache region in this embodiment may be an internal cache region of the first controller.

In another embodiment, the logic operation step is performed in a first controller, the radio frequency scanning step is performed in a second controller, and the first controller is used for acquiring the scanning configuration and the specific condition; the first controller is further configured to convert the scan configuration and the specific condition into an instruction stream using a pre-constructed scan instruction set, and write the instruction stream into the cache area.

The second controller is used for reading the instructions in the instruction stream from the cache region one by one and executing the read instructions one by one until all the instructions in the cache region are executed.

In this embodiment, after the first controller writes the instruction stream into the cache region, the rf scanning unit starts rf scanning, that is, reads instructions from the cache region one by one. The cache region in this embodiment may be an internal cache region of the second controller.

Referring to fig. 6, fig. 6 is a flow chart illustrating a parallel rf scanning method, wherein the logic operation step includes obtaining a scan configuration and a specific condition, converting the scan configuration and the specific condition into an instruction stream by using a scan instruction set, and writing the instruction stream into a cache region; the radio frequency scanning step comprises the steps of reading an instruction in an instruction stream from a cache region, judging whether the currently read instruction is an empty instruction or a termination instruction, if not, executing the currently read instruction, returning to read the next instruction from the cache region, and if the currently read instruction is the empty instruction or the termination instruction, finishing scanning. Unlike the embodiment shown in fig. 5, the logic operation step and the rf scan step in this embodiment may be performed simultaneously, that is, during the process of converting the scan configuration and the specific condition into an instruction, the instruction may be read from the buffer and executed simultaneously.

In one embodiment, the logic operation step and the rf scanning step may be performed in parallel by the first controller; in another embodiment, the logic operation step can be performed by the first controller, and the rf scanning step can be performed by the second controller.

In this embodiment, the first controller may select a CPU or an MCU with stronger universality, and the second controller may select a dedicated chip with good parallel performance and stable processing capability, such as a programmable logic device (FPGA).

The signal measurement of the spectrum analyzer may include a plurality of radio frequency scans, where it should be noted that one radio frequency scan refers to a process of reconfiguring an external device and scanning a local oscillator frequency after suspension, please refer to fig. 7, and fig. 7 is a flowchart of a signal measurement method of the spectrum analyzer according to an embodiment, where the measurement method includes:

in step 201, the first controller sends an rf scanning stop command to the second controller, so that the second controller stops the current operation. At this time, no matter what operation the second controller is performing, the current operation must be stopped in immediate response.

Step 202, the first controller generates multiple instructions corresponding to N radio frequency scans (sweep 1, sweep2, …, sweep N) by using a scan instruction set which is constructed in advance and the obtained sweep configuration and specific conditions, and stores the multiple instructions in corresponding cache regions in a memory.

It should be noted that, when generating the hardware initialization instruction for each rf scan, the first controller may ignore the external device that does not need to be configured according to the current operating state of the external device (previous configuration), and only send an instruction that needs to change the operating state of the external device. In addition, under the condition of not influencing logic, the external equipment with more configuration instructions and long configuration time can be configured in parallel with other external equipment with short configuration time, and the external equipment configuration instructions with stable delay time can be sent first (sent and executed first), so that the time consumed by configuring the external equipment is saved from various angles. The embodiment of the invention has the advantage of processing flexibility, only the instruction sequence needs to be modified, and the code does not need to be modified or cannot be modified due to the code coupling degree.

In step 203, the first controller sets a first radio frequency scan (sweep 1) as a current scan.

In step 204, the first controller sends a start scanning command to the second controller.

In step 205, the second controller queries the instruction corresponding to the current rf scan from the memory.

Step 206, configuring the plurality of external devices according to the instruction sequence or in parallel.

And step 207, performing a delay operation on the second controller to enable the external device to enter a stable environment.

And step 208, circularly executing the corresponding operation instruction to the external equipment.

Step 209, end the current rf scan.

Step 210, judging whether the current scanning is the Nth radio frequency scanning (the last radio frequency scanning), if so, ending the measurement; if not, go to step 211.

Step 211, setting the next scan corresponding to the current rf scan as the current rf scan, and returning to step 205.

Referring to fig. 8, fig. 8 is a flowchart of a signal measurement method of a spectrum analyzer according to another embodiment, where the measurement method includes:

step 301, the first controller sends an rf scanning stop command to the second controller, so that the second controller stops the current operation. At this time, no matter what operation the second controller is performing, the current operation must be stopped in immediate response.

Step 302, the first controller generates an instruction corresponding to the ith radio frequency scanning sweet pi by using the scanning instruction set according to the obtained scanning configuration and the specific condition, wherein i =1, 2, …, N, an initial value of i is 1, and stores the instruction in a corresponding cache region mem _ sector i in the memory.

Step 303, the first controller sends a radio frequency scanning starting instruction to the second controller, and the ith radio frequency scanning sweet is taken as the current radio frequency scanning.

In step 304, the second controller queries the memory for an instruction corresponding to the current rf scan.

Step 305, configuring a plurality of external devices according to the instruction sequence or in parallel.

And step 306, performing a delay operation on the second controller to enable the external device to enter a stable environment.

And step 307, circularly executing the corresponding operation instruction to the external equipment.

Step 308, ending the current rf scan.

Step 309, judging whether the current radio frequency scanning is the nth scanning (the last scanning), if so, ending the measurement; if not, go to step 310.

Step 310, i = i +1, return to step 302.

Compared with the embodiment shown in fig. 7, this embodiment is suitable for the case where the number of rf scans in one measurement is especially large (the amount of data written is large), the dispersion is especially high, or the bus speed between the first controller and the second controller is not high enough. When the first controller calculates the parameter information input by the user and generates the instruction, the second controller controls the radio frequency scanning to start, so that a large amount of time for calculating and sending the instruction is saved. Since the time required for one scan is in milliseconds or even microsecond level in many cases, the embodiment can significantly improve the response speed of the radio frequency scan of the spectrum analyzer compared with the embodiment shown in fig. 7.

In this embodiment, the number M of the cache areas in the memory is greater than the total number N of the radio frequency scans, so that the first controller only needs to store the instructions corresponding to each radio frequency scan to the cache areas in sequence once.

Referring to fig. 9, if the number M of buffer areas in the memory is less than the total number N of scanning times, fig. 9 is a flowchart illustrating a signal measurement method of a spectrum analyzer according to another embodiment, where the method can recycle the buffer areas in the memory, and the measurement method includes:

in step 401, the first controller sends a scan stopping command to the second controller to stop the current operation of the second controller. At this time, no matter what operation the second controller is performing, the current operation must be stopped in immediate response.

In step 402, it is determined whether the ith cache region mem _ sector i in the memory is writable, and if writable, step 403 is executed. It should be noted that, for the first rf scan during one measurement, all the buffer areas in the memory are set as writable directly

Step 403, the first controller generates an instruction, i =1, 2, …, N, corresponding to the ith radio frequency scanning sweet spot according to a specific condition, where an initial value of i is 1, and stores the instruction in a corresponding cache region mem _ sector i in the memory.

And step 404, the first controller sends a radio frequency scanning starting instruction to the second controller, and the ith radio frequency scanning sweet is taken as the current scanning.

In step 405, the second controller queries the memory for an instruction corresponding to the current rf scan.

At step 406, a plurality of external devices are configured according to the instruction sequence or in parallel.

In step 407, a delay operation is performed on the second controller to enable the external device to enter a stable environment.

And step 408, circularly executing the corresponding operation instruction to the external equipment.

Step 409, ending the current radio frequency scanning.

In step 410, the cache area mem _ sector i is set to be writable.

Step 411, determining whether the current scan is the nth scan (last scan), if yes, ending the measurement; if not, go to step 412.

Step 412, i = i +1, and returns to step 402.

In this embodiment, after the instruction corresponding to the current scanning is written into the current cache region mem _ sector i by the first controller, the current cache region mem _ sector i is marked as written, the second controller reads the instruction from the current cache region mem _ sector i, and after the current scanning is finished, the current cache region mem _ sector i is marked as writable by the second controller, so that the instruction for the subsequent scanning can be written, and thus, the plurality of cache regions in the memory are recycled, and the measurement can be completed when the number M of the cache regions in the memory is smaller than the total scanning number N.

The present invention has been described in terms of specific examples, which are provided to aid understanding of the invention and are not intended to be limiting. For a person skilled in the art to which the invention pertains, several simple deductions, modifications or substitutions may be made according to the idea of the invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种特高压换流站选相合闸装置最大合闸相角测量方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!