System and method for automatically testing clock frequency deviation based on labview programming

CN113806226BActive Publication Date: 2024-09-20TAICANG T&W ELECTRONICS CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202111127631.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2024-09-20
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

[0002]频偏测试是用于衡量时钟精度的一种度量方法,其值越小说明精度越高,样机工作也就越稳定,目前频偏测试一般都是基于常温常压下进行,并且对频谱仪都是手动操作,也不能发现产品在高低温和高低压下频偏的问题

Benefits of technology

[0018] The invention can automatically control the temperature of the program-controlled temperature box, automatically control the power supply voltage of the program-controlled DC voltage source, automatically set the parameters of the spectrum analyzer, automatically read the measurement parameters, realize automated testing, and greatly improve the testing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113806226B
    Figure CN113806226B
Patent Text Reader

Abstract

The present invention discloses a system and method for automatically testing clock frequency deviation under high and low temperature and high and low voltage based on Labview programming. The present invention is based on a computer installed with a Labview clock frequency deviation test program and a program-controlled temperature box, a program-controlled DC voltage source and a spectrum analyzer controlled by the computer. The program is used to automatically set high and low temperature parameters, high and low voltage parameters and spectrum analyzer parameters and perform measurements, and the measurement data is written into a table and a report is automatically generated. The present invention can automatically control the temperature of the program-controlled temperature box, automatically control the supply voltage of the program-controlled DC voltage source, automatically set the spectrum analyzer parameters, automatically read the measurement parameters, realize automated testing, and greatly improve the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of automatic frequency deviation testing, and in particular relates to a method for implementing a spectrum analyzer to test high and low temperature and high and low voltage frequency deviations based on LabVIEW programming. Background Art

[0002] Frequency deviation test is a measurement method used to measure clock accuracy. The smaller the value, the higher the accuracy and the more stable the prototype will work. Currently, frequency deviation tests are generally performed at room temperature and pressure, and the spectrum analyzer is manually operated, which cannot detect frequency deviation problems of the product under high and low temperatures and high and low pressures. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a method for realizing the frequency deviation test of high and low temperature and high and low voltage by a spectrum analyzer based on LabVIEW programming, so as to realize the test of clock frequency deviation under high and low temperature and high and low voltage.

[0004] To solve the above problems, the technical solution adopted by the present invention is:

[0005] A system for implementing spectrum analyzer testing of high and low temperature and high and low voltage clock frequency deviation based on LabVIEW programming comprises a computer, a program-controlled temperature box, a program-controlled direct current voltage source, a spectrum analyzer and a device for configuring a crystal to be tested, wherein the computer is connected to the program-controlled temperature box and the program-controlled direct current voltage source through two serial ports, the computer is connected to the spectrum analyzer through a network port, the device for configuring the crystal to be tested is placed in the program-controlled temperature box and connected to the output end of the program-controlled direct current voltage source through a power cord, the program-controlled direct current voltage source provides a variable power supply voltage for the device for configuring the crystal to be tested, the spectrum analyzer is connected to a near-field probe through a radio frequency cable, the near-field probe is placed near the crystal to be tested, the computer automatically sets parameters of the program-controlled temperature box and the program-controlled direct current voltage source through a compiled program and checks the parameter setting, after the setting is completed, the computer automatically sets parameters of the spectrum analyzer through the compiled program, after the setting is completed, the test is started, the test parameters read by the spectrum analyzer are written into a table and a report is automatically generated.

[0006] Furthermore, the computer stores a clock frequency deviation test program compiled based on labview software. After the program is started, the parameters of the programmable temperature box, programmable DC voltage source and spectrum analyzer can be automatically set, and the measurement results can be written into a table and a report can be automatically generated.

[0007] A method for implementing a spectrum analyzer to test high and low temperature and high and low voltage frequency deviation based on LabVIEW programming, comprising the following steps:

[0008] S1. Place the device configured with the crystal to be tested in a program-controlled temperature box, and connect the power port of the device configured with the crystal to be tested to the output end of the program-controlled DC voltage source through a power cord. The program-controlled temperature box and the program-controlled DC voltage source are respectively connected to a computer with the LabVIEW clock frequency deviation test program installed through serial communication lines. The spectrum analyzer is connected to the computer through a network cable. The spectrum analyzer is connected to a near-field probe through a radio frequency cable. The near-field probe is placed near the crystal to be tested in the program-controlled temperature box.

[0009] S2, start the spectrum analyzer to warm up, then start the program-controlled temperature box, program-controlled DC voltage source and computer in sequence;

[0010] S3, run the LabVIEW clock frequency deviation test program to automatically complete the temperature setting of the program-controlled temperature box, the voltage setting of the program-controlled DC voltage source, and the parameter setting of the spectrum analyzer. After the spectrum analyzer, the program-controlled temperature box, and the program-controlled DC voltage source are all working stably, read and verify the setting parameters;

[0011] S4. After the set parameters and the read parameters are consistent, the near-field probe picks up the clock signal radiated by the crystal under test in the working state, automatically completes the measurement of the frequency deviation, writes it into a table, and automatically generates a report.

[0012] Furthermore, the parameter settings of the programmable temperature box and the programmable DC voltage source in step S3 include low temperature and low pressure, low temperature and standard pressure, low temperature and high pressure, standard temperature and standard pressure, standard temperature and high pressure, high temperature and low pressure, high temperature and standard pressure, and high temperature and high pressure. The labview clock frequency deviation test program automatically performs the parameter settings in step S3 and the measurements in step S4 according to the program flow, and writes into a table to generate a report until the program execution is completed.

[0013] Furthermore, the setting and verification of the spectrum analyzer parameters are performed after the parameters of the programmable temperature chamber and the programmable DC voltage source are set for one hour and the temperature and voltage read are stable.

[0014] Preferably, the LabVIEW clock frequency deviation test program automatically completes the supply voltage setting of the programmable DC voltage source through the serial port, and then reads the actual supply voltage through the program. If the read actual supply voltage is within plus or minus 0.5V of the set supply voltage, it is determined that the set supply voltage is correct and the program continues to execute. Otherwise, it is determined that the set supply voltage is wrong, and a prompt is given to manually set the supply voltage. After the supply voltage is manually set, the program reads the actual supply voltage again and makes a judgment until it is determined that the set supply voltage is correct.

[0015] Preferably, the LabVIEW clock frequency deviation test program automatically completes the temperature setting of the programmable incubator through the serial port. After stabilization for two hours, the actual temperature inside the incubator is read through the program. If the actual temperature read is within plus or minus 2°C of the set temperature, the set temperature is determined to be correct and the program continues to execute. Otherwise, the set temperature is determined to be wrong and a prompt is given to manually set the temperature. After the temperature is manually set, the program reads the actual temperature again and makes a judgment until it is determined that the set temperature is correct.

[0016] Preferably, the labview clock frequency deviation test program automatically completes the parameter setting of the spectrum analyzer through the network port. The specific parameters include the center frequency and SPAN. The resolution bandwidth of the spectrum analyzer is 100 Hz, and the reading frequency is the frequency deviation of the center frequency. If the frequency deviation is within 50 ppm, the data is judged to be correct and the program continues to execute. Otherwise, the data is judged to be wrong and a prompt is given to manually set the parameters. After manually setting the center frequency and SPAN, the program reads the frequency deviation again and makes a judgment until it is determined that the set parameters are correct.

[0017] The beneficial effects of adopting the above technical solution are:

[0018] The present invention can automatically control the temperature of the program-controlled temperature box, automatically control the supply voltage of the program-controlled DC voltage source, automatically set the spectrum analyzer parameters, automatically read the measurement parameters, realize automated testing, and greatly improve the testing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 It is a flow chart of the clock frequency deviation test program of the present invention. DETAILED DESCRIPTION

[0020] The invention is further described in detail below with reference to the accompanying drawings:

[0021] The present invention relates to a system and method for automatically testing clock frequency deviation using a spectrum analyzer compiled based on the LabVIEW software development environment. The present invention realizes frequency deviation measurement of a device configured with a tested crystal under high and low temperature environments and under high and low voltage power supply conditions through LabVIEW programming. High and low temperature settings, high and low voltage settings, frequency deviation measurement, etc. are all automatically completed by the program, realizing full-process automatic measurement without intervention, thereby greatly improving test efficiency.

[0022] The present invention implements a system for testing high and low temperature and high and low voltage clock frequency deviations by a spectrum analyzer based on LabVIEW programming. The system comprises a computer, a programmable temperature box, a programmable direct current voltage source, a spectrum analyzer and a device for configuring a crystal to be tested. The computer is connected to the programmable temperature box and the programmable direct current voltage source through two serial ports, the computer is connected to the spectrum analyzer through a network port, the device for configuring the crystal to be tested is placed in the programmable temperature box and connected to the output end of the programmable direct current voltage source through a power line, the programmable direct current voltage source provides a variable power supply voltage for the device for configuring the crystal to be tested, the spectrum analyzer is connected to a near-field probe through a radio frequency cable, the near-field probe is placed near the crystal to be tested, the computer automatically sets parameters of the programmable temperature box and the programmable direct current voltage source through a compiled LabVIEW program and checks the parameter settings, after the settings are completed, the computer automatically sets parameters of the spectrum analyzer through the compiled program, after the settings are completed, the test is started, the test parameters read by the spectrum analyzer are written into a table and a report is automatically generated.

[0023] In the above test system, the computer stores a clock frequency deviation test program compiled based on labview software. After the program is started, the parameters of the program-controlled temperature box, program-controlled DC voltage source and spectrum analyzer can be automatically set, and the measurement results are written into a table and a report is automatically generated. In actual programming and testing, the test times and test conditions are pre-compiled in labview. As long as the program is started, the system will complete the test according to the established test program without manual intervention, except for the case where there is a problem with the parameter setting and manual intervention is required.

[0024] The present invention is based on the above-mentioned test system and implements a method for testing high and low temperature and high and low voltage frequency deviations by a spectrum analyzer based on LabVIEW programming, comprising the following steps:

[0025] S1. Place the device configured with the crystal to be tested in a program-controlled temperature box, and connect the power port of the device configured with the crystal to be tested to the output end of the program-controlled DC voltage source through a power cord. The program-controlled temperature box and the program-controlled DC voltage source are respectively connected to a computer with the LabVIEW clock frequency deviation test program installed through serial communication lines. The spectrum analyzer is connected to the computer through a network cable. The spectrum analyzer is connected to a near-field probe through a radio frequency cable. The near-field probe is placed near the crystal to be tested in the program-controlled temperature box.

[0026] S2, start the spectrum analyzer to warm up, then start the program-controlled temperature box, program-controlled DC voltage source and computer in sequence;

[0027] S3, run the LabVIEW clock frequency deviation test program to automatically complete the temperature setting of the program-controlled temperature box, the voltage setting of the program-controlled DC voltage source, and the parameter setting of the spectrum analyzer. After the spectrum analyzer, the program-controlled temperature box, and the program-controlled DC voltage source are all working stably, read and verify the setting parameters;

[0028] S4. After the set parameters and the read parameters are consistent, the near-field probe picks up the clock signal radiated by the crystal under test in the working state, automatically completes the frequency deviation measurement, writes it into a table, and automatically generates a report. The specific program execution flow chart is as follows: Figure 1 shown.

[0029] The parameter settings of the program-controlled temperature box and the program-controlled DC voltage source in the above step S3 include low temperature and low pressure, low temperature and standard pressure, low temperature and high pressure, standard temperature and standard pressure, standard temperature and high pressure, high temperature and low pressure, high temperature and standard pressure, and high temperature and high pressure. The LabVIEW clock frequency deviation test program automatically performs the parameter settings in step S3 and the measurements in step S4 according to the program flow, and writes the table to generate a report until the program execution ends. The setting and verification of the spectrum analyzer parameters are completed after the parameter settings of the program-controlled temperature box and the program-controlled DC voltage source are completed for one hour and the read temperature and voltage are stable.

[0030] For the present invention, the above-mentioned LabVIEW clock frequency deviation test program automatically completes the power supply voltage setting of the programmable DC voltage source through the serial port, and then reads the actual power supply voltage through the program. If the read actual power supply voltage is within plus or minus 0.5V of the set power supply voltage, it is determined that the set power supply voltage is correct and the program continues to execute. Otherwise, it is determined that the set power supply voltage is wrong, and a prompt is given to manually set the power supply voltage. After the power supply voltage is manually set, the program reads the actual power supply voltage again and makes a judgment until it is determined that the set power supply voltage is correct.

[0031] As a specific embodiment: the computer is connected to a programmable DC voltage source (DC source) through serial port 2, assuming that the normal working standard power supply is 12V. Run the written labview program on the computer, set the programmable DC voltage source to a high voltage power supply of 14V, and then read through the program whether the programmable DC voltage source is 14V. If the read voltage is within 14V plus or minus 0.5V, the program determines that the voltage is correct and continues to execute. If it exceeds the range of 14V plus or minus 0.5V, it is determined to be an error, and prompts to manually set the programmable DC voltage source. The process of setting the low voltage and standard voltage supply voltage is the same as above, except that the voltage values ​​are different.

[0032] For the present invention, the above-mentioned LabVIEW clock frequency deviation test program automatically completes the temperature setting of the programmable incubator through the serial port. After stabilization for two hours, the actual temperature inside the incubator is read through the program. If the actual temperature read is within plus or minus 2°C of the set temperature, it is determined that the set temperature is correct and the program continues to execute. Otherwise, it is determined that the set temperature is wrong and a prompt is given to manually set the temperature. After the temperature is manually set, the program reads the actual temperature again and makes a judgment until it is determined that the set temperature is correct.

[0033] As a specific example: the computer is connected to the programmable temperature box through serial port 1, assuming that the normal operating temperature is 25°C. Run the prepared LabVIEW program on the computer, set the temperature of the programmable temperature box to a high temperature of 55°C, and after stabilization for two hours, read the internal temperature of the programmable temperature box through the program to see if it is 55°C. If the read temperature is within 55°C plus or minus 2°C, the program determines that the temperature is correct and continues to execute. If it exceeds the range of 55°C plus or minus 2°C, it is determined to be an error, and prompts to manually set the temperature of the programmable temperature box. The temperature setting process of low temperature and standard temperature is the same as above, except that the temperature values ​​are different.

[0034] For the present invention, the above-mentioned LabVIEW clock frequency deviation test program automatically completes the parameter setting of the spectrum analyzer through the network port. The specific parameters include the center frequency and SPAN. The resolution bandwidth of the spectrum analyzer is 100Hz, and the reading frequency is the frequency deviation of the center frequency. If the frequency deviation is within 50ppm, the data is judged to be correct and the program continues to execute. Otherwise, the data is judged to be wrong and a prompt is given to manually set the parameters. After manually setting the center frequency and SPAN, the program reads the frequency deviation again and makes a judgment until it is determined that the set parameters are correct.

[0035] As a specific embodiment: a computer is connected to a spectrum analyzer via a network cable, and a prepared labview program is run on the computer. The parameters of the spectrum analyzer are set via the network cable, and the spectrum analyzer test parameters are automatically set to frequency, the center frequency is 25MHz, the SPAN is 1KHz, the spectrum analyzer resolution bandwidth is 100Hz, and the precise frequency value when the frequency point is 25MHz is read. If the frequency deviation when the frequency point is 25MHz is within 50ppm, the program determines that the data is correct and automatically writes the data into a table. If the frequency deviation is outside 50ppm, the program determines that the data is incorrect and prompts to manually set the spectrum analyzer parameters. When the spectrum analyzer parameters are set correctly, the frequency deviation data can be read multiple times and written into the table.

[0036] The above is only a test process and embodiment under a certain test condition of the present invention. The test process under other test conditions is similar to the above process, except that the system building and startup process is missing.

Claims

1. A method for testing high and low temperature and high and low voltage frequency deviation using a spectrum analyzer based on LabVIEW programming. The following steps are involved: S1. Place the device configured with the crystal to be tested in a program-controlled temperature box, and connect the power port of the device configured with the crystal to be tested to the output end of the program-controlled DC voltage source through a power cord. The program-controlled temperature box and the program-controlled DC voltage source are respectively connected to a computer with the LabVIEW clock frequency deviation test program installed through serial communication lines. The spectrum analyzer is connected to the computer through a network cable. The spectrum analyzer is connected to a near-field probe through a radio frequency cable. The near-field probe is placed near the crystal to be tested in the program-controlled temperature box. S2, start the spectrum analyzer to warm up, then start the program-controlled temperature box, program-controlled DC voltage source and computer in sequence; S3, run the LabVIEW clock frequency deviation test program to automatically complete the temperature setting of the program-controlled temperature box, the voltage setting of the program-controlled DC voltage source, and the parameter setting of the spectrum analyzer. After the spectrum analyzer, the program-controlled temperature box, and the program-controlled DC voltage source are all working stably, read and verify the setting parameters; S4. After the set parameters and the read parameters are consistent, the near-field probe picks up the clock signal radiated by the crystal under test in the working state, automatically completes the measurement of the frequency deviation, writes it into a table, and automatically generates a report.

2. According to the method of realizing the spectrum analyzer testing high and low temperature and high and low voltage frequency deviation based on LabVIEW programming according to claim 1, Features: The parameter settings of the programmable temperature box and the programmable DC voltage source in step S3 include low temperature and low pressure, low temperature and standard pressure, low temperature and high pressure, standard temperature and low pressure, standard temperature and standard pressure, standard temperature and high pressure, high temperature and low pressure, high temperature and standard pressure, and high temperature and high pressure. The labview clock frequency deviation test program automatically performs the parameter settings in step S3 and the measurements in step S4 according to the program flow, and writes into a table to generate a report until the program execution is completed.

3. The method for realizing the spectrum analyzer testing high and low temperature and high and low voltage frequency deviation based on LabVIEW programming according to claim 2, Features: The setting and verification of the spectrum analyzer parameters are performed one hour after the parameters of the programmable temperature box and the programmable DC voltage source are set and the read temperature and voltage are stable.

4. The method for realizing the spectrum analyzer testing high and low temperature and high and low voltage frequency deviation based on LabVIEW programming according to any one of claims 1 to 3, Features: The labview clock frequency deviation test program automatically completes the supply voltage setting of the programmable DC voltage source through the serial port, and then reads the actual supply voltage through the program. If the actual supply voltage read is within plus or minus 0.5V of the set supply voltage, the set supply voltage is determined to be correct and the program continues to execute. Otherwise, the set supply voltage is determined to be wrong and a prompt is given to manually set the supply voltage. After the supply voltage is manually set, the program reads the actual supply voltage again and makes a judgment until it is determined that the set supply voltage is correct.

5. The method for realizing the spectrum analyzer testing high and low temperature and high and low voltage frequency deviation based on LabVIEW programming according to any one of claims 1 to 3, Features: The LabVIEW clock frequency deviation test program automatically completes the temperature setting of the programmable incubator through the serial port. After stabilization for two hours, the program reads the actual temperature inside the incubator. If the actual temperature read is within plus or minus 2°C of the set temperature, the set temperature is determined to be correct and the program continues to execute. Otherwise, the set temperature is determined to be wrong and a prompt is given to manually set the temperature. After the temperature is manually set, the program reads the actual temperature again and makes a judgment until it is determined that the set temperature is correct.

6. The method for realizing the spectrum analyzer testing high and low temperature and high and low voltage frequency deviation based on LabVIEW programming according to any one of claims 1 to 3, Features: The labview clock frequency deviation test program automatically completes the parameter setting of the spectrum analyzer through the network port. The specific parameters include the center frequency and SPAN. The resolution bandwidth of the spectrum analyzer is 100Hz, and the read frequency is the frequency deviation of the center frequency. If the frequency deviation is within 50ppm, the data is judged to be correct and the program continues to execute. Otherwise, the data is judged to be wrong and a prompt is given to manually set the parameters. After manually setting the center frequency and SPAN, the program reads the frequency deviation again and makes a judgment until it is determined that the set parameters are correct.

7. A system based on LabVIEW programming to implement spectrum analyzer testing of high and low temperature and high and low voltage clock frequency deviation, Features: A method for implementing a spectrum analyzer to test high and low temperature and high and low voltage frequency deviation based on LabVIEW programming as described in claim 1, the system includes a computer, a programmable temperature box, a programmable DC voltage source, a spectrum analyzer and a device for configuring a crystal to be tested, the computer is connected to the programmable temperature box and the programmable DC voltage source through two serial ports, the computer is connected to the spectrum analyzer through a network port, the device for configuring the crystal to be tested is placed in the programmable temperature box and connected to the output end of the programmable DC voltage source through a power cord, the programmable DC voltage source provides a variable power supply voltage for the device for configuring the crystal to be tested, the spectrum analyzer is connected to a near-field probe through a radio frequency cable, and the near-field probe is placed near the crystal to be tested, the computer automatically sets the parameters of the programmable temperature box and the programmable DC voltage source through a compiled program and checks the parameter settings, after the settings are completed, the computer automatically sets the parameters of the spectrum analyzer through the compiled program, starts the test after the settings are completed, writes the test parameters read by the spectrum analyzer into a table and automatically generates a report.

8. The system for realizing the spectrum analyzer testing high and low temperature and high and low voltage clock frequency deviation based on LabVIEW programming according to claim 7, Features: The computer stores a clock frequency deviation test program compiled based on labview software. After the program is started, the parameters of the program-controlled temperature box, program-controlled DC voltage source and spectrum analyzer can be automatically set, and the measurement results can be written into a table and a report can be automatically generated.

Citation Information

Patent Citations

  • Automatic radio environment test platform based on Labview and third-party driving program

    CN104330625A

  • LTE FDD automatic test system and test method of LTE FDD automatic test system

    CN105721253A

  • Automatic test system and method for Bluetooth module radio frequency parameters

    CN107769865A

  • Bluetooth frequency offset test and calibration device and method

    CN108155955A

  • Dual-mode communication test system

    CN213547859U