Generation method of regulation and control waveform data, program product and storage medium
By deploying waveform generation components in any waveform generator to obtain and process target parameters, the problem of low efficiency in generating and loading control waveform data in traditional methods is solved, and the effect of efficient generation and control waveform data is achieved.
Patent Information
- Application Number
- CN202510095650.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-30
AI Technical Summary
In quantum computing experiments, traditional methods generate and load regulated waveform data inefficiently, especially when frequent use of arbitrary waveform generators is required, limiting the overall efficiency of the experiment.
A method for generating waveform data is provided. By deploying waveform generation components in any waveform generator, the target parameters sent by the upper computer are obtained, the target envelope data is obtained from the storage component based on these parameters, and the regulation waveform data is generated through modulation and adjustment operations.
By pre-storing the target envelope data in any waveform generator, the burden of data transmission is reduced, the efficiency of generating and controlling waveform data is improved, and the target parameters can be quickly adjusted according to different experimental needs, achieving a more flexible and efficient generation process.
Smart Images

Figure CN120066200A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of computers, and more particularly, to a method for generating control waveform data, a program product, and a storage medium. Background Art
[0002] In quantum computing experiments, an arbitrary waveform generator plays a crucial role. In traditional methods, a host computer generates the control waveform data required for quantum computing experiments through software and then loads this data into the arbitrary waveform generator. The arbitrary waveform generator generates corresponding control waveforms based on the loaded waveform data. However, when the waveform data is long, the process of the host computer generating and loading the waveform data into the arbitrary waveform generator becomes quite time-consuming. Especially in the case where a large number of arbitrary waveform generators are used in experiments and the number of experiments is frequent, this process greatly limits the overall efficiency of the experiment. Therefore, how to improve the working method of the arbitrary waveform generator to efficiently generate control waveform data has become an urgent technical problem to be solved. Summary of the Invention
[0003] Embodiments of the present application provide a method for generating control waveform data, a program product, and a storage medium, so as to at least solve the problem of low efficiency in generating control waveform data in related technologies.
[0004] According to an embodiment of the present application, there is provided a method for generating control waveform data, which is applied to a waveform generation component. The waveform generation component is deployed in an arbitrary waveform generator, and the arbitrary waveform generator is connected to a host computer. The method includes: obtaining target parameters sent by the host computer, where the target parameters include a category parameter, a data point parameter, and an amplitude parameter; obtaining target envelope data from a storage component according to the category parameter and a first data point number in the data point parameter, where the first data point number is the number of data points in the target envelope data; performing a modulation operation on the target envelope data and carrier data to obtain modulated waveform data, where the number of data points in the modulated waveform data and the number of data points in the carrier data are both the first data point number, and the amplitude of the modulated waveform data is determined according to the amplitude of the target envelope data and the amplitude of the carrier data; performing an adjustment operation on the modulated waveform data to obtain first control waveform data, where the number of data points in the first control waveform data is determined according to the first data point number and the data point parameter, and the amplitude of the first control waveform data is determined according to a target amplitude range in the amplitude parameter.
[0005] In an exemplary embodiment, a communication interface component is deployed in any of the above waveform generators to obtain the target parameters sent by the host computer, including: obtaining the target parameters sent by the host computer in response to a first trigger signal through the communication interface component, where the first trigger signal is used to instruct the host computer to send the target parameters, and the first trigger signal is a signal sent to the host computer after the storage component finishes the storage operation on the target envelope data.
[0006] In an exemplary embodiment, the storage component performs the storage operation through the following steps: obtaining the target envelope data sent by the host computer through the communication interface component; storing the target envelope data into a target storage space matching the category according to the category of the target envelope data.
[0007] In an exemplary embodiment, obtaining target envelope data from the storage component according to the category parameter and the first data point quantity in the data point parameters includes: mapping the category parameter to a target start address, where the target start address is the address of the target storage space in the storage component for storing the target envelope data; reading the target envelope data from the target storage space based on the target start address and the first data point quantity.
[0008] In an exemplary embodiment, before performing a modulation operation on the target envelope data and the carrier data to obtain modulated waveform data, the method further includes: generating cosine waveform data using the carrier parameter in the target parameters to obtain the carrier data, where the frequency of the cosine waveform data is the carrier frequency in the carrier parameter, the amplitude of the cosine waveform data is the carrier amplitude in the carrier parameter, and the phase of the cosine waveform data is the carrier phase in the carrier parameter.
[0009] In an exemplary embodiment, performing a modulation operation on the target envelope data and the carrier data to obtain modulated waveform data includes: modulating the target envelope data and the carrier data through the modulation method in the target parameters to obtain the modulated waveform data.
[0010] In an exemplary embodiment, a second waveform adjustment operation is performed on the above modulation waveform data to obtain first regulated waveform data, including: adjusting the amplitude of the above modulation waveform data according to the above amplitude parameter to obtain initial regulated waveform data, where the number of data points in the above initial regulated waveform data is the above first number of data points, and the amplitude of the above initial regulated waveform data is within the above target amplitude range; based on the second number of data points and the third number of data points in the above data point parameter, performing an adjustment operation on the data points in the above initial regulated waveform data and the amplitudes corresponding to the data points to obtain the above first regulated waveform data, where the above second number of data points is the number of data points to be pre-adjusted, the above third number of data points is the number of data points to be post-adjusted, the number of data points in the above first regulated waveform data is the sum of the above first number of data points, the above second number of data points, and the above third number of data points, and the amplitude of the above first regulated waveform data is within the above target amplitude range.
[0011] In an exemplary embodiment, adjusting the amplitude of the above modulation waveform data according to the above amplitude parameter to obtain initial regulated waveform data includes: calculating a scaling factor based on the step value in the above amplitude parameter and the amplitude range of the above modulation waveform data, where the above scaling factor is used to adjust the amplitude of the above modulation waveform data; traversing the data points of the above modulation waveform data, calculating the product of the amplitude corresponding to each data point of the above modulation waveform data and the above scaling factor to obtain the initial amplitude of the above first regulated waveform data; calculating the difference between the above initial amplitude and the offset value to obtain the amplitude of the above first regulated waveform data, where the above offset value is used to adjust the above initial amplitude and is used to control the amplitude of the above second adjusted waveform data within the above target amplitude range; determining the above initial regulated waveform data based on the data points of the above first regulated waveform data and the amplitude of the above first regulated waveform data.
[0012] In an exemplary embodiment, after the waveform synthesis component is deployed in any of the above waveform generators and performs a second waveform adjustment operation on the above modulation waveform data to obtain first regulated waveform data, the method further includes: receiving an acquisition instruction sent by the above waveform synthesis component; in response to the above acquisition instruction, sending the above first regulated waveform data to the above waveform synthesis component.
[0013] In an exemplary implementation, the above waveform synthesis component is used to obtain the index sent by the above host computer; and is used to send the obtained instruction to the above waveform generation component and other waveform generation components based on the above index, so as to instruct the above waveform generation component to send the above first regulation waveform data, and the above other waveform generation components to send other first regulation waveform data, wherein the above waveform generation component is further used to synthesize the above first regulation waveform data and the above other first regulation waveform data to obtain target regulation waveform data, and the above other first regulation waveform data is data generated by the above other waveform generation components based on other target parameters.
[0014] In an exemplary implementation, the digital-to-analog conversion component is deployed in any of the above waveform generators. After the above waveform synthesis component synthesizes the above first regulation waveform data and the above other first regulation waveform data to obtain the above target regulation waveform data, the method further includes: the above waveform synthesis component responds to a second trigger signal and sends the above target regulation waveform data to the above digital-to-analog conversion component, wherein the above digital-to-analog conversion component is used to convert the above target regulation waveform data into a regulation signal, and the above regulation signal is used to instruct any of the above waveform generators to generate a regulation waveform based on the above target regulation waveform data.
[0015] According to another implementation of the present application, a device for generating regulation waveform data is provided, which is applied to a waveform generation component. The above waveform generation component is deployed in any waveform generator, and the above any waveform generator is connected to a host computer. The device includes: a first acquisition module, configured to acquire target parameters sent by the above host computer, wherein the above target parameters include a category parameter, a data point parameter, and an amplitude parameter; a second acquisition module, configured to acquire target envelope data from a storage component according to the above category parameter and a first data point quantity in the above data point parameter, wherein the above first data point quantity is the number of data points in the above target envelope data; a first execution module, configured to perform a modulation operation on the above target envelope data and carrier data to obtain modulation waveform data, wherein the number of data points in the above modulation waveform data and the number of data points in the above carrier data are both the above first data point quantity, and the amplitude of the above modulation waveform data is determined according to the amplitude of the above target envelope data and the amplitude of the above carrier data; a second execution module, configured to perform an adjustment operation on the above modulation waveform data to obtain first regulation waveform data, wherein the number of data points in the above first regulation waveform data is determined according to the above first data point quantity and the above data point parameter, and the amplitude of the above first regulation waveform data is determined according to a target amplitude range in the above amplitude parameter.
[0016] In an exemplary implementation, the communication interface component is deployed in any of the above waveform generators. The above first acquisition module includes: a first response sub-module, configured to obtain the target parameters sent by the host computer in response to the first trigger signal through the communication interface component, where the first trigger signal is used to instruct the host computer to send the target parameters, and the first trigger signal is a signal sent to the host computer after the storage component finishes the storage operation on the target envelope data.
[0017] In an exemplary implementation, the storage component performs the above storage operation through the following steps: obtaining the target envelope data sent by the host computer through the communication interface component; storing the target envelope data in a target storage space matching the category according to the category of the target envelope data.
[0018] In an exemplary implementation, the above second acquisition module includes: a first mapping sub-module, configured to map the category parameter to a target start address, where the target start address is the address of the target storage space in the storage component for storing the target envelope data; a first reading sub-module, configured to read the target envelope data from the target storage space based on the target start address and the first data point quantity.
[0019] In an exemplary implementation, the above device further includes: a first generation module, configured to generate cosine waveform data by using the carrier parameter in the target parameter to obtain the carrier data, where the frequency of the cosine waveform data is the carrier frequency in the carrier parameter, the amplitude of the cosine waveform data is the carrier amplitude in the carrier parameter, and the phase of the cosine waveform data is the carrier phase in the carrier parameter.
[0020] In an exemplary implementation, the above first execution module includes: a first execution sub-module, configured to modulate the target envelope data and the carrier data through the modulation method in the target parameter to obtain the modulated waveform data.
[0021] In an exemplary embodiment, the above-mentioned second execution module includes: a first adjustment sub-module, configured to adjust the amplitude of the above-mentioned modulation waveform data according to the above-mentioned amplitude parameter to obtain initial regulated waveform data, wherein the number of data points in the above-mentioned initial regulated waveform data is the above-mentioned first number of data points, and the amplitude of the above-mentioned initial regulated waveform data is within the above-mentioned target amplitude range; a second execution sub-module, configured to perform an adjustment operation on the data points in the above-mentioned initial regulated waveform data and the amplitudes corresponding to the data points based on the second number of data points and the third number of data points in the above-mentioned data point parameter to obtain the above-mentioned first regulated waveform data, wherein the above-mentioned second number of data points is the number of data points to be pre-adjusted, the above-mentioned third number of data points is the number of data points to be post-adjusted, the number of data points in the above-mentioned first regulated waveform data is the sum of the above-mentioned first number of data points, the above-mentioned second number of data points, and the above-mentioned third number of data points, and the amplitude of the above-mentioned first regulated waveform data is within the above-mentioned target amplitude range.
[0022] In an exemplary embodiment, the above-mentioned first adjustment sub-module includes: a first calculation unit, configured to calculate a scaling factor based on the step value in the above-mentioned amplitude parameter and the amplitude range of the above-mentioned modulation waveform data, wherein the above-mentioned scaling factor is used to adjust the amplitude of the above-mentioned modulation waveform data; a second calculation unit, configured to traverse the data points of the above-mentioned modulation waveform data and calculate the product of the amplitude corresponding to each data point of the above-mentioned modulation waveform data and the above-mentioned scaling factor to obtain the initial amplitude of the above-mentioned first regulated waveform data; a third calculation unit, configured to calculate the difference between the above-mentioned initial amplitude and the offset value to obtain the amplitude of the above-mentioned first regulated waveform data, wherein the above-mentioned offset value is used to adjust the above-mentioned initial amplitude and is used to control the amplitude of the above-mentioned second adjusted waveform data within the above-mentioned target amplitude range; a first determination unit, configured to determine the above-mentioned initial regulated waveform data based on the data points of the above-mentioned first regulated waveform data and the amplitude of the above-mentioned first regulated waveform data.
[0023] In an exemplary embodiment, the above-mentioned device further includes: a first receiving module, configured to, after a waveform synthesis component is deployed in any of the above-mentioned waveform generators and a second waveform adjustment operation is performed on the above-mentioned modulation waveform data to obtain the first regulated waveform data, receive an acquisition instruction sent by the above-mentioned waveform synthesis component; a first sending module, configured to respond to the above-mentioned acquisition instruction and send the above-mentioned first regulated waveform data to the above-mentioned waveform synthesis component.
[0024] In an exemplary implementation, the above waveform synthesis component is used to obtain the index sent by the above host computer; and is used to send the above acquisition instruction to the above waveform generation component and other waveform generation components based on the above index, so as to instruct the above waveform generation component to send the above first regulation waveform data, and the above other waveform generation components to send other first regulation waveform data, wherein the above waveform generation component is further used to synthesize the above first regulation waveform data and the above other first regulation waveform data to obtain target regulation waveform data, and the above other first regulation waveform data is data generated by the above other waveform generation components based on other target parameters.
[0025] In an exemplary implementation, the digital-to-analog conversion component is deployed in any of the above waveform generators. After the above waveform synthesis component synthesizes the above first regulation waveform data and the above other first regulation waveform data to obtain the above target regulation waveform data, the device further includes: the above waveform synthesis component responds to a second trigger signal and sends the above target regulation waveform data to the above digital-to-analog conversion component, wherein the above digital-to-analog conversion component is used to convert the above target regulation waveform data into a regulation signal, and the above regulation signal is used to instruct any of the above waveform generators to generate a regulation waveform based on the above target regulation waveform data.
[0026] According to another implementation of the present application, there is also provided an arbitrary waveform generator, in which a waveform generation component, a storage component, a communication interface component, a digital-to-analog conversion component, and a waveform synthesis component are deployed, wherein the above waveform generation component is configured to execute the steps in any of the above method implementations when running.
[0027] According to another implementation of the present application, there is also provided a storage server, the above storage server is respectively connected to a cloud server and a host server, the above storage server includes a storage pool, and the above storage pool includes a plurality of storage volumes, wherein the above storage server is configured to execute the steps in any of the above method implementations when running.
[0028] According to another implementation of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the above computer program is configured to execute the steps in any of the above method implementations when running.
[0029] According to another implementation of the present application, there is also provided an electronic device, including a memory and a processor, a computer program is stored in the above memory, and the above processor is configured to run the above computer program to execute the steps in any of the above method implementations.
[0030] According to another embodiment of the present application, there is also provided a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above method embodiments.
[0031] Through the present application, according to the category parameter and data point parameter sent by the host computer, target envelope data is obtained from the storage component; based on the number of data points and amplitude of the target envelope data and carrier data, a modulation operation is performed on the target envelope data and carrier data to obtain modulated waveform data; based on the number of data points, assignment, and data point parameter of the modulated waveform data, an adjustment operation is performed on the modulated waveform data to obtain first regulated waveform data. Due to the present application, the target envelope data is pre-stored in the storage component of an arbitrary waveform generator, and when generating regulated waveform data subsequently, the required target envelope data can be directly obtained from local storage, reducing the burden of data transmission. At the same time, by obtaining the target parameters sent by the host computer, the type and number of data points of the required target envelope data can be accurately determined, and the target parameters can be quickly adjusted according to different experimental requirements, making the generation process more flexible and efficient. Therefore, it is possible to solve the problem of low efficiency in generating regulated waveform data in the related art and achieve the effect of efficiently generating regulated waveform data. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 is a hardware structure block diagram of a server device for a method of generating regulated waveform data according to an embodiment of the present application;
[0033] Figure 2 is a flowchart of a method of generating regulated waveform data according to an embodiment of the present application;
[0034] Figure 3 is an architecture diagram of a method of generating regulated waveform data according to a specific embodiment of the present application;
[0035] Figure 4 is a schematic diagram of a method of generating regulated waveform data according to a specific embodiment of the present application;
[0036] Figure 5 is a flowchart of a method of generating regulated waveform data according to a specific embodiment of the present application;
[0037] Figure 6 is a structure block diagram of a device for generating regulated waveform data according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0038] The embodiments of the present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0039] It should be noted that in the description, claims and the above drawings of this application, technical terms such as "first" and "second" are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.
[0040] The method embodiments provided in the embodiments of this application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 is a hardware structure block diagram of a server device for a method of generating regulated waveform data according to an embodiment of this application. As Figure 1 shown, the server device may include one or more ( Figure 1 only one is shown in the figure) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the above server device may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown is only illustrative and does not limit the structure of the above server device. For example, the server device may further include more or fewer components than Figure 1 shown in the figure, or have a different configuration from Figure 1 shown in the figure.
[0041] The memory 104 can be used to store computer programs. For example, software programs and modules of application software, such as the computer program corresponding to a method of generating regulated waveform data in the embodiments of this application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory set relative to the processor 102, and these process memories can be connected to the server device through a network. Examples of the above network include, but are not limited to, the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof.
[0042] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by the communication provider of the server device. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (Radio Frequency, abbreviated as RF) module, which is used to communicate with the Internet wirelessly.
[0043] In this embodiment, a method for generating regulated waveform data is provided, which is applied to a waveform generation component. The above waveform generation component is deployed in any waveform generator, and the above any waveform generator is connected to a host computer. Figure 2 It is a flowchart of a method for generating regulated waveform data according to an embodiment of the present application, as Figure 2 shown. The process includes the following steps:
[0044] Step S202, obtain the target parameters sent by the above host computer, where the above target parameters include a category parameter, a data point parameter, and an amplitude parameter;
[0045] Optionally, the host computer can be a computer responsible for high-level control and management tasks.
[0046] Optionally, the target parameters are waveform parameters used to indicate the generation of specific regulated waveform data.
[0047] Optionally, the category parameter is used to indicate the type of envelope data. For example, Gaussian envelope, rectangular envelope, etc.
[0048] Optionally, the data point parameter is used to indicate the number of data points in the regulated waveform data. The data point parameter determines the length of the generated regulated waveform data.
[0049] Optionally, the amplitude parameter is used to indicate the adjustment of the amplitude of the generated regulated waveform data. Through the amplitude parameter, it can be ensured that the amplitude of the regulated waveform data meets the experimental requirements.
[0050] Step S204, obtain the target envelope data from the storage component according to the above category parameter and the first data point number in the above data point parameter, where the above first data point number is the number of data points in the above target envelope data;
[0051] Optionally, the storage component is used to store the target envelope data. The storage component can be a memory in any waveform generator, where the memory is a non-volatile memory.
[0052] Step S206, perform a modulation operation on the above target envelope data and carrier data to obtain modulated waveform data, where the number of data points in the above modulated waveform data and the number of data points in the above carrier data are both the above first data point number, and the amplitude of the above modulated waveform data is determined according to the amplitude of the above target envelope data and the amplitude of the above carrier data;
[0053] Optionally, the carrier data is obtained based on the carrier parameter in the target parameters. The carrier parameter is used to indicate the carrier frequency, carrier amplitude, and carrier phase.
[0054] Optionally, the first data point quantity in the data point parameter ensures that the length of the target envelope data obtained from the memory component is not modulated to be consistent with the length of the waveform data. This guarantees the correctness and efficiency of the modulation operation.
[0055] Step S208: Perform an adjustment operation on the above-mentioned modulated waveform data to obtain first regulated waveform data, where the number of data points in the first regulated waveform data is determined according to the first data point quantity and the data point parameter, and the amplitude of the first regulated waveform data is determined according to the target amplitude range in the amplitude parameter.
[0056] Optionally, as Figure 3 shown Figure 3 is an architecture diagram of a method for generating regulated waveform data according to a specific implementation example of the present application. The host computer may be a computer, the waveform generation component may be a basic regulated waveform generation module, and the storage component may be an envelope storage module and a memory. For example, the basic regulated waveform generation module obtains waveform parameters sent by the host computer. Based on the category parameter and the first data point quantity in the waveform parameters, target envelope data is obtained from the memory. Carrier data is obtained based on the carrier frequency, carrier amplitude, and carrier phase in the waveform parameters, and the target envelope data and the carrier data are modulated to obtain modulated waveform data. Based on the amplitude parameter and the data point position parameter in the waveform parameters, the amplitude of the modulated waveform data is adjusted, and zero-padding is performed on the modulated waveform data to obtain first regulated waveform data.
[0057] Through this embodiment, according to the category parameter and the data point parameter sent by the host computer, target envelope data is obtained from the storage component; based on the number of data points and the amplitude of the target envelope data and the carrier data, a modulation operation is performed on the target envelope data and the carrier data to obtain modulated waveform data; based on the number of data points, the assignment, and the data point parameter of the modulated waveform data, an adjustment operation is performed on the modulated waveform data to obtain first regulated waveform data. Due to this embodiment, the target envelope data is pre-stored in the storage component of any waveform generator, and when generating regulated waveform data subsequently, the required target envelope data can be directly obtained from the local storage, reducing the burden of data transmission. At the same time, by obtaining the target parameters sent by the host computer, the type and the number of data points of the required target envelope data can be accurately determined, and the target parameters can be quickly adjusted according to different experimental requirements, making the generation process more flexible and efficient. Therefore, the problem of low efficiency in generating regulated waveform data in the related art can be solved, and the effect of efficiently generating regulated waveform data is achieved.
[0058] In an exemplary embodiment, a communication interface component is deployed in any of the above waveform generators to obtain target parameters sent by the host computer, including: obtaining the target parameters sent by the host computer in response to a first trigger signal through the communication interface component, where the first trigger signal is used to instruct the host computer to send the target parameters, and the first trigger signal is a signal sent to the host computer after the storage component finishes the storage operation on the target envelope data.
[0059] Optionally, the first trigger signal can be a signal sent by an external device to the host computer after determining that the storage component includes target envelope data, or a signal sent by any waveform generator to the host computer after determining that the storage component includes target envelope data, or can be automatically triggered and generated by the host computer after sending the target envelope data to the storage component.
[0060] Optionally, the communication interface component provides a communication link between the host computer and the waveform generation component in any waveform generator. As Figure 3 shown, the communication interface component can be a communication interface module, and the computer sends target parameters to the basic regulation waveform generation module through the communication interface module.
[0061] In this embodiment, through the first trigger signal, the operations between the storage component and the host computer can be precisely synchronized, ensuring that the host computer sends the target parameters only after the storage component completes the storage of the envelope data, achieving the purpose of avoiding timing errors in data transmission that may cause data loss or errors.
[0062] In an exemplary embodiment, the storage component performs the above storage operation through the following steps: obtaining the target envelope data sent by the host computer through the communication interface component; storing the target envelope data into a target storage space matching the category according to the category of the target envelope data.
[0063] Optionally, the target envelope data is generated by the host computer through software. The target envelope data includes but is not limited to Gaussian envelope, rectangular envelope, exponential envelope, triangular envelope, sine envelope.
[0064] Optionally, according to experimental requirements, target envelope data with different numbers of data points can be re-stored in the storage component, and the target envelope data can be reused before being re-set.
[0065] Optionally, different types of envelope data have different storage spaces, and the envelope data is stored in different storage spaces according to the type. The memory component reserves sufficient storage space for storing each type of envelope data, and there are unused storage areas in the storage space for storing the envelope data.
[0066] Optionally, the communication interface component provides a communication link between the host computer and the storage component in the arbitrary waveform generator. As Figure 3 shown, the communication interface component may be a communication interface module, and the storage component includes an envelope storage module and a memory. The envelope storage module writes the target envelope data provided by the computer through the communication interface module into the target storage space in the memory.
[0067] In this embodiment, by storing the target envelope data into the storage space that matches it according to the category of the target envelope data, the required target envelope data can be quickly located and obtained, reducing the data retrieval time. Especially when different categories of envelope data need to be frequently accessed, the purpose of improving the data access speed and accuracy is achieved.
[0068] In an exemplary embodiment, obtaining the target envelope data from the storage component according to the above category parameter and the first data point quantity in the above data point parameter includes: mapping the above category parameter to a target start address, where the above target start address is the address of the target storage space in the above storage component for storing the above target envelope data; based on the above target start address and the above first data point quantity, reading the above target envelope data from the above target storage space.
[0069] Optionally, the first data point quantity is the same as the data point quantity of the target envelope data.
[0070] Optionally, mapping the above category parameter to a target start address includes: obtaining N start addresses of N storage spaces for N types of envelope data in the storage component, where N is a natural number greater than or equal to 1; generating a mapping information table based on the N category parameters and N start addresses of the envelope data; mapping the above category parameter to a target start address based on the mapping information table.
[0071] Optionally, mapping the above category parameter to a target start address includes: obtaining a mapping information table sent by the host computer, where the mapping information table is used to represent the one-to-one mapping relationship between the category parameter of the envelope data and the start address of the storage space; mapping the category parameter of the target envelope data to a target start address based on the mapping information table. The mapping information table provides a clear corresponding relationship between the category parameter and the start address. By generating or obtaining the mapping information table, the category parameter can be quickly mapped to the target start address.
[0072] Optionally, as Figure 3 shown, the waveform generation component may be a basic regulation waveform generation module. The envelope loading module in the basic regulation waveform generation module maps the category parameter to a target start address, and reads the data of the first data point quantity based on the target start address to obtain the target envelope data.
[0073] In this embodiment, by mapping the category parameter to the target start address, the corresponding target envelope data in the storage component can be quickly located, achieving the purpose of improving the efficiency of obtaining the target envelope data.
[0074] In an exemplary embodiment, before performing a modulation operation on the above-mentioned target envelope data and carrier data to obtain modulated waveform data, the above method further includes: generating cosine waveform data using the carrier parameter in the above-mentioned target parameter to obtain the above-mentioned carrier data, where the frequency of the above-mentioned cosine waveform data is the carrier frequency in the above-mentioned carrier parameter, the amplitude of the above-mentioned cosine waveform data is the carrier amplitude in the above-mentioned carrier parameter, and the phase of the above-mentioned cosine waveform data is the carrier phase in the above-mentioned carrier parameter.
[0075] Optionally, the carrier frequency is used to indicate the frequency of the cosine carrier. If the carrier amplitude is not included in the target parameter, it means the carrier data has a unit amplitude. If the carrier phase is not included, it means the carrier data has an initial phase of 0.
[0076] Optionally, as Figure 3 shown, the waveform generation component can be a basic regulation waveform generation module. The function generation module in the basic regulation waveform generation module generates cosine waveform data with a frequency of the carrier frequency as the carrier data, and the number of data points of the generated carrier data is equal to the number of data points of the target envelope data, which is equal to the first number of data points.
[0077] In this embodiment, the carrier data is generated through the carrier parameter (carrier frequency, carrier amplitude, carrier phase) in the target parameter, achieving the purpose of ensuring the accuracy of the carrier data. At the same time, these characteristics can be flexibly adjusted through the target parameter, achieving the purpose of improving the flexibility of generating the carrier data.
[0078] In an exemplary embodiment, performing a modulation operation on the above-mentioned target envelope data and carrier data to obtain modulated waveform data includes: modulating the above-mentioned target envelope data and the above-mentioned carrier data through the modulation method in the above-mentioned target parameter to obtain the above-mentioned modulated waveform data.
[0079] Optionally, the modulation method includes but is not limited to amplitude modulation, frequency modulation, phase modulation, quadrature modulation, and spread spectrum modulation.
[0080] Optionally, modulate the above-mentioned target envelope data and the above-mentioned carrier data through the modulation method in the above-mentioned target parameters to obtain the above-mentioned modulated waveform data, including: calculating the amplitude of the modulated waveform data corresponding to each pair of matching data points in the above-mentioned carrier data and the above-mentioned target envelope data based on the amplitude of the above-mentioned target envelope data and the amplitude of the above-mentioned carrier data; calculating the frequency of the modulated waveform data based on the frequency of the above-mentioned target envelope data and the frequency of the above-mentioned carrier data; calculating the phase of the modulated waveform data based on the phase of the above-mentioned target envelope data and the phase of the above-mentioned carrier data; determining the above-mentioned modulated waveform data based on each pair of matching data points, the amplitude of the modulated waveform data corresponding to each pair of matching data points, the frequency of the modulated waveform data, and the phase of the modulated waveform data.
[0081] Optionally, as Figure 3 shown, the waveform generation component may be a basic regulation waveform generation module. The waveform modulation module in the basic regulation waveform generation module modulates the target envelope data and the carrier data to obtain the modulated waveform data. The number of data points of the modulated waveform data is equal to the number of data points of the target envelope data. The waveform cache module in the basic regulation waveform generation module stores the modulated waveform data. If the envelope is not adjusted, the modulated waveform data can be reused without regenerating the modulated waveform data.
[0082] In an exemplary embodiment, perform a second waveform adjustment operation on the above-mentioned modulated waveform data to obtain the first regulation waveform data, including: adjusting the amplitude of the above-mentioned modulated waveform data according to the above-mentioned amplitude parameter to obtain the initial regulation waveform data, where the number of data points in the above-mentioned initial regulation waveform data is the above-mentioned first data point number, and the amplitude of the above-mentioned initial regulation waveform data is within the above-mentioned target amplitude range; performing an adjustment operation on the data points in the above-mentioned initial regulation waveform data and the amplitudes corresponding to the data points based on the second data point number and the third data point number in the above-mentioned data point parameter to obtain the above-mentioned first regulation waveform data, where the above-mentioned second data point number is the number of data points to be pre-adjusted, the above-mentioned third data point number is the number of data points to be post-adjusted, the number of data points in the above-mentioned first regulation waveform data is the sum value of the above-mentioned first data point number, the above-mentioned second data point number, and the above-mentioned third data point number, and the amplitude of the above-mentioned first regulation waveform data is within the above-mentioned target amplitude range.
[0083] Optionally, the data point parameter is used to indicate the waveform composition of the first regulation waveform data. The data point parameter includes the second data point number indicating the number of pre-padding zero data, the first data point number of the data points of the modulated waveform data after amplitude adjustment, and the third data point number of the number of post-padding zero data.
[0084] Optionally, as Figure 3As shown, the waveform generation component can be a basic regulation waveform generation module. The amplitude adjustment module in the basic regulation waveform generation module adjusts the amplitude of the modulation waveform data stored in the waveform cache module to obtain initial regulation waveform data. The number of data points of the initial regulation waveform data is equal to the number of data points of the target envelope data, i.e., the first number of data points. The waveform composition module in the basic regulation waveform generation module zeros the initial regulation waveform data according to the number of data points of the pre-zero padding data and the number of data points of the post-zero padding data to obtain the first regulation waveform data.
[0085] Different experiments may require different waveforms. In this embodiment, by adjusting the amplitude of the modulation waveform data through the amplitude parameter, the amplitude of the waveform can be precisely controlled to ensure that the amplitude of the initial regulation waveform data is within the target amplitude range. By adjusting the number of data points before and after, the purpose of flexibly adjusting the shape of the waveform is achieved.
[0086] In an exemplary embodiment, adjusting the amplitude of the above modulation waveform data according to the above amplitude parameter to obtain initial regulation waveform data includes: calculating a scaling factor based on the step value in the above amplitude parameter and the amplitude range of the above modulation waveform data, where the above scaling factor is used to adjust the amplitude of the above modulation waveform data; traversing the data points of the above modulation waveform data and calculating the product of the amplitude corresponding to each data point of the above modulation waveform data and the above scaling factor to obtain the initial amplitude of the above first regulation waveform data; calculating the difference between the above initial amplitude and the offset value to obtain the amplitude of the above first regulation waveform data, where the above offset value is used to adjust the above initial amplitude and to control the amplitude of the above second adjustment waveform data within the above target amplitude range; determining the above initial regulation waveform data based on the data points of the above first regulation waveform data and the amplitude of the above first regulation waveform data.
[0087] Optionally, the amplitude parameter is used to indicate adjusting the amplitude of the modulation waveform data, and the amplitude parameter includes a step value and a target amplitude range.
[0088] Optionally, the scaling factor is used to adjust the amplitude of the modulation waveform data. Through the scaling factor, the amplitude of the modulation waveform data can be adjusted to within the target amplitude range. The step value is used to determine the accuracy of the amplitude adjustment, determines the minimum unit of the amplitude adjustment, and ensures the fineness of the amplitude adjustment. The offset value is used to ensure that the final amplitude is within the target amplitude range.
[0089] In this embodiment, by precisely calculating the amplitude of each data point, the error in the modulation process is reduced, and the purpose of improving the accuracy of the waveform data is achieved.
[0090] In an exemplary embodiment, after the waveform synthesis component is deployed in any of the above waveform generators and performs a second waveform adjustment operation on the above modulation waveform data to obtain first regulated waveform data, the method further includes: receiving an acquisition instruction sent by the waveform synthesis component; and in response to the acquisition instruction, sending the first regulated waveform data to the waveform synthesis component.
[0091] In an exemplary embodiment, the waveform synthesis component is configured to obtain an index sent by the host computer; and is configured to send the acquisition instruction to the waveform generation component and other waveform generation components based on the index, so as to instruct the waveform generation component to send the first regulated waveform data and the other waveform generation components to send other first regulated waveform data, wherein the waveform generation component is further configured to synthesize the first regulated waveform data and the other first regulated waveform data to obtain target regulated waveform data, and the other first regulated waveform data is data generated by the other waveform generation components based on other target parameters.
[0092] Optionally, at least one waveform generation component and other waveform generation components are deployed in any waveform generator. The host computer provides other target parameters for the other waveform generation components that generate other first regulated waveform data.
[0093] Optionally, the parameters provided by the host computer for the waveform generation component and other waveform generation components carry the indexes of the waveform generation component and other waveform generation components that need to be used for the first regulated waveform data and other first regulated waveform data at the same time. As shown in Table 1:
[0094] Table 1:
[0095]
[0096] Optionally, as Figure 3 shown, the waveform generation component may be a basic regulated waveform generation module, the waveform synthesis component may be a waveform synthesis module, and both the first regulated waveform data and the other first regulated waveform data are basic regulated waveform data. The waveform synthesis module synthesizes a plurality of basic regulated waveform data generated by the basic regulated waveform generation modules to be used according to the basic regulated waveform generation module indexes into a target regulated waveform data by a point-by-point addition method. For example, a target regulated waveform data including two modulation waveform data with both amplitudes of the two modulation waveform data being v, as shown in the Figure 4 3rd waveform data in
[0097] In this embodiment, the waveform synthesis component sends a fetch instruction to the waveform generation component according to the index sent by the host computer, enabling the waveform synthesis component to flexibly fetch the required first regulation waveform data. At the same time, the waveform generation component and other waveform generation components can work independently to generate their respective first regulation waveform data, achieving the goal of efficiently generating regulation waveform data. For example, as the experimental requirements increase, more waveform generation components can be added, and the waveform synthesis component can uniformly manage these newly added components, improving the flexibility and adaptability of the system. For example, the host computer can dynamically adjust the index according to the experimental requirements, and the waveform synthesis component can quickly respond and fetch the corresponding data.
[0098] In an exemplary embodiment, the digital-to-analog conversion component is deployed in any of the above waveform generators. After the waveform synthesis component synthesizes the first regulation waveform data and the other first regulation waveform data to obtain the target regulation waveform data, the method further includes: the waveform synthesis component responds to a second trigger signal and sends the target regulation waveform data to the digital-to-analog conversion component, where the digital-to-analog conversion component is used to convert the target regulation waveform data into a regulation signal, and the regulation signal is used to instruct any of the waveform generators to generate a regulation waveform based on the target regulation waveform data.
[0099] Optionally, as Figure 3 shown, the waveform generation component can be a basic regulation waveform generation module, the waveform synthesis component can be a waveform synthesis module, and both the first regulation waveform data and the other first regulation waveform data are basic regulation waveform data. The digital-to-analog conversion component can be a digital-to-analog conversion module. Under the trigger of a trigger signal, a Field-Programmable Gate Array (FPGA) sends the regulation waveform data to the digital-to-analog conversion module, and the digital-to-analog conversion module converts the target regulation waveform data into a regulation signal.
[0100] The following describes the present application with specific embodiments:
[0101] In this specific embodiment, a system for generating regulation waveform data includes a computer, a clock source, a delay generator, and any waveform generator. The clock source provides a 10 MHz reference clock for the system, the delay generator provides a trigger signal for the any waveform generator, and the any waveform generator uses a 16-bit precision digital-to-analog converter with a sampling rate of 1 GHz.
[0102] The specific composition of the system is as Figure 3 shown, the waveform generation component can be the Figure 3 basic regulation waveform generation module in, the host computer can be the Figure 3 computer in, and the storage component can be the Figure 3The envelope storage module and the memory in it, the communication interface component can be Figure 3 the communication interface module in it, the waveform synthesis component can be Figure 3 the waveform synthesis module in it, the digital-to-analog conversion component can be the digital-to-analog conversion module.
[0103] For example, in the experiment, only the amplitude of the modulation waveform is adjusted, the waveform composition of the basic control waveform data is not adjusted, and the envelope is not adjusted. The length of the control waveform required for the experiment is 100 microseconds. According to the sampling rate of any waveform generator, the number of data points of the control waveform data is 100,000. According to the accuracy of the digital-to-analog converter of any waveform generator, the total number of bytes of the waveform data is 200,000 bytes. The composition of the control waveform is: a waveform with an amplitude of zero, with a length of 4.5 microseconds; a modulation waveform with a Gaussian envelope and a cosine carrier, with a length of 0.5 microseconds; a waveform with an amplitude of zero, with a length of 4.5 microseconds; a modulation waveform with a Gaussian envelope and a cosine carrier, with a length of 0.5 microseconds; a waveform with an amplitude of zero, with a length of 90 microseconds.
[0104] Figure 5 is a flowchart of a method for generating control waveform data according to a specific embodiment of the present application, as Figure 5 shown, specifically including the following steps:
[0105] S502, in the preset envelope data working state, the computer presets envelope data to the memory of any waveform generator: For example, in the memory, each type of envelope data can store 4,096 data, and 8,192 bytes of storage space are required. The Gaussian envelope starts to be stored at address 0x0000, and the category parameter is 0; the rectangular envelope starts to be stored at address 0x2000, and the category parameter is 1. The envelope storage module writes the two types of envelope data, namely the Gaussian envelope and the rectangular envelope, provided by the computer through the communication interface module into the corresponding storage spaces in the memory. The number of data points is 500 for both. There is 7,192 bytes of storage area unused in the storage space for storing the Gaussian envelope, and there is also 7,192 bytes of storage area unused in the storage space for storing the rectangular envelope.
[0106] S504, in the working state of generating a control signal, any waveform generator generates the control signal required for the experiment. The host computer provides two sets of parameters for the two basic control waveform generation modules through the communication interface module, as shown in Table 2:
[0107] Table 2:
[0108]
[0109] f represents the frequency of the carrier data; [v 0 :v 1 :step] represents that the step value is step and the range is [v 0 ,v1 The amplitude range of 1 The second data point quantity representing the number of data points of the pre-padding zero data, l represents the first data point quantity of the modulated waveform data after amplitude adjustment, and l 2 The third data point quantity representing the number of data points of the post-padding zero data.
[0110] S506. The envelope loading module in the basic regulation waveform generation module 0 loads envelope data with a category parameter of 0 and 500 data points from the memory according to the parameters, that is, loads 1000 bytes of Gaussian envelope from the memory address 0x0000. The function generation module in the basic regulation waveform generation module 0 generates cosine waveform data with a carrier frequency of f and 500 data points as carrier data. The waveform modulation module in the basic regulation waveform generation module 0 modulates the Gaussian envelope data and the carrier data to obtain modulated waveform data with 500 data points, and stores the modulated waveform data in the waveform cache module. The amplitude adjustment module in the basic regulation waveform generation module 0, based on the stored modulated waveform data and the step value and amplitude range in the amplitude parameter, obtains the modulated waveform data after amplitude adjustment (corresponding to the above initial regulation waveform data), and obtains the basic regulation waveform data (corresponding to the above first regulation waveform data) based on the modulated waveform data after amplitude adjustment and the data point parameter. The basic regulation waveform data with the amplitude of the modulated waveform data being v is as Figure 4 shown by the first waveform data in
[0111] The envelope loading module in the basic regulation waveform generation module 1 loads envelope data with a category parameter of 0 and 500 data points from the memory according to the parameters, that is, loads 1000 bytes of Gaussian envelope from the memory address 0x0000. The function generation module in the basic regulation waveform generation module 0 generates cosine waveform data with a carrier frequency of f and 500 data points as carrier data. The waveform modulation module in the basic regulation waveform generation module 0 modulates the Gaussian envelope data and the carrier data to obtain modulated waveform data with 500 data points, and stores the modulated waveform data in the waveform cache module. The amplitude adjustment module in the basic regulation waveform generation module 0, based on the stored modulated waveform data and the step value and amplitude range in the amplitude parameter, obtains the modulated waveform data after amplitude adjustment, and obtains the basic regulation waveform data (corresponding to the above other regulation waveform data) based on the modulated waveform data after amplitude adjustment and the data point parameter. The basic regulation waveform data with the amplitude of the modulated waveform data being v is as Figure 4 shown by the second waveform data in
[0112] S508, The host computer provides the index of the basic control waveform generation module required for the waveform synthesis module to generate the control waveform. The indexes are 0 and 1, indicating that the basic control waveform data to be synthesized comes from the basic control waveform generation module 0 and the basic control waveform generation module 1. The waveform synthesis module synthesizes the two basic control waveform data generated by the basic control waveform generation module 0 and the basic control waveform generation module 1 into a target control waveform data by the method of point-by-point addition. The control waveform data containing two modulation waveform data with the amplitude of both modulation waveform data being v is as Figure 4 shown by the third waveform data in
[0113] S510, Under the trigger of the trigger signal, the FPGA sends the target control waveform data to the digital-to-analog conversion module. The digital-to-analog conversion module converts the control waveform data into a control signal, and the arbitrary waveform generator generates a control waveform based on the target control waveform data.
[0114] Through the description of the above implementation manners, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation manner. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
[0115] In this embodiment, a device for generating control waveform data is also provided, which is applied to a waveform generation component. The above waveform generation component is deployed in an arbitrary waveform generator, and the above arbitrary waveform generator is connected to the host computer. The device is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0116] Figure 6 is a structural block diagram of a device for generating control waveform data according to an embodiment of the present application, as Figure 6 shown, the device includes:
[0117] The first acquisition module 602 is used to acquire the target parameters sent by the above host computer, where the above target parameters include a category parameter, a data point parameter, and an amplitude parameter;
[0118] A second acquisition module 604, configured to acquire target envelope data from a storage component according to the above category parameter and the number of first data points in the above data point parameter, where the number of first data points is the number of data points in the above target envelope data;
[0119] A first execution module 606, configured to perform a modulation operation on the above target envelope data and carrier data to obtain modulated waveform data, where the number of data points in the above modulated waveform data and the number of data points in the above carrier data are both the number of first data points, and the amplitude of the above modulated waveform data is determined according to the amplitude of the above target envelope data and the amplitude of the above carrier data;
[0120] A second execution module 608, configured to perform an adjustment operation on the above modulated waveform data to obtain first regulated waveform data, where the number of data points in the above first regulated waveform data is determined according to the number of first data points and the above data point parameter, and the amplitude of the above first regulated waveform data is determined according to the target amplitude range in the above amplitude parameter.
[0121] In an exemplary embodiment, the communication interface component is deployed in any of the above waveform generators. The above first acquisition module includes: a first response sub-module, configured to acquire the above target parameter sent by the host computer in response to the first trigger signal through the above communication interface component, where the first trigger signal is used to instruct the host computer to send the above target parameter, and the first trigger signal is a signal sent to the host computer after the above storage component finishes storing the above target envelope data.
[0122] In an exemplary embodiment, the above storage component performs the above storage operation through the following steps: acquiring the above target envelope data sent by the host computer through the above communication interface component; storing the above target envelope data in a target storage space matching the above category according to the category of the above target envelope data.
[0123] In an exemplary embodiment, the above second acquisition module includes: a first mapping sub-module, configured to map the above category parameter to a target starting address, where the target starting address is the address of the target storage space in the above storage component for storing the above target envelope data; a first reading sub-module, configured to read the above target envelope data from the above target storage space based on the above target starting address and the number of first data points.
[0124] In an exemplary embodiment, the above-mentioned device further includes: a first generation module, configured to generate cosine waveform data by using the carrier parameter in the above-mentioned target parameters to obtain the above-mentioned carrier data, where the frequency of the above-mentioned cosine waveform data is the carrier frequency in the above-mentioned carrier parameters, the amplitude of the above-mentioned cosine waveform data is the carrier amplitude in the above-mentioned carrier parameters, and the phase of the above-mentioned cosine waveform data is the carrier phase in the above-mentioned carrier parameters.
[0125] In an exemplary embodiment, the above-mentioned first execution module includes: a first execution sub-module, configured to modulate the above-mentioned target envelope data and the above-mentioned carrier data by using the modulation method in the above-mentioned target parameters to obtain the above-mentioned modulated waveform data.
[0126] In an exemplary embodiment, the above-mentioned second execution module includes: a first adjustment sub-module, configured to adjust the amplitude of the above-mentioned modulated waveform data according to the above-mentioned amplitude parameter to obtain initial regulated waveform data, where the number of data points in the above-mentioned initial regulated waveform data is the above-mentioned first data point number, and the amplitude of the above-mentioned initial regulated waveform data is within the above-mentioned target amplitude range; a second execution sub-module, configured to perform an adjustment operation on the data points in the above-mentioned initial regulated waveform data and the amplitudes corresponding to the data points based on the second data point number and the third data point number in the above-mentioned data point parameters to obtain the above-mentioned first regulated waveform data, where the above-mentioned second data point number is the number of data points to be pre-adjusted, the above-mentioned third data point number is the number of data points to be post-adjusted, the number of data points in the above-mentioned first regulated waveform data is the sum value of the above-mentioned first data point number, the above-mentioned second data point number, and the above-mentioned third data point number, and the amplitude of the above-mentioned first regulated waveform data is within the above-mentioned target amplitude range.
[0127] In an exemplary embodiment, the above-mentioned first adjustment sub-module includes: a first calculation unit, configured to calculate a scaling factor based on the step value in the above-mentioned amplitude parameter and the amplitude range of the above-mentioned modulated waveform data, where the above-mentioned scaling factor is used to adjust the amplitude of the above-mentioned modulated waveform data; a second calculation unit, configured to traverse the data points of the above-mentioned modulated waveform data and calculate the product of the amplitude corresponding to each data point of the above-mentioned modulated waveform data and the above-mentioned scaling factor to obtain the initial amplitude of the above-mentioned first regulated waveform data; a third calculation unit, configured to calculate the difference between the above-mentioned initial amplitude and the offset value to obtain the amplitude of the above-mentioned first regulated waveform data, where the above-mentioned offset value is used to adjust the above-mentioned initial amplitude and is used to control the amplitude of the above-mentioned second adjusted waveform data within the above-mentioned target amplitude range; a first determination unit, configured to determine the above-mentioned initial regulated waveform data based on the data points of the above-mentioned first regulated waveform data and the amplitude of the above-mentioned first regulated waveform data.
[0128] In an exemplary embodiment, the above device further includes: a first receiving module, configured to, after the waveform synthesis component is deployed in any of the above waveform generators and performs a second waveform adjustment operation on the above modulation waveform data to obtain first regulated waveform data, receive an acquisition instruction sent by the waveform synthesis component; a first sending module, configured to, in response to the acquisition instruction, send the first regulated waveform data to the waveform synthesis component.
[0129] In an exemplary embodiment, the waveform synthesis component is configured to obtain an index sent by the host computer; and is configured to send the acquisition instruction to the waveform generation component and other waveform generation components based on the index, so as to instruct the waveform generation component to send the first regulated waveform data and the other waveform generation components to send other first regulated waveform data, wherein the waveform generation component is further configured to synthesize the first regulated waveform data and the other first regulated waveform data to obtain target regulated waveform data, and the other first regulated waveform data is data generated by the other waveform generation components based on other target parameters.
[0130] In an exemplary embodiment, the digital-to-analog conversion component is deployed in any of the above waveform generators. After the waveform synthesis component synthesizes the first regulated waveform data and the other first regulated waveform data to obtain the target regulated waveform data, the above device further includes: the waveform synthesis component responds to a second trigger signal and sends the target regulated waveform data to the digital-to-analog conversion component, wherein the digital-to-analog conversion component is configured to convert the target regulated waveform data into a regulated signal, and the regulated signal is used to instruct any of the above waveform generators to generate a regulated waveform based on the target regulated waveform data.
[0131] According to another embodiment of the present application, there is also provided an arbitrary waveform generator, in which a waveform generation component, a storage component, a communication interface component, a digital-to-analog conversion component, and a waveform synthesis component are deployed, wherein the waveform generation component is configured to execute the steps in any of the above method embodiments when running.
[0132] According to another embodiment of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0133] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited thereto: the above modules are all located in the same processor; or, the above-mentioned various modules are respectively located in different processors in any combination form.
[0134] Embodiments of the present application further provide a computer-readable storage medium storing a computer program, where the computer program is configured to execute the steps in any of the above method embodiments when running.
[0135] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks, or optical discs that can store computer programs.
[0136] Embodiments of the present application further provide an electronic device including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above method embodiments.
[0137] In an exemplary embodiment, the above electronic device may further include a transmission device and an input / output device, where the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0138] Embodiments of the present application further provide a computer program product. The above computer program product includes a computer program, and the above computer program implements the steps in any of the above method embodiments when executed by a processor.
[0139] Embodiments of the present application further provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, and the above computer program implements the steps in any of the above method embodiments when executed by a processor.
[0140] Embodiments of the present application further provide a computer program including computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to execute the steps in any of the above method embodiments.
[0141] Specific examples in this embodiment may refer to the examples described in the above embodiments and exemplary implementation manners, and will not be repeated here.
[0142] Obviously, those skilled in the art should understand that the various modules or steps of the present application described above can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a sequence different from that here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module for implementation. In this way, the present application is not limited to any specific combination of hardware and software.
[0143] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for generating control waveform data, characterized in that: Applied to a waveform generation component, the waveform generation component is deployed in an arbitrary waveform generator, the arbitrary waveform generator is connected to a host computer, and the method includes: Acquire the target parameters sent by the host computer, wherein the target parameters include category parameters, data point parameters and amplitude parameters; Retrieving target envelope data from a storage component according to the category parameter and a first number of data points in the data point parameter, wherein the first number of data points is the number of data points in the target envelope data; Performing a modulation operation on the target envelope data and the carrier data to obtain modulated waveform data, wherein the number of data points in the modulated waveform data and the number of data points in the carrier data are both the first number of data points, and the amplitude of the modulated waveform data is determined according to the amplitude of the target envelope data and the amplitude of the carrier data; An adjustment operation is performed on the modulated waveform data to obtain first control waveform data, wherein the number of data points in the first control waveform data is determined based on the first data point number and the data point parameters, and the amplitude of the first control waveform data is determined based on a target amplitude range in the amplitude parameters.
2. The method according to claim 1, characterized in that The communication interface component is deployed in the arbitrary waveform generator to obtain the target parameters sent by the host computer, including: The target parameter sent by the host computer in response to a first trigger signal is obtained through the communication interface component, wherein the first trigger signal is used to instruct the host computer to send the target parameter, and the first trigger signal is a signal sent to the host computer after the storage component completes the storage operation on the target envelope data.
3. The method according to claim 2, characterized in that The storage component performs the storage operation by following steps: Acquiring the target envelope data sent by the host computer through the communication interface component; According to the category of the target envelope data, the target envelope data is stored in a target storage space matching the category.
4. The method according to claim 1, characterized in that: Acquiring target envelope data from a storage component according to the category parameter and the first data point number in the data point parameter, comprising: Mapping the category parameter to a target start address, wherein the target start address is an address of a target storage space in the storage component for storing the target envelope data; The target envelope data is read from the target storage space based on the target start address and the first data point quantity.
5. The method according to claim 1, characterized in that Before performing a modulation operation on the target envelope data and the carrier data to obtain the modulated waveform data, the method further includes: Generate cosine waveform data using the carrier parameters in the target parameters to obtain the carrier data, wherein the frequency of the cosine waveform data is the carrier frequency in the carrier parameters, the amplitude of the cosine waveform data is the carrier amplitude in the carrier parameters, and the phase of the cosine waveform data is the carrier phase in the carrier parameters.
6. The method according to claim 1, characterized in that Performing a modulation operation on the target envelope data and the carrier data to obtain modulated waveform data includes: The target envelope data and the carrier data are modulated by the modulation method in the target parameters to obtain the modulated waveform data.
7. The method according to claim 1, characterized in that Performing an adjustment operation on the modulated waveform data to obtain first control waveform data includes: Adjusting the amplitude of the modulated waveform data according to the amplitude parameter to obtain initial control waveform data, wherein the number of data points in the initial control waveform data is the first number of data points, and the amplitude of the initial control waveform data is within the target amplitude range; Based on the second number of data points and the third number of data points in the data point parameters, an adjustment operation is performed on the data points in the initial control waveform data and the amplitudes corresponding to the data points to obtain the first control waveform data, wherein the second number of data points is the number of data points to be pre-adjusted, the third number of data points is the number of data points to be post-adjusted, the number of data points in the first control waveform data is the sum of the first number of data points, the second number of data points and the third number of data points, and the amplitude of the first control waveform data is within the target amplitude range.
8. The method according to claim 7, characterized in that Adjusting the amplitude of the modulated waveform data according to the amplitude parameter to obtain initial control waveform data includes: Calculating a scaling factor based on the step value in the amplitude parameter and the amplitude range of the modulated waveform data, wherein the scaling factor is used to adjust the amplitude of the modulated waveform data; Traversing the data points of the modulation waveform data, calculating the product between the amplitude corresponding to each data point of the modulation waveform data and the scaling factor, and obtaining the initial amplitude of the first modulation waveform data; Calculating the difference between the initial amplitude and the offset value to obtain the amplitude of the first regulating waveform data, wherein the offset value is used to adjust the initial amplitude and to control the amplitude of the second regulating waveform data within the target amplitude range; The initial regulated waveform data is determined based on the data points of the first regulated waveform data and the amplitude of the first regulated waveform data.
9. The method according to claim 1, characterized in that: The waveform synthesis component is deployed in the arbitrary waveform generator, and after performing a second waveform adjustment operation on the modulated waveform data to obtain the first control waveform data, the method further includes: Receiving an acquisition instruction sent by the waveform synthesis component; In response to the acquisition instruction, the first regulation waveform data is sent to the waveform synthesis component.
10. The method according to claim 9, characterized in that The waveform synthesis component is used to obtain the index sent by the host computer; and is used to send the acquisition instruction to the waveform generation component and other waveform generation components based on the index to instruct the waveform generation component to send the first control waveform data and the other waveform generation components to send other first control waveform data, wherein the waveform generation component is also used to synthesize the first control waveform data and the other first control waveform data to obtain target control waveform data, and the other first control waveform data is data generated by the other waveform generation components based on other target parameters.
11. The method according to claim 10, characterized in that The digital-to-analog conversion component is deployed in the arbitrary waveform generator, and after the waveform synthesis component synthesizes the first control waveform data and the other first control waveform data to obtain the target control waveform data, the method further includes: The waveform synthesis component responds to the second trigger signal and sends the target control waveform data to the digital-to-analog conversion component, wherein the digital-to-analog conversion component is used to convert the target control waveform data into a control signal, and the control signal is used to instruct the arbitrary waveform generator to generate a control waveform based on the target control waveform data.
12. An arbitrary waveform generator, characterized in that: The arbitrary waveform generator is deployed with a waveform generation component, a storage component, a communication interface component, a digital-to-analog conversion component and a waveform synthesis component, wherein the waveform generation component is used to execute the steps of the method described in any one of claims 1 to 11.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 11 when executed by a processor.
15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 11 are implemented.