A method and device for measuring embedded local oscillator frequency

Through software signal tracking and phase lock operation, combined with vector network analyzer, semaphore control thread waiting and execution is used to measure and synchronize the embedded local oscillator frequency, which solves the intermediate frequency caused by different time bases in embedded local oscillator frequency measurement. The deviation problem achieves accurate frequency measurement.

CN118641834BActive Publication Date: 2024-11-12成都玖锦科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411090122.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-12
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

It is difficult for the prior art to directly measure the embedded local oscillator frequency built into the mixer, resulting in the problem of mid-frequency deviation caused by different measurement time bases.

Method used

Through software signal tracking and phase-locking operation, combined with vector network analyzer, the measurement and synchronization of embedded local oscillator frequency is realized, and the semaphore control thread is used to wait and execute, and rough scan and accurate scan are performed to update the local oscillator frequency until it meets the user's Set range.

Benefits of technology

It reduces the intermediate frequency deviation caused by different time bases, accurately measures the embedded local oscillator frequency, so that it is the same as the set frequency of the measurement system, and improves the accuracy of measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118641834B_ABST
    Figure CN118641834B_ABST
Patent Text Reader

Abstract

The present application discloses an embedded local oscillator frequency measurement method and device, which relates to the field of local oscillator frequency measurement. The present application includes: tracking the execution stimulus from the data processing thread to the embedded local oscillator thread through software signals for the embedded local oscillator of the mixer to be measured, cooperating with the embedded local oscillator thread to perform phase-locking operation to keep the data processing thread and the embedded local oscillator thread synchronized, obtaining the embedded local oscillator frequency, and then measuring the mixing characteristics through a vector network analyzer. The real frequency of the embedded local oscillator is measured through software signal tracking and phase-locking operation, so that the set frequency of the measurement system is the same, reducing the intermediate frequency deviation caused by different time bases.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of local oscillator frequency measurement, and in particular to an embedded local oscillator frequency measurement method and device. Background Art

[0002] Vector network analyzers currently test the characteristics of commonly used mixers and frequency conversion devices. They usually have clear radio frequency (RF), intermediate frequency (IF) and local oscillator frequency (LO). The characteristics of these mixer devices can be measured through the scalar mixer measurement option and vector mixer option of the vector network analyzer. However, some mixers have built-in local oscillators, which cannot be measured directly. These measurements are usually summarized as "embedded local oscillator frequency measurement."

[0003] When measuring a mixer with an embedded local oscillator, if the time base of the embedded local oscillator is different from the time base of the network analyzer, the intermediate frequency obtained will also have a large deviation. In consideration of the amplitude and phase accuracy of the mixer, the actual frequency of the embedded local oscillator must be the same as the set frequency of the measurement system.

[0004] Therefore, in order to solve the embedded local oscillator test deviation problem, an embedded local oscillator frequency measurement method and device are urgently needed. Summary of the invention

[0005] The present application discloses an embedded local oscillator frequency measurement method and device, which solve the problems of the prior art.

[0006] In a first aspect, the present application provides an embedded local oscillator frequency measurement method, comprising:

[0007] The embedded local oscillator of the mixer to be tested is measured by tracking the execution stimulus from the data processing thread to the embedded local oscillator thread through software signals, cooperating with the embedded local oscillator thread to perform phase-locked operations to keep the data processing thread and the embedded local oscillator thread synchronized, obtaining the embedded local oscillator frequency, and then measuring the mixing characteristics through a vector network analyzer.

[0008] Furthermore, after multiple scans of the embedded local oscillator frequency, the local oscillator frequency is continuously updated until it meets the range requirements set by the user. The scan includes two modes: coarse scan and fine scan (called tuning state). The specific process is as follows:

[0009] Determine whether the current normal scan times CurrTurnSweep < the set value TuneEvery;

[0010] If yes, set the current tuning state to coarse scan, judge the detected tuning state = coarse scan, if yes, execute the coarse scan process; if no, judge the tuning state = fine scan, if yes, execute the fine scan process, if no, enter the normal scan process, that is, the characteristic measurement of the mixer;

[0011] Furthermore, the embedded local oscillator thread is specifically:

[0012] Control the semaphore reset of the embedded local oscillator thread;

[0013] Lock the instance of the local oscillator object (in software, the setting that contains the local oscillator measurement) (to prevent contention for thread resources);

[0014] Determine whether incentives need to be updated;

[0015] Manually trigger once after the incentive is issued;

[0016] The local oscillator object instance releases the lock;

[0017] The embedded local oscillator thread suspends and waits to determine whether the Set semaphore that allows the local oscillator thread to continue execution is tracked;

[0018] If it is tracked, the semaphore of the embedded local oscillator is reset; if it is not tracked, the local oscillator thread is suspended and waited.

[0019] Furthermore, the data processing thread is specifically:

[0020] Execute the measurement actions sequentially;

[0021] When the stimulus queue is not empty, the stimulus is issued cyclically, and then the channel data is read cyclically from the flip buffer (FlipBuffer) to determine whether the embedded local oscillator thread is turned on:

[0022] If the local oscillator thread is opened, determine whether the lock of the local oscillator object instance of the channel is released:

[0023] If released, data is processed according to different tuning states, and the Set semaphore of the local oscillator thread is sent, and the Set semaphore of the local oscillator thread allows the local oscillator thread to continue to execute; determine whether it is in the coarse scanning or precise scanning process, if so, the trace is not displayed, and the measurement action is executed in sequence, if not, the corresponding data and trace processing is continued;

[0024] If not released, the data processing thread is executed to enter a waiting state, and after the lock of the local oscillator object instance is released by the local oscillator thread, the determination channel is executed to determine whether the local oscillator instance lock is released.

[0025] If it is not open, continue to process the corresponding data and traces

[0026] Further, including: wherein the software signal tracking specifically includes:

[0027] When the local oscillator instance in the embedded local oscillator process releases the lock, the data processing thread determines whether the local oscillator instance lock of the channel tracked is released, and then processes the data according to different tuning states and sends the semaphore Set of the local oscillator thread;

[0028] In the embedded local oscillator process, determine whether the Set semaphore of the embedded local oscillator thread is tracked. If received, the semaphore of the embedded local oscillator is reset. Otherwise, the local oscillator thread is suspended to wait for the semaphore Set.

[0029] Furthermore, the rough scanning includes the following specific process:

[0030] Calculate the excitation of the coarse scan based on the selected intermediate frequency f0 and the scan bandwidth SweepSpan;

[0031] Send out stimulus, and the local oscillator thread control is manually triggered once;

[0032] The data processing thread obtains the measurement data Data of the B receiver, wherein the B receiver is a measurement receiver of a measurement port of the vector network analyzer;

[0033] Get the frequency value f1 corresponding to the maximum amplitude;

[0034] Calculate Δf1=f1-f0, update the frequency value of IF, resend the excitation, and switch the tuning state to precise scanning.

[0035] Furthermore, the precise scanning includes the following specific process:

[0036] Determine the number of iterations of accurate scanning < setting value:

[0037] If less than:

[0038] Determine whether this iteration is triggered for the first time.

[0039] If so, set the bottom logic FPGA to enter the standard amplitude measurement mode, wait for a certain period of time, set the FPGA to enter the phase measurement mode, set a flag that allows the local oscillator thread to manually trigger a second time, and wait for the data acquisition and the data processing thread to execute;

[0040] Process the measured value transmitted from the data processing thread, calculate the frequency offset Δf2 based on the measured value, and determine whether Δf2 is within the tolerance range. If so, the precise scan ends, the local oscillator offset is set to the current value, the number of iterations is set to 0, the excitation is updated to the normal scan, and the tuning state is switched to the normal scan; if not, the precise scan excitation is updated and the next iteration is performed, where tolerance is the preset threshold;

[0041] If it is greater, the switching tuning state to normal scanning is executed.

[0042] In a second aspect, the present application provides an embedded local oscillator frequency measurement device, which is used to implement an embedded local oscillator frequency measurement method as described in the first aspect, including: an embedded local oscillator mixer, a vector network analyzer and a reference mixer;

[0043] The reference mixer is connected to the radio frequency RF signal and one port of the vector network analyzer, and the intermediate frequency IF signal is output;

[0044] Two ends of the embedded local oscillator mixer are respectively connected to a port of a vector network analyzer to receive a radio frequency RF signal and output an intermediate frequency IF signal.

[0045] The present application provides an embedded local oscillator frequency measurement method and device, which measures the real frequency of the embedded local oscillator through software signal tracking and phase-locked operation, so that it is the same as the set frequency of the measurement system, reducing the intermediate frequency deviation caused by different time bases.

[0046] This application uses semaphores to control the embedded local oscillator thread to wait and continue execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The drawings described herein are used to provide a further understanding of the embodiments of the present application, constitute a part of the present application, and do not constitute a limitation on the embodiments of the present application. In the drawings:

[0048] Figure 1 A schematic diagram of a scanning process of a local oscillator frequency in an embedded local oscillator frequency measurement method provided by an exemplary embodiment of the present application.

[0049] Figure 2 A schematic diagram of an embedded local oscillator thread flow in an embedded local oscillator frequency measurement method provided by an exemplary embodiment of the present application.

[0050] Figure 3 A schematic diagram of a data processing thread flow in an embedded local oscillator frequency measurement method provided by an exemplary embodiment of the present application.

[0051] Figure 4 A schematic diagram of software signal tracking in an embedded local oscillator frequency measurement method provided by an exemplary embodiment of the present application.

[0052] Figure 5 A schematic diagram of a coarse scanning process in an embedded local oscillator frequency measurement method provided by an exemplary embodiment of the present application.

[0053] Figure 6 A schematic diagram of a precise scanning process in an embedded local oscillator frequency measurement method provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0054] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0055] The specific application scenario of this application is embedded local oscillator frequency measurement.

[0056] Embedded local oscillator mixer, also known as the device under test (DUT);

[0057] The technical concept of this application is as follows:

[0058] The embedded local oscillator frequency is acquired by software signal tracking and phase locking, and then normal mixer characteristic measurements are performed in combination with the vector mixer option of the vector network analyzer.

[0059] If the frequency offset of the mixer's built-in local oscillator signal is larger than the intermediate frequency bandwidth used to measure the mixer's characteristics, it will cause very large errors in measuring the characteristics.

[0060] The frequency of the local oscillator signal of the device under test is generally relatively stable, because the local oscillator signal of the device under test is locked to a very stable crystal oscillator with very low phase noise. Therefore, the tuning state of the network analyzer is adjusted to make the frequency of the output signal of the device under test in the middle of the intermediate frequency filter being measured. However, in order to obtain more accurate measurement results, when obtaining the output frequency estimate, the phase-locked mechanism is used to obtain a more accurate local oscillator frequency. The network analyzer is a network analyzer.

[0061] Specific steps for measuring embedded local oscillator frequency:

[0062] Includes: The process of embedded local oscillator frequency measurement:

[0063] It is mainly divided into selecting the phase-locking point, usually selecting a center frequency between the rated frequencies of the output.

[0064] Perform a pre-scan to obtain the local oscillator frequency;

[0065] The estimated intermediate frequency IF is obtained by coarse scanning;

[0066] Precise scanning;

[0067] Based on the estimated intermediate frequency, a phase-time scan is performed to obtain the frequency offset Δf, and finally the actual local oscillator frequency is obtained.

[0068] Also included: The process of mixer measurement:

[0069] Apply the obtained Δf to the RF and IF frequencies of the mixer to be tested to measure the mixer characteristics.

[0070] Among them, the embedded local oscillator frequency tuning configuration content:

[0071] Selection of tuning type: coarse scan and fine scan, fine scan only, disable tuning (no measurement of embedded local oscillator frequency);

[0072] Coarse scan: select a tuning frequency point (a point within the intermediate frequency range) (F0);

[0073] Sweep span

[0074] Precise scan: maximum number of iterations, tolerance for each iteration, tuning IFBW, number of tunings N (i.e., tuning is performed once for every N measurements).

[0075] Among them, in the process of precise scanning, this application is different from some network points on the market. In order to ensure the stability of the data, the hardware has a certain response stabilization time after switching the excitation, so each precise scanning iteration collects data twice, that is, each update of the excitation requires two internal manual triggers, and the data of the second manual trigger is taken for calculation. Therefore, the total number of processing times is twice the set number of iterations (precision scanning iteration processing times = 2*set number of iterations); the underlying logic FPGA data is generally the amplitude information value. When entering the precise scanning, the data collected by the underlying logic FPGA of this application is phase data, which ensures the accuracy and real-time nature of the data. The upper computer software calculates the measured phase data to obtain the offset of the local oscillator frequency.

[0076] The usual measurement process: when the user updates a parameter, if the hardware status needs to be changed, the data processing thread needs to be executed according to the priority of the parameter change, the underlying hardware responds according to the latest parameters, and the host computer sequentially fetches data, processes data, and updates the drawing thread accordingly. In this whole process, if there is no user behavior interference, the software will not automatically change the stimulus to control the underlying hardware. However, based on the customer's application requirements for embedded local oscillator mixer testing, in view of the above embedded local oscillator frequency measurement process, the host computer needs to automatically update the stimulus according to different measurement stages (tuning status) in the software to measure the actual local oscillator frequency, so as to meet the requirements of testing the real local oscillator frequency, and then accurately measure the characteristics of such mixers. It can be seen that the previous network-based software framework does not support it, and given the short R&D cycle, it is not realistic to change the main software framework. Therefore, on the basis of compatibility with the previous framework, a thread (embedded local oscillator thread) is added to control the dynamic distribution of the stimulus during the embedded local oscillator frequency measurement process.

[0077] When faced with data acquisition, data processing and embedded local oscillator threads, the three threads are independent but interrelated. The newly added thread completes the embedded local oscillator measurement without affecting the existing functions of the network.

[0078] The present application also contemplates adding locks and semaphores between threads to protect and synchronize thread data, update the interface for stimulus delivery, and be compatible with the requirements of the local oscillator thread for stimulus delivery.

[0079] Specifically include:

[0080] 1. Lock the local oscillator instance; - Embedded local oscillator process

[0081] The data processing thread and the local oscillator thread data synchronization is achieved by adding a lock to the local oscillator object instance

[0082] Because both the data processing thread and the local oscillator thread will modify and use the parameters in the local oscillator object instance, in order to ensure that the same instance object (here refers to the local oscillator instance) is processed, a lock is added for synchronization;

[0083] The local oscillator object instance contains parameter data required to calculate the embedded local oscillator frequency.

[0084] 2. Reset and set the semaphore of the local oscillator thread; -- data processing thread

[0085] The semaphore is used to control the embedded local oscillator thread to wait and continue execution.

[0086] The present application provides an embedded local oscillator frequency measurement method and device, aiming to solve the above technical problems in the prior art.

[0087] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0088] Example 1: The present application provides an embedded local oscillator frequency measurement method, including: measuring the embedded local oscillator of a mixer to be measured, tracking the execution stimulus from a data processing thread to an embedded local oscillator thread through software signals, cooperating with the embedded local oscillator thread to perform a phase-locked operation to keep the data processing thread and the embedded local oscillator thread synchronized, obtaining the embedded local oscillator frequency, and then measuring the mixing characteristics through a vector network analyzer.

[0089] like Figure 1-3 As shown, the scanning of the local oscillator frequency includes the following process:

[0090] Determine whether the current normal scan times CurrTurnSweep < the set value TuneEvery;

[0091] If yes, switch the tuning state to coarse scanning, judge the detection tuning state = coarse scanning, if yes, execute the coarse scanning process, if no, judge the tuning state = fine scanning, if yes, execute the fine scanning process, if no, enter the normal scanning process, that is, the characteristic measurement of the mixer;

[0092] If not, the normal scanning process is executed, that is, the characteristic measurement of the mixer.

[0093] The embedded local oscillator thread is specifically:

[0094] Reset the semaphore of the embedded local oscillator; lock the local oscillator instance; determine whether the incentive needs to be updated; manually trigger once after issuing the incentive; release the lock of the local oscillator instance; suspend the local oscillator thread and wait to determine whether the Set semaphore that allows the local oscillator thread to continue executing is tracked; if it is tracked, reset the semaphore of the embedded local oscillator; if not, suspend the local oscillator thread and wait.

[0095] The data processing thread is specifically:

[0096] Execute measurement actions in sequence; when the stimulus queue is not empty, execute stimulus delivery in a loop, and then read channel data in a loop from the flip buffer to determine whether the embedded local oscillator thread is open:

[0097] If the local oscillator thread is opened, determine whether the lock of the local oscillator object instance of the channel is released:

[0098] If released, data is processed according to different tuning states, and the Set semaphore of the local oscillator thread is sent, and the Set semaphore of the local oscillator thread allows the local oscillator thread to continue to execute; determine whether it is in the coarse scanning or precise scanning process, if so, the trace is not displayed, and the measurement action is executed in sequence, if not, the corresponding data and trace processing is continued;

[0099] If not released, the data processing thread is executed to enter a waiting state, and after the lock of the local oscillator object instance is released by the local oscillator thread, the determination channel is executed to determine whether the local oscillator instance lock is released.

[0100] If it is not open, continue to process the corresponding data and traces

[0101] like Figure 4 As shown, including: wherein the software signal tracking specifically includes:

[0102] When the local oscillator instance in the embedded local oscillator process releases the lock, the data processing thread determines whether the local oscillator instance lock of the channel is tracked and released, and then processes the data according to different tuning states and sends the Set semaphore of the local oscillator thread; in the embedded local oscillator process, it is determined whether the Set semaphore of the embedded local oscillator thread is tracked, if received, the semaphore reset of the embedded local oscillator is executed, otherwise the local oscillator thread is suspended to wait for the semaphore Set;

[0103] like Figure 5 As shown, the rough scanning includes the following specific process:

[0104] Calculate the excitation of the coarse scan based on the selected intermediate frequency f0 and the scan bandwidth;

[0105] Send out stimulus, and the local oscillator thread control is manually triggered once;

[0106] The data processing thread obtains the measurement data Data of receiver B, where receiver B is a measurement receiver of a measurement port of the vector network analyzer; obtains the frequency value f1 corresponding to the maximum amplitude; calculates Δf1=f1-f0, updates the frequency value of IF, resends the excitation, and switches the tuning state to precise scanning.

[0107] Furthermore, the precise scanning includes the following specific process:

[0108] Determine the number of iterations of accurate scanning < setting value:

[0109] If less than: determine whether this iteration triggers data for the first time, if so, set the underlying logic FPGA to enter the standard amplitude measurement mode, wait for a certain period of time, set the FPGA to enter the phase measurement mode, set the flag that allows the local oscillator thread to manually trigger the second time, wait for data acquisition and the data processing thread to execute; if not, process the measurement value transmitted from the data processing thread, the frequency offset Δf2, and determine whether Δf2 is within the tolerance range. If so, the precise scan ends, the local oscillator offset is set to the current value, the number of iterations is set to 0, the excitation is updated to the normal scan, and the tuning state is switched to the normal scan; if not, the precise scan excitation is updated and the next iteration is performed, where tolerance is a preset threshold;

[0110] If it is greater, the switching tuning state to normal scanning is executed.

[0111] Embodiment 2, the present application provides an embedded local oscillator frequency measurement device, which is used to implement an embedded local oscillator frequency measurement method in the first embodiment, including: an embedded local oscillator mixer, a vector network analyzer and a reference mixer;

[0112] The reference mixer is connected to the RF signal and one port of the vector network analyzer, and the IF signal is output;

[0113] Two ends of the embedded local oscillator mixer are respectively connected to a port of a vector network analyzer to receive an RF signal and output an IF signal.

[0114] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0115] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0116] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0117] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods or devices. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects.

[0118] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0119] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

[0120] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims above.

[0121] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. An embedded local oscillator frequency measurement method, characterized in that: include: For the measurement of the embedded local oscillator of the mixer to be tested, the software signal is used to track the execution stimulus between the data processing thread and the embedded local oscillator thread, and the embedded local oscillator thread is used to perform phase-locking operation to keep the data processing thread and the embedded local oscillator thread synchronized, and the embedded local oscillator frequency is obtained, and then the mixer characteristics are measured by the vector network analyzer; The embedded local oscillator thread is specifically: Control the semaphore reset of the embedded local oscillator thread; Lock the local oscillator object instance; Determine whether incentives need to be updated; Manually trigger once after the incentive is issued; The local oscillator object instance releases the lock; The embedded local oscillator thread suspends and waits to determine whether the Set semaphore that allows the local oscillator thread to continue execution is tracked; If the tracing is successful, the semaphore of the embedded local oscillator thread is reset; if the tracing is not successful, the local oscillator thread is suspended and waited; The data processing thread is specifically: Execute the measurement actions sequentially; When the stimulus queue is not empty, the stimulus is issued cyclically, and then the channel data is read cyclically from the flip buffer FlipBuffer to determine whether the embedded local oscillator thread is turned on: If the local oscillator thread is opened, determine whether the local oscillator object instance lock of the channel is released: If released, data is processed according to different tuning states, and the Set semaphore of the local oscillator thread is sent, and the Set semaphore of the local oscillator thread allows the local oscillator thread to continue to execute; determine whether it is in the coarse scanning or precise scanning process, if so, the trace is not displayed, and the measurement action is executed in sequence, if not, the corresponding data and trace processing is continued; If not released, executing the data processing thread to enter a waiting state, waiting for the local oscillator object instance lock to be released after the local oscillator thread, and then executing the determination whether the local oscillator object instance lock of the channel is released; If it is not open, continue with the corresponding data and trace processing.

2. The embedded local oscillator frequency measurement method according to claim 1, characterized in that: After scanning the embedded local oscillator frequency multiple times, the local oscillator frequency is continuously updated until it meets the range requirements set by the user. The scanning includes two modes: coarse scanning and precise scanning. The scanning state is the tuning state. The specific process is as follows: Determine whether the current normal scan times CurrTurnSweep is less than the set value TuneEvery; If yes, set the current tuning state to coarse scanning, determine whether the detected tuning state is coarse scanning, and if yes, execute the coarse scanning process; If not, determine whether the tuning state is precise scanning. If so, execute the precise scanning process. If not, enter the normal scanning process, that is, the characteristic measurement of the mixer.

3. The embedded local oscillator frequency measurement method according to claim 2, characterized in that: Includes: Among them, software signal tracking specifically includes: When the local oscillator object instance in the embedded local oscillator thread releases the lock, the data processing thread determines whether the local oscillator object instance lock of the channel tracked is released, and then processes the data according to different tuning states and sends the Set semaphore of the local oscillator thread; In the embedded local oscillator thread, it is determined whether the Set semaphore of the embedded local oscillator thread is tracked. If received, the semaphore of the embedded local oscillator thread is reset. Otherwise, the local oscillator thread is suspended and waits for the Set semaphore.

4. The embedded local oscillator frequency measurement method according to claim 3, characterized in that: The coarse scanning includes the following specific processes: Calculate the excitation configuration of the coarse scan based on the selected intermediate frequency f0 and the scan bandwidth Span; Send out stimulus, and the local oscillator thread control is manually triggered once; The data processing thread obtains the measurement data Data of the B receiver, wherein the B receiver is a measurement receiver of a measurement port of the vector network analyzer; Get the frequency value f1 corresponding to the maximum amplitude; Calculate the frequency offset Δf1=f1-f0, update the intermediate frequency value, resend the excitation, and switch the tuning state to precise scanning.

5. The embedded local oscillator frequency measurement method according to claim 4, characterized in that: The precise scanning includes the following specific processes: Determine whether the number of iterations of the precise scan is less than the set value: If less than: Determine whether this iteration is triggered for the first time: If so, set the FPGA to enter the standard amplitude measurement mode, wait for a certain period of time, set the underlying logic to enter the phase measurement mode, set a flag that allows the local oscillator thread to manually trigger a second time, and wait for data acquisition and the data processing thread to execute; If not, process the measured value transmitted from the data processing thread, calculate the frequency offset Δf2 based on the measured value, and determine whether Δf2 is within the tolerance range. If so, the precise scan ends, the local oscillator offset is set to the current value, the number of iterations is set to 0, the excitation is updated to the normal scan, and the tuning state is switched to the normal scan; if not, the excitation of the precise scan is updated and the next iteration is performed, where tolerance is the preset threshold; If it is greater, the switching tuning state to normal scanning is executed.