CN-116032249-B - Method, system, processor and computer readable storage medium for controlling digitally controlled attenuator in signal source power calibration
Abstract
The invention relates to a method for controlling a numerical control attenuator in signal source power calibration, which comprises the following steps of starting a control host, a signal source and a power meter, establishing communication connection among the control host, sending instructions to the signal source by the control host to perform parameter configuration, constructing a power buffer table and a power calibration record table of the numerical control attenuator, setting an initial code value of the numerical control attenuator to acquire the actual output power of the signal source, inquiring whether the power record is cached or not, directly using the power record if the power record is cached or not, acquiring the actual output power from the power meter if the power record is not cached, and using a test result for updating the power buffer table of the numerical control attenuator. The method, the device, the processor and the computer readable storage medium thereof for controlling the numerical control attenuator in the signal source power calibration effectively improve the calibration efficiency of the signal source power.
Inventors
- REN ZHIMING
Assignees
- 创远信科(上海)技术股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20221212
Claims (7)
- 1. A method for controlling a digitally controlled attenuator in signal source power calibration, the method comprising the steps of: (1) Starting a control host, a signal source and a power meter; (2) Establishing communication connection among the control host, the signal source and the power meter; (3) The control host sends an instruction to the signal source to perform parameter configuration; (4) Constructing a power buffer table and a power calibration record table of the numerical control attenuator; (5) Setting an initial code value of the numerical control attenuator to obtain the actual output power of a signal source; (6) Inquiring whether a cached power record exists, if so, directly using the power record, if not, acquiring actual output power from the power meter, and using a test result to update a power cache table of the numerical control attenuator; (7) Judging whether the actual output power meets the requirement, if so, successfully calibrating the actual output power, and finishing the calibration of the current power point, and if not, entering the step (8); (8) Calculating a new numerical control attenuator code value, judging whether the new numerical control attenuator code value exceeds the range of the numerical control attenuator, if so, completing the current power point calibration and failing the calibration result, if not, resetting the numerical control attenuator code value, and returning to the step (6); (9) Repeating steps (5) to (8) until all power points are calibrated.
- 2. The method for controlling a digitally controlled attenuator in signal source power calibration according to claim 1, wherein said step (2) specifically comprises: establishing application layer communication connection between the control host and a signal source; And establishing an application layer communication connection between the control host and the power meter.
- 3. The method for controlling a digitally controlled attenuator in signal source power calibration according to claim 1, wherein said step (3) is specifically: the control host sends an instruction to the signal source to configure data of frequency, channel and radio frequency link switch.
- 4. A system for controlling a digitally controlled attenuator in performing the signal source power calibration of any one of claims 1 to 3, said system comprising: The control host is used for executing the method for controlling the numerical control attenuator and comprises the steps of sending an instruction to a signal source, accessing a power meter to read measurement power and record power calibration data; The power meter is connected with the control host and is used for acquiring the output power of the signal source; The signal source is respectively connected with the control host and the power meter, and is equipment with output power to be calibrated and comprises a numerical control attenuator.
- 5. An apparatus for controlling a digitally controlled attenuator in signal source power calibration, said apparatus comprising: a processor configured to execute computer-executable instructions; a memory storing one or more computer-executable instructions which, when executed by the processor, perform the steps of the method for controlling a digitally controlled attenuator in signal source power calibration as claimed in any one of claims 1 to 3.
- 6. A processor for controlling a digitally controlled attenuator in signal source power calibration, wherein the processor is configured to execute computer-executable instructions that, when executed by the processor, perform the steps of the method for controlling a digitally controlled attenuator in signal source power calibration of any one of claims 1 to 3.
- 7. A computer readable storage medium having stored thereon a computer program executable by a processor to perform the steps of the method for controlling a digitally controlled attenuator in signal source power calibration according to any one of claims 1 to 3.
Description
Method, system, processor and computer readable storage medium for controlling digitally controlled attenuator in signal source power calibration Technical Field The invention relates to the technical field of radio frequency instruments, in particular to the technical field of power calibration, and specifically relates to a method, a system, a processor and a computer readable storage medium for controlling a numerical control attenuator in signal source power calibration. Background The numerical control attenuator is an indispensable level control means in a signal system, the total attenuation provides a level controllable change range, the stepping quantity gives the level control precision, and the programmable control provides a necessary condition for the automatic control of the system. In power calibration of a signal source, control of a digital attenuator is a very important factor affecting the power calibration time. In conventional signal source power calibration, the digital attenuator needs to be calibrated first. The different control codes of the numerical control attenuator correspond to one attenuation value. In order to obtain the accurate attenuation power of the digital attenuator under a specific radio frequency channel and a specific frequency point, the control code needs to be traversed, the signal output amplitude is recorded at the same time, and then a record table is formed. When the numerical control attenuator is used, the required signal strength is generated by a table look-up mode. Under the conditions of multiple calibration frequency points and multiple radio frequency channels, the control mode of the numerical control attenuator can lead to long signal source power calibration time and influence the production efficiency of products. Disclosure of Invention It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and to provide a method, system, processor and computer readable storage medium for controlling a digitally controlled attenuator in signal source power calibration that can effectively improve calibration efficiency. To achieve the above object, a method, a system, a processor and a computer readable storage medium thereof for controlling a digitally controlled attenuator in signal source power calibration according to the present invention are as follows: the method for controlling the numerical control attenuator in the signal source power calibration is mainly characterized by comprising the following steps of: (1) Starting a control host, a signal source and a power meter; (2) Establishing communication connection among the control host, the signal source and the power meter; (3) The control host sends an instruction to the signal source to perform parameter configuration; (4) Constructing a power buffer table and a power calibration record table of the numerical control attenuator; (5) Setting an initial code value of the numerical control attenuator to obtain the actual output power of a signal source; (6) Inquiring whether a cached power record exists, if so, directly using the power record, if not, acquiring actual output power from the power meter, and using a test result to update a power cache table of the numerical control attenuator; (7) Judging whether the actual output power meets the requirement, if so, successfully calibrating the actual output power, and finishing the calibration of the current power point, and if not, entering the step (8); (8) Calculating a new numerical control attenuator code value, judging whether the new numerical control attenuator code value exceeds the range of the numerical control attenuator, if so, completing the current power point calibration and failing the calibration result, if not, resetting the numerical control attenuator code value, and returning to the step (6); (9) Repeating steps (5) to (8) until all power points are calibrated. Preferably, the step (2) specifically includes: establishing application layer communication connection between the control host and a signal source; And establishing an application layer communication connection between the control host and the power meter. Preferably, the step (3) specifically includes: the control host sends an instruction to the signal source to configure data of frequency, channel and radio frequency link switch. The system for controlling the numerical control attenuator in the signal source power calibration is mainly characterized by comprising the following components: The control host is used for executing the method for controlling the numerical control attenuator and comprises the steps of sending an instruction to a signal source, accessing a power meter to read measurement power and record power calibration data; The power meter is connected with the control host and is used for acquiring the output power of the signal source; The signal source is respectively connected with the control host and the p