CN116909177B - Sweep frequency parameter control system and method and electronic equipment - Google Patents

Sweep frequency parameter control system and method and electronic equipment Download PDF

Info

Publication number
CN116909177B
CN116909177B CN202311149051.6A CN202311149051A CN116909177B CN 116909177 B CN116909177 B CN 116909177B CN 202311149051 A CN202311149051 A CN 202311149051A CN 116909177 B CN116909177 B CN 116909177B
Authority
CN
China
Prior art keywords
sweep
frequency
parameter
instruction
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311149051.6A
Other languages
Chinese (zh)
Other versions
CN116909177A (en
Inventor
曹昊嘉
陈涛
程军强
杨胜领
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongxing Lianhua Technology Beijing Co ltd
Original Assignee
Zhongxing Lianhua Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongxing Lianhua Technology Beijing Co ltd filed Critical Zhongxing Lianhua Technology Beijing Co ltd
Priority to CN202311149051.6A priority Critical patent/CN116909177B/en
Publication of CN116909177A publication Critical patent/CN116909177A/en
Application granted granted Critical
Publication of CN116909177B publication Critical patent/CN116909177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of Resistance Or Impedance (AREA)

Abstract

The invention provides a sweep frequency parameter control system, a method and electronic equipment, and relates to the technical field of electronic measurement, wherein the system comprises: the action module is used for searching the corresponding sweep frequency parameter change state in the first sweep frequency parameter state change table based on the sweep frequency parameter adjusted by the user, determining a first instruction and a second instruction, and sending the first instruction and the second instruction to the reaction module; the response module is used for determining a first response function for calculating the frequency sweep parameter to be updated based on the first instruction and the second instruction, and obtaining updated values of the frequency sweep parameter to be updated based on the first response function and values of other frequency sweep parameters except the frequency sweep parameter to be updated at the current moment. According to the sweep frequency parameter control system, the method and the electronic equipment, the control of all the sweep frequency parameters when a certain sweep frequency parameter changes is realized by abstracting the coupling relation among the sweep frequency parameters, so that the memory of the system is saved, and the running efficiency of the system is improved.

Description

Sweep frequency parameter control system and method and electronic equipment
Technical Field
The present invention relates to the field of electronic measurement technologies, and in particular, to a system and method for controlling a frequency sweep parameter, and an electronic device.
Background
The frequency sweep parameters are typically: the initial frequency, the cut-off frequency, the sweep frequency bandwidth and the center frequency are mutually influenced, and the coupling degree is high. In the existing frequency scanning method, when the sweep frequency bandwidth is changed, parameters of the cut-off frequency and the center frequency are directly removed, and parameters of the cut-off frequency and the center frequency, such as the initial frequency, are changed. Such operations add a number of decision functions to process one by one, increasing maintenance costs and complexity.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides a sweep frequency parameter control system, a sweep frequency parameter control method and electronic equipment.
In a first aspect, the present invention provides a system for controlling sweep frequency parameters, comprising:
an action module and a reaction module;
the action module is used for searching a corresponding sweep frequency parameter change state in a first sweep frequency parameter state change table based on sweep frequency parameters adjusted by a user, determining a first instruction and a second instruction, and sending the first instruction and the second instruction to the reaction module; the first instruction is used for indicating the sweep frequency parameters adjusted by the user, and the second instruction is used for indicating the change states of all the found sweep frequency parameters;
the response module is used for determining a first response function for calculating the frequency sweep parameter to be updated based on the first instruction and the second instruction, and obtaining updated values of the frequency sweep parameter to be updated based on the first response function and values of other frequency sweep parameters except the frequency sweep parameter to be updated at the current moment; the other sweep frequency parameters comprise sweep frequency parameters adjusted by the user and sweep frequency parameters with unchanged values indicated by the second instructions.
Optionally, the system further comprises a border crossing judging module;
the out-of-range judging module is used for receiving the updated value of the to-be-updated frequency sweep parameter sent by the reacting module, searching a corresponding frequency sweep parameter change state in a second frequency sweep parameter state change table based on the frequency sweep parameter with the value meeting the out-of-range condition when the updated value of the to-be-updated frequency sweep parameter meets the out-of-range condition, determining a third instruction and a fourth instruction, and sending the third instruction and the fourth instruction to the reacting module; the third instruction is used for indicating the sweep frequency parameters with values meeting the out-of-range condition, the fourth instruction is used for indicating the change states of all the found sweep frequency parameters, and the sweep frequency parameters with values meeting the out-of-range condition comprise sweep frequency parameters with values greater than a first preset threshold or less than a second preset threshold.
Alternatively, the process may be carried out in a single-stage,
the reaction module is also used for correcting the sweep frequency parameters with values meeting the boundary crossing conditions based on the third instruction;
and updating the sweep frequency parameters based on the corrected sweep frequency parameters and the fourth instruction.
Optionally, the correcting the sweep frequency parameter whose value satisfies the boundary crossing condition based on the third instruction includes:
correcting the value of the sweep frequency parameter indicated by the third instruction to be the first preset threshold under the condition that the value of the sweep frequency parameter indicated by the third instruction is larger than the first preset threshold;
and correcting the value of the sweep frequency parameter indicated by the third instruction to be the second preset threshold under the condition that the value of the sweep frequency parameter indicated by the third instruction is smaller than the second preset threshold.
Optionally, updating the sweep frequency parameter based on the corrected sweep frequency parameter and the fourth instruction includes:
and updating the sweep frequency parameters based on the corrected sweep frequency parameters and the fourth instruction under the condition that the sweep frequency bandwidth in the sweep frequency parameters is unchanged.
Optionally, the second instruction and/or the fourth instruction are represented by N binary bits, where N is the number of all the frequency sweep parameters, and each binary bit corresponds to a change state of one frequency sweep parameter.
Optionally, the sweep frequency parameters include:
center frequency, sweep bandwidth, cut-off frequency, and start frequency.
In a second aspect, the present invention further provides a method for controlling a frequency sweep parameter, including:
searching a corresponding sweep frequency parameter change state in a first sweep frequency parameter state change table based on the sweep frequency parameters adjusted by the user;
and obtaining updated values of the sweep frequency parameters to be updated based on the values of the sweep frequency parameters, which are indicated in the change states of all the found sweep frequency parameters and indicate that the values are not changed, at the current moment of the sweep frequency parameters and the values of the sweep frequency parameters adjusted by the user.
Optionally, the method further comprises:
searching a corresponding frequency sweep parameter change state in a second frequency sweep parameter state change table based on the frequency sweep parameter with the value meeting the boundary crossing condition when the updated value of the frequency sweep parameter to be updated meets the boundary crossing condition, wherein the frequency sweep parameter with the value meeting the boundary crossing condition comprises the frequency sweep parameter with the value being larger than a first preset threshold or smaller than a second preset threshold;
correcting the sweep frequency parameters with values meeting the boundary crossing conditions, and updating the sweep frequency parameters based on the corrected sweep frequency parameters and the change states of all the found sweep frequency parameters.
In a third aspect, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for controlling sweep frequency parameters according to the second aspect as described above when executing the program.
According to the sweep frequency parameter control system, the method and the electronic equipment, the control of all the sweep frequency parameters when a certain sweep frequency parameter changes is realized by abstracting the coupling relation among the sweep frequency parameters, so that the memory of the system is saved, and the running efficiency of the system is improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a system for controlling sweep frequency parameters according to the present invention;
FIG. 2 is a schematic flow chart of a method for controlling sweep frequency parameters according to the present invention;
FIG. 3 is a schematic diagram of a parameter display interface of the sweep frequency parameter control system according to the present invention;
FIG. 4 is a second schematic diagram of a parameter display interface of the system for controlling sweep frequency parameters according to the present invention;
FIG. 5 is a second flowchart of a method for controlling sweep frequency parameters according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a schematic structural diagram of a sweep frequency parameter control system provided by the present invention, as shown in fig. 1, the system includes:
an action module 100 and a reaction module 110;
the action module 100 is configured to search a corresponding sweep frequency parameter change state in a first sweep frequency parameter state change table based on a sweep frequency parameter adjusted by a user, determine a first instruction and a second instruction, and send the first instruction and the second instruction to the reaction module; the first instruction is used for indicating the sweep frequency parameters adjusted by the user, and the second instruction is used for indicating the change states of all the found sweep frequency parameters.
Specifically, after the user adjusts any one of the sweep frequency parameters, other sweep frequency parameters are changed.
Alternatively, the sweep frequency parameters may include: center frequency (centrfreq), swept bandwidth (span), cut-off frequency (stopFreq), and start frequency (startFreq).
In one embodiment, the fixed starting frequency and the cut-off frequency are unchanged, the sweep bandwidth is the absolute value of the difference between the cut-off frequency and the starting frequency, the center frequency is one half of the sum of the starting frequency and the cut-off frequency, and the sum can be expressed as:
in one embodiment, the fixed sweep bandwidth and the center frequency are unchanged, the starting frequency is the center frequency minus one half of the sweep bandwidth, the cutoff frequency is the center frequency plus one half of the sweep bandwidth, and the formula can be expressed as:
each of the sweep parameters changes, which results in two of the other three parameters, such as the start frequency, which results in a change in the sweep bandwidth and center frequency. According to the rule, the coupling relation between the sweep frequency parameters can be abstracted, and a first sweep frequency parameter state change table is determined.
For example, the coupling relationship between the sweep parameters can be abstracted to the following table 1:
TABLE 1
Wherein, the bolded 1 indicates that the parameter is an action initiator, the other 1 indicates that the parameter needs to be changed, and 0 indicates that the parameter does not need to be changed.
When determining the sweep frequency parameter adjusted by the user, the action module 100 may search the corresponding sweep frequency parameter change state in the first sweep frequency parameter state change table according to the sweep frequency parameter adjusted by the user.
For example, when the parameter adjusted by the user is the starting frequency, the action module 100 may search the table 1 for the change state of the sweep frequency parameter when the action initiator is the starting frequency, so that it may be determined that the cutoff frequency needs not to be changed, and the center frequency and the sweep frequency bandwidth need to be changed.
Based on the user-adjusted sweep parameter, the action module 100 may determine a first instruction to indicate the sweep parameter.
For example, the user-adjusted sweep parameter is the center frequency (the system preset center frequency is the second sweep parameter), and the action module may use binary information 0100 to represent the first instruction (the second sweep parameter is adjusted) or use binary information 01 to represent the first instruction (the adjusted sweep parameter is the second sweep parameter).
Based on the found change states of all sweep parameters, the action module 100 may determine a second instruction to indicate the change states.
For example, if the change states of all the sweep parameters found by the action module 100 correspond to the sweep bandwidth, the change states of all the sweep parameters are: the center frequency is unchanged and other parameters change, and binary information 0111 can be used to represent the second instruction.
The reaction module 110 is configured to determine a first reaction function for calculating a frequency sweep parameter to be updated based on the first instruction and the second instruction, and obtain an updated value of the frequency sweep parameter to be updated based on the first reaction function and values of other frequency sweep parameters except the frequency sweep parameter to be updated at a current time; other sweep frequency parameters comprise sweep frequency parameters adjusted by a user and sweep frequency parameters with unchanged values indicated by the second instructions.
Specifically, after determining the first instruction and the second instruction, the action module 100 may send the first instruction and the second instruction to the reaction module 110, and the reaction module 110 may determine a first reaction function for calculating the frequency sweep parameter to be updated according to the first instruction and the second instruction. The sweep frequency parameter to be updated may be a parameter other than the sweep frequency parameter adjusted by the user and the sweep frequency parameter whose value indicated by the second instruction does not change. The response module 110 may then calculate an updated value of the sweep parameter to be updated according to the first response function and the values of the sweep parameters at the current time.
For example, the parameter indicated by the first instruction is the frequency sweep bandwidth, the change state of all the frequency sweep parameters indicated by the second instruction is that the center frequency is unchanged, and other parameters are changed, the reaction module 110 may determine a first reaction function for calculating the cut-off frequency and the start frequency, where the first reaction function may be expressed by the following formula:
and then, according to the values of the central frequency and the sweep frequency bandwidth at the current moment, calculating updated values of the cut-off frequency and the initial frequency.
According to the sweep frequency parameter control system provided by the invention, the control of all the sweep frequency parameters when a certain sweep frequency parameter changes is realized by abstracting the coupling relation between the sweep frequency parameters, so that the memory of the system is saved, and the running efficiency of the system is improved.
Optionally, the system further comprises a border crossing judging module;
the out-of-range judging module is used for receiving the updated value of the frequency sweep parameter to be updated sent by the reaction module, searching a corresponding frequency sweep parameter change state in the second frequency sweep parameter state change table based on the frequency sweep parameter with the value meeting the out-of-range condition under the condition that the updated value of the frequency sweep parameter to be updated meets the out-of-range condition, determining a third instruction and a fourth instruction, and sending the third instruction and the fourth instruction to the reaction module; the third instruction is used for indicating the sweep frequency parameters with values meeting the out-of-range condition, the fourth instruction is used for indicating the change states of all the found sweep frequency parameters, and the sweep frequency parameters with values meeting the out-of-range condition comprise sweep frequency parameters with values greater than a first preset threshold or less than a second preset threshold.
Specifically, the sweep frequency parameter control system provided by the invention may further include a border crossing judgment module, where the border crossing judgment module may receive the updated value of the sweep frequency parameter to be updated sent by the reaction module 110, and perform border crossing judgment on the updated value of the sweep frequency parameter to be updated.
It will be appreciated that the parameter settings of the sweep parameter control system are limited, i.e. the frequency sweep range of the sweep apparatus in which the sweep parameter control system is located is limited, i.e. there is a corresponding threshold for both the minimum frequency and the maximum frequency that can be swept. The invention takes the maximum frequency which can be scanned as a first preset threshold and the minimum frequency which can be scanned as a second preset threshold.
The out-of-range judging module can judge whether the updated value of the sweep frequency parameter to be updated is larger than a first preset threshold or smaller than a second preset threshold. When the updated value of the frequency sweep parameter to be updated is larger than the first preset threshold or smaller than the second preset threshold, the out-of-range judging module can search the corresponding frequency sweep parameter change state from the second frequency sweep parameter state change table according to the out-of-range frequency sweep parameter.
In one embodiment, the second sweep parameter state change table may be as shown in table 2:
TABLE 2
Wherein, the thickened 1 indicates that the parameter is out of range, the other 1 indicates that the parameter needs to be changed, and 0 indicates that the parameter does not need to be changed.
The out-of-range judging module can determine a third instruction to indicate the sweep frequency parameters with values meeting the out-of-range condition, and determine a fourth instruction according to the sweep frequency parameter change states corresponding to the sweep frequency parameters with values meeting the out-of-range condition, wherein the fourth instruction can be used for indicating the change states of all the found sweep frequency parameters.
For example, the out-of-range judging module judges that the sweep frequency parameter whose value satisfies the out-of-range condition is the cutoff frequency (the preset cutoff frequency of the system is the third sweep frequency parameter), and the out-of-range judging module may use binary information 0010 to represent the third instruction, or may use binary information 10 to represent the third instruction (the sweep frequency parameter whose value satisfies the out-of-range condition is the third). When the cutoff frequency value is found out in the second sweep frequency parameter state change table to be out of range, the sweep frequency bandwidth is unchanged, other parameters are changed, and the binary information 1011 can be used for representing the fourth instruction.
Alternatively, the process may be carried out in a single-stage,
the reaction module is also used for correcting sweep frequency parameters with values meeting the out-of-range condition based on a third instruction;
and updating the sweep frequency parameters based on the corrected sweep frequency parameters and the fourth instruction.
Specifically, after the third instruction and the fourth instruction are determined by the out-of-range judging module, the third instruction and the fourth instruction can be sent to the reaction module, and the reaction module can correct the sweep frequency parameters with values meeting the out-of-range condition according to the third instruction.
Optionally, based on the third instruction, correcting the sweep frequency parameter whose value satisfies the out-of-range condition may include:
correcting the value of the sweep frequency parameter indicated by the third instruction to be a first preset threshold under the condition that the value of the sweep frequency parameter indicated by the third instruction is larger than the first preset threshold;
and correcting the value of the sweep frequency parameter indicated by the third instruction to be a second preset threshold under the condition that the value of the sweep frequency parameter indicated by the third instruction is smaller than the second preset threshold.
For example, the third instruction indicates that the sweep frequency parameter whose value satisfies the out-of-range condition is a cutoff frequency, the value of the cutoff frequency is 6GHz, and the maximum frequency point supported by the sweep frequency (i.e., the first preset threshold) is 5GHz, and then the value of the cutoff frequency can be corrected to be 5GHz.
For another example, the third instruction indicates that the sweep frequency parameter whose value satisfies the boundary crossing condition is an initial frequency, the value of the initial frequency is 5Hz, and the minimum frequency point supported by the sweep frequency (i.e., the second preset threshold) is 10Hz, then the value of the initial frequency can be corrected to 10Hz.
After the corrected sweep frequency parameters are determined, the response module can update the sweep frequency parameters according to the corrected sweep frequency parameters and the fourth instruction.
For example, the values of the other sweep parameters may be updated according to the unchanged sweep parameter values and the corrected sweep parameter values indicated in the fourth instruction.
Optionally, updating the sweep frequency parameter based on the corrected sweep frequency parameter and the fourth instruction includes:
and updating the sweep frequency parameters based on the corrected sweep frequency parameters and the fourth instruction under the condition that the sweep frequency bandwidth in the sweep frequency parameters is unchanged.
Specifically, when the sweep frequency parameter is updated based on the corrected sweep frequency parameter and the fourth instruction, the sweep frequency bandwidth is always unchanged.
In one embodiment, when the corrected sweep frequency parameter is the cut-off frequency, the values of the center frequency and the initial frequency can be updated according to the corrected cut-off frequency value and the sweep frequency bandwidth value.
In one embodiment, when the corrected sweep frequency parameter is the initial frequency, the values of the center frequency and the cutoff frequency may be updated according to the corrected value of the initial frequency and the value of the sweep bandwidth.
Optionally, the second instruction and/or the fourth instruction are represented by N binary bits, where N is the number of all the sweep parameters, and each binary bit corresponds to a change state of one sweep parameter.
Specifically, when the second instruction and/or the fourth instruction indicate the change states of all the frequency sweep parameters, N binary bits may be used to indicate the change states of all the frequency sweep parameters, where N is the number of all the frequency sweep parameters. Each binary bit may correspond to a respective state of change of the sweep parameter.
Alternatively, the sweep parameter that is changed may be represented by 1 and the sweep parameter that is unchanged may be represented by 0.
For example, the sweep parameters are 4 in total of center frequency, sweep bandwidth, cut-off frequency and start frequency. The second instruction and/or the fourth instruction may be represented by using 4 binary bits, where the first binary bit represents a change state of the center frequency, the second binary bit represents a change state of the sweep bandwidth, the third binary bit represents a change state of the cutoff frequency, and the fourth binary bit represents a change state of the starting frequency, for example, 1011 represents the second instruction and/or the fourth instruction, and then the indicated change states of all the sweep parameters are not changed except the sweep bandwidth, and all the other sweep parameters are changed.
Fig. 2 is a schematic flow chart of a method for controlling sweep frequency parameters according to the present invention, as shown in fig. 2, the method includes the following steps:
step 200, based on the sweep frequency parameters adjusted by the user, searching the corresponding sweep frequency parameter change states in the first sweep frequency parameter state change table.
Step 201, obtaining updated values of the sweep frequency parameters to be updated based on the values of the sweep frequency parameters, which are indicated in the change states of all the found sweep frequency parameters and are not changed, at the current moment of the sweep frequency parameters and the values of the sweep frequency parameters adjusted by the user.
Specifically, after a user adjusts any one of the sweep frequency parameters, the change state of the sweep frequency parameter corresponding to the sweep frequency parameter adjusted by the user can be searched in a first sweep frequency parameter state change table according to the sweep frequency parameter adjusted by the user, and then the updated values of other sweep frequency parameters to be updated are calculated according to the values of the sweep frequency parameters, which are indicated in the change states of all the searched sweep frequency parameters and indicate that the values do not change, at the current moment, and the values of the sweep frequency parameters adjusted by the user at the current moment.
According to the sweep frequency parameter control method, the coupling relation among the sweep frequency parameters is abstracted, so that control of all the sweep frequency parameters when a certain sweep frequency parameter changes is realized, the memory of a system is saved, and the running efficiency of the system is improved.
Optionally, the method further comprises:
under the condition that the updated value of the sweep frequency parameter to be updated meets the boundary crossing condition, searching a corresponding sweep frequency parameter change state in a second sweep frequency parameter state change table based on the sweep frequency parameter with the value meeting the boundary crossing condition, wherein the sweep frequency parameter with the value meeting the boundary crossing condition comprises a sweep frequency parameter with the value being larger than a first preset threshold or smaller than a second preset threshold;
correcting the sweep frequency parameters with values meeting the boundary crossing conditions, and updating the sweep frequency parameters based on the corrected sweep frequency parameters and the change states of all the found sweep frequency parameters.
Specifically, after determining the updated value of the sweep frequency parameter to be updated, the method can also perform out-of-range judgment on the updated value of the sweep frequency parameter to be updated, and under the condition that the updated value of the sweep frequency parameter to be updated meets the out-of-range condition, the sweep frequency parameter change state corresponding to the sweep frequency parameter with the value meeting the out-of-range condition is searched in the second sweep frequency parameter state change table.
After determining that the updated value of the sweep frequency parameter to be updated meets the boundary crossing condition, correcting the sweep frequency parameter with the value meeting the boundary crossing condition, and updating the values of other sweep frequency parameters according to the corrected value of the sweep frequency parameter and the value of the sweep frequency parameter which is not changed in the change state of all the found sweep frequency parameters.
The method provided by the invention is illustrated by a specific application scenario.
The sweep parameters are mainly the center frequency (centrfreq), the sweep bandwidth (span), the cut-off frequency (stopFreq) and the start frequency (startFreq).
If the fixed starting frequency and the cut-off frequency are unchanged, the sweep frequency bandwidth is the absolute value of the difference between the cut-off frequency and the starting frequency, the center frequency is one half of the sum of the starting frequency and the cut-off frequency, and the sum can be expressed as follows by a formula:
if the fixed sweep bandwidth and the center frequency are unchanged, the initial frequency is the center frequency minus one half of the sweep bandwidth, and the cut-off frequency is the center frequency plus one half of the sweep bandwidth, the formula can be expressed as:
each of the sweep parameters changes, which results in two of the other three parameters, such as the start frequency, which results in a change in the sweep bandwidth and center frequency.
For example, initial state: the initial frequency is 10MHz, the cut-off frequency is 2GHz, the sweep bandwidth is 1990MHz, and the center frequency is 1005MHz.
The initial frequency is changed from 10MHz to 1GHz, the cutoff frequency is still 2GHz, the sweep bandwidth is changed to 990MHz, and the center frequency is changed to 1500MHz.
The interaction relationship can be converted into a state table for processing (wherein the bolded 1 is an action initiator, the other 1 is that the parameter needs to be changed, and 0 indicates that the parameter does not act), and the processing of the table can be called a message mediator (as shown in table 3):
TABLE 3 Table 3
The coupling relationship between the sweep parameters can be decoupled according to the table:
for example, the initial frequency is changed, 1101 is sent, then the four bits are analyzed in the analysis function, then the corresponding function is operated according to the change of each bit, the upper fourth bit of 1101 is 1, so that the central frequency needs to be changed, the upper third bit of 1101 is 1, so that the sweep bandwidth needs to be changed, and the upper second bit of 1101 is 0, so that the cutoff frequency does not need to be changed.
When the parameter setting is out of range, whether the related parameter is out of range or not needs to be judged, and the rollback function processing after out of range is also processed by using binary bit.
Fig. 3 is a schematic diagram of a parameter display interface of the sweep frequency parameter control system provided by the present invention, as shown in fig. 3, in an initial state, the initial frequency is 10MHz, the cut-off frequency is 1GHz, the sweep frequency bandwidth is 990MHz, and the center frequency is 505MHz.
The sweep bandwidth is changed to 2GHz, and at this time, the following formula is adopted:
(parameter out of range because the starting frequency is not negative)
(parameter is not out of range)
After crossing the boundary, the parameters need to be corrected:
the initial frequency is automatically moved to the minimum frequency point supported by the frequency sweep, the minimum frequency point supported by the frequency sweep is 10Hz, so that the initial frequency is corrected to be 10Hz, the cut-off frequency is the sum of the initial frequency and the frequency sweep bandwidth (2.00000001 GHz), and the central frequency is one half of the sum of the initial frequency and the cut-off frequency (1.00000001 GHz).
FIG. 4 is a second schematic diagram of a parameter display interface of the frequency sweep parameter control system according to the present invention, as shown in FIG. 4, after being modified, the initial frequency is 10Hz, the cut-off frequency is 2GHz, the frequency sweep bandwidth is 2GHz, and the center frequency is 1GHz.
In the correction process, the message mediator is also used to determine and send the message, as shown in table 4 (wherein the thickened 1 is the action initiator, i.e. the parameter out of range, the other 1 indicates that the parameter needs to be changed, and 0 indicates that the parameter does not act):
TABLE 4 Table 4
The coupling relationship between the sweep parameters can be decoupled according to the table:
for example, the starting frequency is out of range, 1011 can be sent, then the four bits are resolved by going to the resolving function, then the corresponding function is operated according to the change of each bit, the upper fourth bit of 1011 is 1, thus the center frequency needs to be changed, the upper third bit of 1011 is 0, thus the sweep bandwidth does not need to be changed, the upper second bit of 1011 is 1, thus the cutoff frequency needs to be changed.
Fig. 5 is a second flow chart of the method for controlling sweep frequency parameters according to the present invention, as shown in fig. 5, the method includes the following steps:
1. the interface user changes parameters; 2. send the change to a message broker table (look up the corresponding binary message); 3. parsing the binary message and acting on the function (updating the parameters according to the binary message); 4. and judging whether the parameters cross the boundary. If the parameters are not out of range, executing the step 7; 5. if the parameter is out of range, an out-of-range binary message is sent. Executing the step 6; 6. analyzing out-of-range binary information and acting a function (correcting out-of-range sweep frequency parameters and updating other sweep frequency parameters); 7. configuring parameters, and returning the configured parameters to a display interface; 8. the configuration was successful.
The following is a specific operation code of the parameter control system provided by the invention:
frequency change is indicated by frequency parameter change
//step center current span stop start
The term "// 00000 0" < - - "here is the initial value
// step center current span stop start
If the state is 0x01, it indicates that the action initiator (first changed parameter) is startFreq
// step center current span stop start
The expression// 0101 01 < - - - -freqstateChange here means that a startFreq change will cause a centrfreq and span parameter change
Setting hardware and parameter display according to change bit
void subtab_sweepfrequency::changeFreq(uint state) {
int index=5;
bool initiator;
bool changed;
Where it is determined which parameter is changed first, thereby affecting other parameters
for (int i=0;i<5;i++) {
initiator = false;
initiator = state&(0x01<<i);
if (initiator) {
switch (i) {
case 0:
case 1: {
If the starting frequency or the ending frequency is changed first, the action initiator is 00001 or 000010
The message mediator receives 10101 or 10110 and analyzes the message action response function to change the sweep bandwidth and center frequency
Frequency tmpFreq;
fParam->span = abs(sub(fParam->stopFreq, fParam->startFreq));
tmpFreq.Set(fParam->span, Frequency::Hz);
lineEdit_span->SetFrequency(tmpFreq);
fParam->centerFreq= average(fParam->startFreq, fParam->stopFreq);
tmpFreq.Set(fParam->centerFreq, Frequency::Hz);
lineEdit_centerFreq->SetFrequency(tmpFreq);
break;
}
case 2:
case 4: {
If the starting frequency or the ending frequency is changed first, the action initiator is 10000 or 00100
The message mediator receives 10011 or 00111 and analyzes the message action response function to change the sweep bandwidth and center frequency
Frequency tmpFreq;
if (!bOpposite) {
fParam->startFreq = fParam->centerFreq - fParam->span / 2;
fParam->stopFreq = fParam->centerFreq + fParam->span / 2;
}
else {
fParam->startFreq = fParam->centerFreq + fParam->span / 2;
fParam->stopFreq = fParam->centerFreq - fParam->span / 2;
}
Where the boundary check module is entered, if the boundary is exceeded, the parameters are reset to reasonable intervals
if (!checkRange())
rejustFreq(state);
Setting the sweep bandwidth or center frequency results in a starting or cut-off frequency out of range
tmpFreq.Set(fParam->startFreq, Frequency::Hz);
lineEdit_startFrequency->SetFrequency(tmpFreq);
tmpFreq.Set(fParam->stopFreq, Frequency::Hz);
lineEdit_stopFrequency->SetFrequency(tmpFreq);
break;
}
case 3: {
Setting the starting or cut-off frequency results in a sweep bandwidth or center frequency out of range
Frequency tmpFreq;
tmpFreq.Set(fParam->currentFreq, Frequency::Hz);
lineEdit_currentFreq->SetFrequency(tmpFreq);
}
default:
break;
}
}
}
while (index != -1) {
changed = false;
if ((freqStateChange&(0x01<<(5 - index))) != 0) {
changed = true;
}
Where the reaction function is entered, the message parsing is completed and specific parameters are set
/(e.g. step center current span stop start)
// 0 1 0 1 0 0
Frequency/frequency shift bandwidth
if (changed) {
switch (index) {
case 5:
setStartFreq(fParam->startFreq);
break;
case 4:
setStopFreq(fParam->stopFreq);
break;
case 3:
break;
case 2:
setCurrentFreq(fParam->currentFreq);
break;
case 1:
break;
case 0:
break;
default:
break;
}
}
index--;
}
}
Check/check if out of bounds function
bool subtab_sweepfrequency::checkRange()
{
if (fParam->startFreq<minFreq | fParam->startFreq>maxFreq | fParam->stopFreq<minFreq | fParam->stopFreq>maxFreq)
{
FreqBoundary = fParam->startFreq<minFreq ? FreqBoundary |= 0b0001 : FreqBoundary;
FreqBoundary = fParam->stopFreq<minFreq ? FreqBoundary |= 0b0010 : FreqBoundary;
FreqBoundary = fParam->startFreq>maxFreq ? FreqBoundary |= 0b0100 : FreqBoundary;
FreqBoundary = fParam->stopFreq>maxFreq ? FreqBoundary |= 0b1000 : FreqBoundary;
return false;
}
else
{
return true;
}
}
Reset parameter function after/(out of range)
void subtab_sweepfrequency::rejustFreq(uint state)
{
Frequency tmpFreq;
if (state == 4)
{
switch (FreqBoundary) {
case 1:
case 2: {
fParam->centerFreq = average(minFreq, fParam->span + minFreq);
if (!bOpposite) {
fParam->startFreq = minFreq;
fParam->stopFreq = fParam->startFreq + fParam->span;
}
else {
fParam->stopFreq = minFreq;
fParam->startFreq = fParam->stopFreq + fParam->span;
}
tmpFreq.Set(fParam->centerFreq, Frequency::Hz);
lineEdit_centerFreq->SetFrequency(tmpFreq);
FreqBoundary = 0;
break;
}
case 4:
case 8: {
fParam->centerFreq = average(maxFreq, maxFreq - fParam->span);
if (!bOpposite) {
fParam->stopFreq = maxFreq;
fParam->startFreq = fParam->stopFreq - fParam->span;
}
else {
fParam->startFreq = maxFreq;
fParam->stopFreq = fParam->startFreq - fParam->span;
}
tmpFreq.Set(fParam->centerFreq, Frequency::Hz);
lineEdit_centerFreq->SetFrequency(tmpFreq);
FreqBoundary = 0;
break;
}
default:
break;
}
}
else if (state == 16)
{
switch (FreqBoundary) {
case 1:
case 2: {
fParam->span = 2 * abs(sub(fParam->centerFreq, minFreq));
if (!bOpposite) {
fParam->startFreq = minFreq;
fParam->stopFreq = fParam->startFreq + fParam->span;
}
else {
fParam->stopFreq = minFreq;
fParam->startFreq = fParam->stopFreq + fParam->span;
}
tmpFreq.Set(fParam->span, Frequency::Hz);
leWidgetBandwidth->SetFrequency(tmpFreq);
FreqBoundary = 0;
break;
}
case 4:
case 8: {
fParam->span = 2 * abs(sub(fParam->centerFreq, maxFreq));
if (!bOpposite) {
fParam->stopFreq = maxFreq;
fParam->startFreq = fParam->stopFreq - fParam->span;
}
else {
fParam->startFreq = maxFreq;
fParam->stopFreq = fParam->startFreq - fParam->span;
}
tmpFreq.Set(fParam->span, Frequency::Hz);
leWidgetBandwidth->SetFrequency(tmpFreq);
FreqBoundary = 0;
break;
}
default:
break;
}
}
Fig. 6 is a schematic structural diagram of an electronic device according to the present invention, as shown in fig. 6, the electronic device may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform any of the sweep parameter control methods provided in the embodiments described above.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that, the electronic device provided by the present invention can implement all the method steps implemented by the method embodiments and achieve the same technical effects, and the details and beneficial effects of the same parts and advantages as those of the method embodiments in the present embodiment are not described in detail.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A system for controlling sweep frequency parameters, comprising:
an action module and a reaction module;
the action module is used for searching a corresponding sweep frequency parameter change state in a first sweep frequency parameter state change table based on sweep frequency parameters adjusted by a user, determining a first instruction and a second instruction, and sending the first instruction and the second instruction to the reaction module; the first instruction is used for indicating the sweep frequency parameters adjusted by the user, and the second instruction is used for indicating the change states of all the found sweep frequency parameters;
the response module is used for determining a first response function for calculating the frequency sweep parameter to be updated based on the first instruction and the second instruction, and obtaining updated values of the frequency sweep parameter to be updated based on the first response function and values of other frequency sweep parameters except the frequency sweep parameter to be updated at the current moment; the other sweep frequency parameters comprise sweep frequency parameters adjusted by the user and sweep frequency parameters with unchanged values indicated by the second instructions.
2. The system of claim 1, further comprising a boundary crossing determination module;
the out-of-range judging module is used for receiving the updated value of the to-be-updated frequency sweep parameter sent by the reacting module, searching a corresponding frequency sweep parameter change state in a second frequency sweep parameter state change table based on the frequency sweep parameter with the value meeting the out-of-range condition when the updated value of the to-be-updated frequency sweep parameter meets the out-of-range condition, determining a third instruction and a fourth instruction, and sending the third instruction and the fourth instruction to the reacting module; the third instruction is used for indicating the sweep frequency parameters with values meeting the out-of-range condition, the fourth instruction is used for indicating the change states of all the found sweep frequency parameters, and the sweep frequency parameters with values meeting the out-of-range condition comprise sweep frequency parameters with values greater than a first preset threshold or less than a second preset threshold.
3. The system of claim 2, wherein the system further comprises a controller configured to control the frequency of the sweep,
the reaction module is also used for correcting the sweep frequency parameters with values meeting the boundary crossing conditions based on the third instruction;
and updating the sweep frequency parameters based on the corrected sweep frequency parameters and the fourth instruction.
4. A system for controlling sweep parameters according to claim 3, wherein said modifying sweep parameters whose values satisfy the out-of-range condition based on the third instruction comprises:
correcting the value of the sweep frequency parameter indicated by the third instruction to be the first preset threshold under the condition that the value of the sweep frequency parameter indicated by the third instruction is larger than the first preset threshold;
and correcting the value of the sweep frequency parameter indicated by the third instruction to be the second preset threshold under the condition that the value of the sweep frequency parameter indicated by the third instruction is smaller than the second preset threshold.
5. A sweep parameter control system according to claim 3, wherein updating the sweep parameter based on the corrected sweep parameter and the fourth instruction comprises:
and updating the sweep frequency parameters based on the corrected sweep frequency parameters and the fourth instruction under the condition that the sweep frequency bandwidth in the sweep frequency parameters is unchanged.
6. A system according to any one of claims 1 to 5, wherein the second and/or fourth instructions are represented by N binary bits, N being the number of all the sweep parameters, each binary bit corresponding to a respective state of variation of one sweep parameter.
7. A sweep parameter control system according to any one of claims 1 to 5, wherein the sweep parameter comprises:
center frequency, sweep bandwidth, cut-off frequency, and start frequency.
8. A method of controlling a sweep parameter performed by a sweep parameter control system as claimed in any one of claims 1 to 7 including:
searching a corresponding sweep frequency parameter change state in a first sweep frequency parameter state change table based on the sweep frequency parameters adjusted by the user;
and obtaining updated values of the sweep frequency parameters to be updated based on the values of the sweep frequency parameters, which are indicated in the change states of all the found sweep frequency parameters and indicate that the values are not changed, at the current moment of the sweep frequency parameters and the values of the sweep frequency parameters adjusted by the user.
9. The method of claim 8, further comprising:
searching a corresponding frequency sweep parameter change state in a second frequency sweep parameter state change table based on the frequency sweep parameter with the value meeting the boundary crossing condition when the updated value of the frequency sweep parameter to be updated meets the boundary crossing condition, wherein the frequency sweep parameter with the value meeting the boundary crossing condition comprises the frequency sweep parameter with the value being larger than a first preset threshold or smaller than a second preset threshold;
correcting the sweep frequency parameters with values meeting the boundary crossing conditions, and updating the sweep frequency parameters based on the corrected sweep frequency parameters and the change states of all the found sweep frequency parameters.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that the processor implements the sweep parameter control method according to claim 8 or 9 when executing the program.
CN202311149051.6A 2023-09-07 2023-09-07 Sweep frequency parameter control system and method and electronic equipment Active CN116909177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311149051.6A CN116909177B (en) 2023-09-07 2023-09-07 Sweep frequency parameter control system and method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311149051.6A CN116909177B (en) 2023-09-07 2023-09-07 Sweep frequency parameter control system and method and electronic equipment

Publications (2)

Publication Number Publication Date
CN116909177A CN116909177A (en) 2023-10-20
CN116909177B true CN116909177B (en) 2024-01-05

Family

ID=88358616

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311149051.6A Active CN116909177B (en) 2023-09-07 2023-09-07 Sweep frequency parameter control system and method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116909177B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167530A (en) * 2011-12-15 2013-06-19 中国移动通信集团设计院有限公司 Sweep frequency device and method
WO2017028589A1 (en) * 2015-08-17 2017-02-23 深圳市中兴微电子技术有限公司 Frequency sweeping method, device and terminal, and computer storage medium
CN109474359A (en) * 2017-09-08 2019-03-15 电信科学技术研究院 A kind of frequency sweeping method and terminal device
CN110474704A (en) * 2019-08-12 2019-11-19 浙江三维通信科技有限公司 Radio signal shielding method and device based on adjustable Sweep Source
CN110596457A (en) * 2019-09-26 2019-12-20 中国科学院微电子研究所 Digital frequency sweeping system and method
CN111257788A (en) * 2020-03-08 2020-06-09 苏州浪潮智能科技有限公司 Dynamic test method, system, equipment and medium of power supply
CN112255456A (en) * 2020-12-22 2021-01-22 深圳市鼎阳科技股份有限公司 Frequency sweeping method and frequency sweeping device for spectrum analyzer

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167530A (en) * 2011-12-15 2013-06-19 中国移动通信集团设计院有限公司 Sweep frequency device and method
WO2017028589A1 (en) * 2015-08-17 2017-02-23 深圳市中兴微电子技术有限公司 Frequency sweeping method, device and terminal, and computer storage medium
CN109474359A (en) * 2017-09-08 2019-03-15 电信科学技术研究院 A kind of frequency sweeping method and terminal device
CN110474704A (en) * 2019-08-12 2019-11-19 浙江三维通信科技有限公司 Radio signal shielding method and device based on adjustable Sweep Source
CN110596457A (en) * 2019-09-26 2019-12-20 中国科学院微电子研究所 Digital frequency sweeping system and method
CN111257788A (en) * 2020-03-08 2020-06-09 苏州浪潮智能科技有限公司 Dynamic test method, system, equipment and medium of power supply
CN112255456A (en) * 2020-12-22 2021-01-22 深圳市鼎阳科技股份有限公司 Frequency sweeping method and frequency sweeping device for spectrum analyzer

Also Published As

Publication number Publication date
CN116909177A (en) 2023-10-20

Similar Documents

Publication Publication Date Title
CN110378413A (en) Neural network model processing method, device and electronic equipment
US8788509B2 (en) Method and device for coding a hierarchized document
CN113347225B (en) OTA (over the air) upgrading method and server for terminal equipment of Internet of things
CN111294819A (en) Network optimization method and device
CN113407185B (en) Compiler optimization option recommendation method based on Bayesian optimization
CN114693220B (en) Algorithm warehouse management method and system based on digital twin DaaS platform
CN116909177B (en) Sweep frequency parameter control system and method and electronic equipment
CN110175043A (en) The generation method and device of protocol interface code release update notification
CN112559579A (en) Efficient code matching method, device, equipment and medium for infrared code library
CN112822740A (en) Hotspot emission control method and device
JP5687122B2 (en) Software evaluation device, software evaluation method, and system evaluation device
CN116150765A (en) Fuzzy variation method and device based on API (application program interface) dependence
CN114900835A (en) Malicious traffic intelligent detection method and device and storage medium
CN114138330A (en) Code clone detection optimization method and device based on knowledge graph and electronic equipment
CN111797634B (en) Document segmentation method and device
CN112235842A (en) Communication method and device of Internet of things equipment
CN112000354A (en) Version information updating method, version information updating device, version information updating equipment and storage medium
CN117851344A (en) Method, system, electronic equipment and storage medium for searching virus file
CN115580571B (en) Message sending method, device, computing equipment and storage medium
CN114615144B (en) Network optimization method and system
CN116975126B (en) Data query method, device, computing equipment and computer readable storage medium
CN112800185B (en) Method and device for generating and matching text of interface node in mobile terminal
CN111539818B (en) Method for adaptively adjusting sampling window in block chain, computer readable storage medium and block chain network
CN111309754B (en) Service data access method, device, storage medium and electronic equipment
TW202424805A (en) Model specialization method and non-transitory machine-readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant