A method, device, medium, and program product for verifying transmitted waveform parameters in acoustic experiments.
By introducing the emission waveform parameter verification method in the acoustic experiment, the processing equipment automatically analyzes and corrects the parameters imported by the user, solving the problems of errors and inefficiency of the experimental equipment, and achieving rapid and efficient acoustic experiments.
Patent Information
- Application Number
- CN202510066135.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2045-01-16
AI Technical Summary
In acoustic experiments, there may be problems with the transmission waveform parameters imported by the user, resulting in an error in the experimental equipment, which requires repeated inspection and correction by the user, which is time-consuming and labor-intensive and reduces the experimental efficiency.
A method for verification of the transmission waveform parameters in acoustic experiments is provided. Through the processing device, the transmission waveform parameters imported by the user are obtained, the voltage data and format data are analyzed, and the preset conditions are determined. If they are not met, the parameters will be automatically corrected and the corrected waveform will be displayed.
It reduces the time for users to repeatedly detect and correct, improves the efficiency of acoustic experiments, and ensures the rapid progress of the experiments.
Smart Images

Figure CN119472925B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, medium and program product for verifying emission waveform parameters in an acoustic experiment. Background Art
[0002] Before conducting an acoustic experiment, the user needs to first import parameters related to the acoustic experiment, such as emission waveform parameters, into the experimental equipment for use by the experimental equipment to conduct the acoustic experiment.
[0003] However, there may be problems with the parameters imported by the user, which may cause the experimental equipment to report errors. In this case, the user is required to repeatedly check the massive imported parameters to correct the incorrect parameters. The repeated checking process is a huge workload for the user, which is time-consuming and laborious, and will further lead to the inability to conduct acoustic experiments in a timely manner, thereby reducing the experimental efficiency of the acoustic experiment. Summary of the invention
[0004] The present application provides a method, device, medium and program product for verifying emission waveform parameters in an acoustic experiment, which can improve the experimental efficiency of the acoustic experiment.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, the present application provides a method for verifying transmission waveform parameters in an acoustic experiment, the method comprising:
[0007] Get the transmission waveform parameters imported by the user;
[0008] Parsing the transmission waveform parameters to obtain voltage data and format data of the transmission waveform parameters;
[0009] Determine whether the voltage data meets a first preset condition to obtain a first determination result; determine whether the format data meets a second preset condition to obtain a second determination result;
[0010] If the first judgment result indicates that the voltage data meets a first preset condition, and the second judgment result indicates that the format data meets a second preset condition, displaying a transmission waveform according to the transmission waveform parameter;
[0011] If the first judgment result indicates that the voltage data does not satisfy the first preset condition, or the second judgment result indicates that the format data does not satisfy the second preset condition, the transmission waveform parameters are corrected to obtain corrected transmission waveform parameters, and the transmission waveform is displayed according to the corrected transmission waveform parameters.
[0012] In some possible implementations, determining whether the voltage data satisfies a first preset condition to obtain a first determination result includes:
[0013] Determine each voltage value and the number of voltage values according to the voltage data;
[0014] Determine whether there is a first target voltage value in the voltage data that is not within a preset voltage range, and obtain a third determination result; determine whether the number of voltage values in the voltage data is a preset number, and obtain a fourth determination result;
[0015] If the third judgment result indicates that there is no first target voltage value in the voltage data that is not within the preset voltage range, and the fourth judgment result indicates that the number of voltage values in the voltage data is a preset number, a first judgment result is obtained that the voltage data satisfies a first preset condition.
[0016] In some possible implementations, the method further includes:
[0017] If the third judgment result indicates that the first target voltage value in the voltage data is not within the preset voltage range, or the fourth judgment result indicates that the number of voltage values in the voltage data is not the preset number, a first judgment result is obtained that the voltage data does not meet the first preset condition.
[0018] In some possible implementations, if the third judgment result indicates that the first target voltage value in the voltage data is not within a preset voltage range, the modifying the transmission waveform parameter includes:
[0019] The first target voltage value in the voltage data is updated to a first edge value, where the first edge value is a voltage value having a minimum difference with the first target voltage value in the preset voltage range.
[0020] In some possible implementations, determining whether the format data satisfies a second preset condition to obtain a second determination result includes:
[0021] Determine the data format and the stop character position according to the format data;
[0022] Determine whether there is a second target voltage value after the stop character position in the format data, and obtain a fifth determination result; determine whether the data format is a preset format, and obtain a sixth determination result;
[0023] If the fifth judgment result indicates that there is no second target voltage value after the stop character position, and the sixth judgment result indicates that the data format is a preset format, a second judgment result is obtained that the format data satisfies a second preset condition.
[0024] In some possible implementations, the method further includes:
[0025] If the fifth judgment result indicates that there is a second target voltage value after the stop character position, or the sixth judgment result indicates that the data format is not a preset format, a second judgment result is obtained that the format data does not meet a second preset condition.
[0026] In some possible implementations, if the fifth judgment result indicates that there is a second target voltage value after the stop character position, the modifying the transmission waveform parameter includes:
[0027] The second target voltage value is updated to a stop character.
[0028] In some possible implementations, the transmission waveform includes at least an n-1th voltage value, an nth voltage value, and an n+1th voltage value arranged in descending order;
[0029] Among them, the first scale distance between the n-1th voltage value and the nth voltage value in the transmitted waveform is consistent with the second scale distance between the nth voltage value and the n+1th voltage value in the transmitted waveform, and the first difference between the n-1th voltage value and the nth voltage value is inconsistent with the second difference between the nth voltage value and the n+1th voltage value.
[0030] In a second aspect, the present application provides a computing device, including a memory and a processor;
[0031] One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as described in any one of the first aspects.
[0032] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method as described in any one of the first aspects.
[0033] In a fourth aspect, the present application provides a computer program product, wherein the computer program product comprises one or more computer instructions, and when the computer instructions are executed by a computer, the computer executes the method as described in any one of the first aspects.
[0034] It can be seen from the above technical solution that the present application has at least the following beneficial effects:
[0035] The present application provides a method for verifying the transmission waveform parameters in an acoustic experiment. The method can be executed by a processing device. The method includes: the processing device obtains the transmission waveform parameters imported by the user, and then parses the transmission waveform parameters to obtain voltage data and format data in the transmission waveform parameters, judges whether the voltage data meets the first preset condition, obtains the first judgment result, and judges whether the format data meets the second preset condition, obtains the second judgment result, if the first judgment result indicates that the first preset condition is met, and the second judgment result indicates that the second preset condition is met, then the transmission waveform is displayed according to the transmission waveform parameters. If the first judgment result indicates that the first preset condition is not met, or the second judgment result indicates that the second preset condition is not met, then the transmission waveform parameters are corrected to obtain the corrected transmission waveform parameters, and the transmission waveform is displayed according to the corrected transmission waveform parameters. In this method, when the processing device determines that the transmission waveform parameters do not meet the conditions, the transmission waveform parameters are automatically corrected, thereby reducing the time required for the user to repeatedly detect. After the correction is completed, it can be displayed to the user, so that the user can preview the corrected parameters. It can be seen that this method can promote the rapid progress of acoustic experiments and improve the experimental efficiency of acoustic experiments.
[0036] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be realized without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in a specific embodiment that does not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A flowchart of a method for verifying transmission waveform parameters in an acoustic experiment provided in an embodiment of the present application;
[0038] Figure 2 A schematic diagram of a transmission waveform provided in an embodiment of the present application;
[0039] Figure 3 A schematic diagram of a device for verifying transmission waveform parameters in an acoustic experiment provided in an embodiment of the present application;
[0040] Figure 4A schematic diagram of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The terms "first", "second", "third", etc. in the specification of this application and the accompanying drawings are used to distinguish different objects rather than to limit a specific order.
[0042] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0043] In an acoustic experiment, the user needs to first import the emission waveform parameters related to the acoustic experiment. The emission waveform parameters are used to define the style of the emission waveform. The processing device can emit sound waves based on the emission waveform to conduct an acoustic experiment.
[0044] However, there may be problems with the transmission waveform parameters imported by the user, which makes it impossible to conduct acoustic experiments normally. In this case, the user needs to check the imported transmission waveform parameters to determine the location of the error and make corrections. The workload required to find the wrong parameters from the massive data is huge, time-consuming and laborious, which will reduce the experimental efficiency of the acoustic experiment.
[0045] In view of this, the embodiment of the present application provides a method for verifying the transmission waveform parameters in an acoustic experiment, which can be executed by a processing device, and the processing device can be a terminal, for example, the terminal includes but is not limited to a smart phone, a tablet computer, a laptop computer, a personal digital assistant or a smart wearable device, etc. In this method, when the processing device determines that the transmission waveform parameters do not meet the conditions, the transmission waveform parameters are automatically corrected, thereby reducing the time required for the user to repeatedly detect. After the correction is completed, it can be displayed to the user, so that the user can preview the corrected parameters. It can be seen that this method can promote the rapid progress of acoustic experiments and improve the experimental efficiency of acoustic experiments.
[0046] When the method is applied to a processing device, it is specifically implemented in the form of a computer program. In some embodiments, the computer program may be independent, for example, an independent application program with corresponding functions (such as a client of an application program). In other embodiments, the computer program may be a functional module or a plug-in, etc., which is attached to an existing application program and runs.
[0047] In order to make the technical solution of the present application clearer and easier to understand, the technical solution of the present application is introduced below in conjunction with the accompanying drawings. Figure 1As shown in FIG. 1 , this figure is a flow chart of a method for verifying transmission waveform parameters in an acoustic experiment provided in an embodiment of the present application. The method includes:
[0048] S101: A processing device obtains transmission waveform parameters imported by a user.
[0049] In the embodiment of the present application, the transmission waveform parameter refers to a parameter used to control the transmission waveform, and the processing device can determine what kind of waveform to transmit based on the transmission waveform parameter.
[0050] The processing device can obtain the transmission waveform parameters imported by the user in a variety of ways. For example, the user can directly transmit the file of the transmission waveform parameters to the processing device, so that the processing device can obtain the transmission waveform parameters imported by the user; the user can also directly configure the transmission waveform parameters in the parameter configuration interface displayed by the processing device, so that the processing device can obtain the transmission waveform parameters imported by the user.
[0051] It should be noted that the embodiment of the present application does not specifically limit the manner in which the processing device obtains the transmission waveform parameters imported by the user.
[0052] S102: The processing device parses the transmission waveform parameters to obtain voltage data and format data of the transmission waveform parameters.
[0053] After the processing device obtains the transmission waveform parameters imported by the user, it can parse the transmission waveform parameters to obtain the voltage data in the transmission waveform parameters and the format data of the transmission waveform parameters. In some embodiments, the transmission waveform parameters imported by the user can be a txt file or a csv file, and the transmission waveform parameters are recorded in these files.
[0054] S103: The processing device determines whether the first preset condition and the second preset condition are simultaneously satisfied.
[0055] If both the first preset condition and the second preset condition are satisfied, S104 is executed; if both the first preset condition and the second preset condition are not satisfied, S105 is executed.
[0056] In some embodiments, the processing device determines whether the voltage data satisfies a first preset condition to obtain a first judgment result. Specifically, the processing device may first determine each voltage value and the number of voltage values based on the voltage data, and then determine whether there is a first target voltage value in the voltage data that is not within a preset voltage range to obtain a third judgment result, and determine whether the number of voltage values in the voltage data is a preset number to obtain a fourth judgment result. If the third judgment result indicates that there is no first target voltage value in the voltage data that is not within the preset voltage range, and the fourth judgment result indicates that the number of voltage values in the voltage data is a preset number, then a first judgment result that the voltage data satisfies the first preset condition is obtained.
[0057] For example, the voltage values can be 1, 2, 3, 2 and 5 respectively, the number of voltage values is 5, the preset voltage range is [-4, 4], the preset number is 5, based on the example data, the processing device can determine that there is a first target voltage value (for example, 5) that is not within the preset voltage range, and the number of voltage values in the voltage data is the preset number, so a first judgment result that the voltage data does not meet the first preset condition can be obtained.
[0058] It should be noted that the present application does not limit the order in which the processing device obtains the third judgment result and the fourth judgment result. The judgments may be performed simultaneously or one after the other.
[0059] In some embodiments, the processing device may determine whether the format data satisfies a second preset condition and obtain a second judgment result. Specifically, the processing device may first determine the data format and the stop character position based on the format data. The stop character is also regarded as a voltage value. The processing device determines whether there is a second target voltage value after the stop character position in the format data, obtains a fifth judgment result, and determines whether the data format is a preset format, and obtains a sixth judgment result; if the fifth judgment result indicates that there is no second target voltage value after the stop character position, and the sixth judgment result indicates that the data format is a preset format, a second judgment result that the format data satisfies the second preset condition is obtained.
[0060] For example, the stop character can be a special symbol, such as "!", or a special digital code, such as "999". The stop character position can refer to the position of the stop character in the voltage data. For example, the voltage data includes "1", "3", "2", "!" and "4". There is a second target voltage value (voltage value "4") after the stop character position. The data format can be binary, and the preset format can be a preset format, such as decimal. Based on the above example data, the processing device can determine that there is a second target voltage value after the stop character position, and the data format is not a preset format, so a second judgment result that the format data does not meet the second preset condition can be obtained.
[0061] It should be noted that the present application does not limit the order in which the processing device obtains the fifth judgment result and the sixth judgment result. The judgments may be performed simultaneously or one after the other.
[0062] S104: The processing device displays the transmission waveform according to the transmission waveform parameters.
[0063] In the case where the transmission waveform parameters satisfy both the first preset condition and the second preset condition, the processing device may display the transmission waveform based on the transmission waveform parameters. The transmission waveform includes at least the n-1th voltage value, the nth voltage value, and the n+1th voltage value arranged in descending order, the first scale distance between the n-1th voltage value and the nth voltage value in the transmission waveform is consistent with the second scale distance between the nth voltage value and the n+1th voltage value in the transmission waveform, and the first difference between the n-1th voltage value and the nth voltage value is inconsistent with the second difference between the nth voltage value and the n+1th voltage value. Where n is a positive integer greater than 1.
[0064] like Figure 2 As shown, the figure is a schematic diagram of a transmission waveform provided by an embodiment of the present application. Exemplarily, the voltage values include: H1 (300), H2 (20), H3 (0.1), 0 voltage, L3 (-80), L2 (-90) and L1 (-800), and the order of these voltage values from large to small is H1, H2, H3, L3, L2 and L1. As can be seen from the figure, the first scale distance D1 between H1 and H2 is the same as the second scale distance D2 between H2 and H3, and the second scale distance D2 is the same as the third scale distance D3 between H3 and 0 voltage, and so on. Through this method, users can view waveforms more accurately on different screens, avoid display problems caused by different resolutions, and simplify the complexity of adaptation work. In addition, the processing device displays the values of two different levels in the same scale in the figure, and displays the different levels of the waveform on a clear ladder, avoiding the problem of the identification distance being too close or too far, and can display all data more clearly and simultaneously in a smaller area.
[0065] It should be noted that the above description is only based on the example that the voltage data includes 6 voltage values. In other embodiments, the voltage data may also include more voltage values, which will not be described in detail here.
[0066] S105: The processing device corrects the transmission waveform parameters to obtain corrected transmission waveform parameters, and displays the transmission waveform according to the corrected transmission waveform parameters.
[0067] When the transmission waveform parameters do not satisfy both the first preset condition and the second preset condition, the processing device may modify the transmission waveform parameters and may also prompt the user, for example, prompting the user that there is an abnormality in the transmission waveform parameters.
[0068] In some embodiments, if the third judgment result indicates that there is a first target voltage value in the voltage data that is not within the preset voltage range, the processing device can update the first target voltage value in the voltage data to a first edge value, which is a voltage value with the smallest difference from the first target voltage value in the preset voltage range.
[0069] For example, the first target voltage value is "5", the preset voltage range is [-4,4], and the difference between the first target voltage value "5" and the edge value "4" is the smallest. Therefore, the edge value "4" is the first edge value, and the processing device updates the first target voltage value "5" to the first edge value "4".
[0070] In some embodiments, if the fifth determination result indicates that there is a second target voltage value after the stop character position, the processing device updates the second target voltage value to the stop character.
[0071] For example, the voltage data includes "1", "3", "2", "!" and "4", where "!" is a stop character. It can be seen that there is a second target voltage value "4" after the stop character position. Therefore, the processing device updates the second target voltage value "4" to the stop character "!", and then obtains the updated voltage data, namely, "1", "3", "2", "!" and "!".
[0072] The way in which the processing device displays the transmitted waveform is similar to that in S104 and will not be described in detail here.
[0073] In some embodiments, if the fourth judgment result indicates that the number of voltage values in the voltage data is not a preset number, the processing device may further compare the size relationship between the number of voltage values and the preset number. If the number of voltage values is greater than the preset number, the processing device may delete some voltage values from the voltage data, so that the number of voltage values after deleting some voltage values is consistent with the preset number. For example, some voltage values may be deleted randomly, or voltage values may be deleted from the end to the front. The specific deletion strategy may be customized based on user needs. If the number of voltage values is less than the preset number, the processing device may add some voltage values to the voltage data, so that the number of voltage values after adding some voltage values is consistent with the preset number. For example, a stop character may be added at the end (the stop character is also regarded as a voltage value). The specific addition strategy may be customized based on user needs.
[0074] Based on the above description, the embodiment of the present application provides a method for verifying the transmission waveform parameters in an acoustic experiment. The method can be executed by a processing device. The method includes: the processing device obtains the transmission waveform parameters imported by the user, and then parses the transmission waveform parameters to obtain voltage data and format data in the transmission waveform parameters, judges whether the voltage data meets the first preset condition, obtains the first judgment result, and judges whether the format data meets the second preset condition, obtains the second judgment result, if the first judgment result indicates that the first preset condition is met, and the second judgment result indicates that the second preset condition is met, then the transmission waveform is displayed according to the transmission waveform parameters. If the first judgment result indicates that the first preset condition is not met, or the second judgment result indicates that the second preset condition is not met, then the transmission waveform parameters are corrected to obtain the corrected transmission waveform parameters, and the transmission waveform is displayed according to the corrected transmission waveform parameters. In this method, the processing device automatically corrects the transmission waveform parameters when it is determined that the transmission waveform parameters do not meet the conditions, thereby reducing the time required for the user to repeatedly detect. After the correction is completed, it can be displayed to the user, so that the user can preview the corrected parameters. It can be seen that this method can promote the rapid progress of acoustic experiments and improve the experimental efficiency of acoustic experiments.
[0075] Combination of the above Figure 1 to Figure 2 The verification method of the emission waveform parameters in the acoustic experiment provided in the embodiment of the present application is introduced in detail. The device and equipment provided in the embodiment of the present application will be introduced in conjunction with the accompanying drawings.
[0076] like Figure 3 As shown in FIG. 1 , the figure is a schematic diagram of a device for verifying transmission waveform parameters in an acoustic experiment provided in an embodiment of the present application, the device comprising:
[0077] An acquisition module 301 is used to acquire the transmission waveform parameters imported by the user;
[0078] The parsing module 302 is used to parse the transmission waveform parameters to obtain voltage data and format data of the transmission waveform parameters;
[0079] The judgment module 303 is used to judge whether the voltage data meets a first preset condition and obtain a first judgment result; and judge whether the format data meets a second preset condition and obtain a second judgment result;
[0080] The display module 304 is used to display the transmission waveform according to the transmission waveform parameters if the first judgment result indicates that the voltage data meets the first preset condition, and the second judgment result indicates that the format data meets the second preset condition; if the first judgment result indicates that the voltage data does not meet the first preset condition, or the second judgment result indicates that the format data does not meet the second preset condition, the transmission waveform parameters are corrected to obtain the corrected transmission waveform parameters, and the transmission waveform is displayed according to the corrected transmission waveform parameters.
[0081] In some possible implementations, the judgment module 303 is specifically used to determine each voltage value and the number of voltage values based on the voltage data; judge whether there is a first target voltage value in the voltage data that is not within the preset voltage range, and obtain a third judgment result; judge whether the number of voltage values in the voltage data is a preset number, and obtain a fourth judgment result; if the third judgment result indicates that there is no first target voltage value in the voltage data that is not within the preset voltage range, and the fourth judgment result indicates that the number of voltage values in the voltage data is a preset number, then a first judgment result that the voltage data satisfies the first preset condition is obtained.
[0082] In some possible implementations, the judgment module 303 is also used to obtain a first judgment result that the voltage data does not meet the first preset condition if the third judgment result indicates that the first target voltage value in the voltage data is not within the preset voltage range, or the fourth judgment result indicates that the number of voltage values in the voltage data is not a preset number.
[0083] In some possible implementations, the display module 304 is specifically used to update the first target voltage value in the voltage data to a first edge value if the third judgment result indicates that there is a first target voltage value in the voltage data that is not within the preset voltage range. The first edge value is a voltage value in the preset voltage range that has the smallest difference with the first target voltage value.
[0084] In some possible implementations, the judgment module 303 is specifically used to determine the data format and the stop character position according to the format data; judge whether there is a second target voltage value after the stop character position in the format data, and obtain a fifth judgment result; judge whether the data format is a preset format, and obtain a sixth judgment result; if the fifth judgment result indicates that there is no second target voltage value after the stop character position, and the sixth judgment result indicates that the data format is a preset format, a second judgment result is obtained that the format data satisfies a second preset condition.
[0085] In some possible implementations, the judgment module 303 is also used to obtain a second judgment result that the format data does not meet the second preset condition if the fifth judgment result indicates that there is a second target voltage value after the stop character position, or the sixth judgment result indicates that the data format is not a preset format.
[0086] In some possible implementations, the display module 304 is specifically configured to update the second target voltage value to a stop character if the fifth judgment result indicates that there is a second target voltage value after the stop character position.
[0087] In some possible implementations, the transmission waveform includes at least an n-1th voltage value, an nth voltage value, and an n+1th voltage value arranged in descending order;
[0088] The first scale distance between the n-1th voltage value and the nth voltage value in the transmission waveform is consistent with the second scale distance between the nth voltage value and the n+1th voltage value in the transmission waveform.
[0089] According to the embodiment of the present application, the device for verifying the transmission waveform parameters in the acoustic experiment may correspond to the method described in the embodiment of the present application, and the above-mentioned other operations and / or functions of each module / unit of the device for verifying the transmission waveform parameters in the acoustic experiment are respectively to realize Figure 1 For the sake of brevity, the corresponding processes of each method in the illustrated embodiment are not described in detail here.
[0090] The embodiment of the present application further provides a computing device, which can be a processing device or an acoustic experiment device.
[0091] like Figure 4 As shown, this figure is a schematic diagram of a computing device provided in an embodiment of the present application, and the computing device 400 includes a bus 401, a processor 402, a communication interface 403 and a memory 404. The processor 402, the memory 404 and the communication interface 403 communicate with each other through the bus 401.
[0092] The bus 401 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0093] The processor 402 may be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0094] The communication interface 403 is used for communicating with the outside.
[0095] The memory 404 may include a volatile memory, such as a random access memory (RAM). The memory 404 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0096] The memory 404 stores executable codes, and the processor 402 executes the executable codes to perform the verification method of the transmission waveform parameters in the aforementioned acoustic experiment.
[0097] Specifically, in implementing Figure 3 In the case of the embodiment shown, and Figure 3 When each module or unit of the verification device for transmitting waveform parameters in the acoustic experiment described in the embodiment is implemented by software, the execution Figure 3 The software or program code required for the functions of each module / unit in the system may be partially or completely stored in the memory 404. The processor 402 executes the program code corresponding to each unit stored in the memory 404 to execute the verification method of the transmission waveform parameters in the aforementioned acoustic experiment.
[0098] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (such as a floppy disk, a hard disk, a tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the verification method of the emission waveform parameters in the above-mentioned acoustic experiment.
[0099] The embodiment of the present application further provides a computer program product, which includes one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the process or function described in the embodiment of the present application is generated in whole or in part.
[0100] The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer or data center to another website, computer or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.
[0101] When the computer program product is executed by a computer, the computer executes any of the methods for verifying the transmission waveform parameters in the aforementioned acoustic experiment. The computer program product may be a software installation package, and when any of the methods for verifying the transmission waveform parameters in the aforementioned acoustic experiment is needed, the computer program product may be downloaded and executed on the computer.
[0102] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0103] The above description is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A method for verifying transmission waveform parameters in an acoustic experiment, characterized in that: The method comprises: Get the emission waveform parameters of the acoustic experiment imported by the user. The emission waveform parameters refer to the parameters used to control the emission waveform; Parsing the transmission waveform parameters to obtain voltage data and format data of the transmission waveform parameters; Determine whether the voltage data meets a first preset condition to obtain a first determination result; determine whether the format data meets a second preset condition to obtain a second determination result; If the first judgment result indicates that the voltage data meets a first preset condition, and the second judgment result indicates that the format data meets a second preset condition, displaying a transmission waveform according to the transmission waveform parameter; If the first judgment result indicates that the voltage data does not satisfy a first preset condition, or the second judgment result indicates that the format data does not satisfy a second preset condition, the transmission waveform parameters are corrected to obtain corrected transmission waveform parameters, and a transmission waveform is displayed according to the corrected transmission waveform parameters; The determining whether the voltage data satisfies a first preset condition to obtain a first determination result includes: Determine each voltage value and the number of voltage values according to the voltage data; Determine whether there is a first target voltage value in the voltage data that is not within a preset voltage range, and obtain a third determination result; determine whether the number of voltage values in the voltage data is a preset number, and obtain a fourth determination result; If the third judgment result indicates that the voltage data does not contain a first target voltage value that is not within the preset voltage range, and the fourth judgment result indicates that the number of voltage values in the voltage data is a preset number, a first judgment result is obtained that the voltage data satisfies a first preset condition; Determining whether the format data satisfies a second preset condition to obtain a second determination result includes: Determine the data format and the stop character position according to the format data; Determine whether there is a second target voltage value after the stop character position in the format data, and obtain a fifth determination result; determine whether the data format is a preset format, and obtain a sixth determination result; If the fifth judgment result indicates that there is no second target voltage value after the stop character position, and the sixth judgment result indicates that the data format is a preset format, a second judgment result is obtained that the format data satisfies a second preset condition.
2. The method according to claim 1, characterized in that The method further comprises: If the third judgment result indicates that the first target voltage value in the voltage data is not within the preset voltage range, or the fourth judgment result indicates that the number of voltage values in the voltage data is not the preset number, a first judgment result is obtained that the voltage data does not meet the first preset condition.
3. The method according to claim 2, characterized in that If the third judgment result indicates that the first target voltage value in the voltage data is not within the preset voltage range, the modifying the transmission waveform parameter includes: The first target voltage value in the voltage data is updated to a first edge value, where the first edge value is a voltage value having a minimum difference with the first target voltage value in the preset voltage range.
4. The method according to claim 1, characterized in that: The method further comprises: If the fifth judgment result indicates that there is a second target voltage value after the stop character position, or the sixth judgment result indicates that the data format is not a preset format, a second judgment result is obtained that the format data does not meet a second preset condition.
5. The method according to claim 4, characterized in that If the fifth judgment result indicates that there is a second target voltage value after the stop character position, the modifying the transmission waveform parameters includes: The second target voltage value is updated to a stop character.
6. The method according to any one of claims 1 to 5, characterized in that: The displayed transmission waveform includes at least the n-1th voltage value, the nth voltage value and the n+1th voltage value arranged in descending order; Among them, the first scale distance between the n-1th voltage value and the nth voltage value in the transmitted waveform is consistent with the second scale distance between the nth voltage value and the n+1th voltage value in the transmitted waveform, and the first difference between the n-1th voltage value and the nth voltage value is inconsistent with the second difference between the nth voltage value and the n+1th voltage value.
7. A computing device, characterized in that including memory and processor; One or more computer programs are stored in the memory, and the one or more computer programs include instructions; when the instructions are executed by the processor, the computing device executes the method as claimed in any one of claims 1 to 6.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 6.
9. A computer program product, characterized in that The computer program product comprises one or more computer instructions. When the computer instructions are executed by a computer, the computer performs the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Working method of laser device, quasi-continuous laser device and laser cutting and welding system
CN108620727A
Touch vibration self-adjusting method and device, equipment and medium
CN111552380A