Multifunctional electric signal waveform conversion device and control method thereof
By designing a multifunctional electric signal waveform conversion device, using FPGA and multiple control units, the problems of low efficiency and poor flexibility of electric signal waveform processing in the prior art are solved, and efficient, flexible and diversified electric signal waveform processing is achieved.
Patent Information
- Application Number
- CN202510007988.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-04-18
AI Technical Summary
The prior art has problems such as low efficiency, complex operation, poor flexibility and inability to meet complex and variable application requirements when processing electrical signal waveforms.
A multifunctional electrical signal waveform conversion device is designed, using an FPGA control unit, a multi-channel input unit, a touch screen control unit, a relay control unit and a digital-to-analog converter unit. Through the combination and coordinated work of these units, the various parameters of the electrical signal waveform are adjusted and processed.
It improves the efficiency and accuracy of electric signal waveform processing, realizes flexible adjustment and diversified output of electric signal waveform parameters, and meets complex and changeable application needs.
Smart Images

Figure CN119853700A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electrical signal waveform processing, and in particular to a multifunctional electrical signal waveform conversion device and a control method thereof. Background Art
[0002] In the technical fields of electronic signal processing, circuit design and simulation, signal conversion and transmission, etc., the processing of electrical signal waveforms is an important technology. Electrical signal waveform processing includes changing the shape, size, direction and other parameters of the electrical signal waveform, combining and superimposing multiple electrical signal waveforms, selecting different filter coefficients, generating electrical signal waveforms of specific frequencies and shapes, and controlling the output of electrical signal waveforms. These technologies are widely used in the fields of communications, electronic measuring instruments, automatic control, etc.
[0003] In the existing technology, there are some methods and devices that can achieve the change of the waveform of the electrical signal. For example, by using components such as capacitors, inductors and resistors, filters can be constructed to change the frequency components of the electrical signal waveform; by using operational amplifiers and other logic elements, the amplification, attenuation and phase shift of the electrical signal waveform can be achieved; by using digital signal processors (DSPs) and microcontrollers, complex mathematical operations and processing can be performed on the electrical signal waveform. However, the existing technology still has some problems and limitations in changing the waveform of the electrical signal. First, the existing methods can usually only achieve a single or limited change in the waveform of the electrical signal, and cannot meet the complex and changing application requirements. For example, traditional filters can only change the frequency components of the electrical signal waveform, but cannot adjust its amplitude or other parameters. Secondly, the existing methods usually require a large number of components and complex circuit designs, which not only increases the size and cost of the equipment, but also increases the difficulty of design and manufacturing. Finally, the existing methods usually lack flexibility and cannot adjust the waveform of the electrical signal according to the needs in real time. For example, once the traditional analog filter is designed, its parameters cannot be changed, and although the digital signal processor can perform complex mathematical operations, its processing speed and accuracy are often limited. Summary of the invention
[0004] The purpose of the present invention is to provide a multifunctional electrical signal waveform conversion device and a control method thereof, which has a simple structure and is easy to operate. It can process multiple electrical signal waveforms at the same time, improve the efficiency and accuracy of electrical signal waveform processing, and at the same time has flexibility, diversity, comprehensiveness and universal applicability, and can meet complex and changeable application requirements.
[0005] To achieve the above object, the present invention provides the following solutions: A multifunctional electrical signal waveform conversion device, comprising: an FPGA control unit and a multi-channel input unit, a touch screen control unit, a relay control unit, and a digital-to-analog converter unit electrically connected to the FPGA control unit; The multi-channel input unit includes a plurality of input channels for receiving a plurality of electrical signals and inputting them into the device; each input channel is provided with a digital potentiometer unit and a filter unit; The touch screen control unit is used to set the working parameters of the device; The FPGA control unit is used to generate a control signal according to the operating parameters; The digital potentiometer unit is connected to the FPGA control unit and adjusts the filter coefficient of the filter unit according to the control signal; The filter unit is used to filter the electrical signal received by the multi-channel input unit based on the filter coefficient, and the signal output end of the filter unit is connected to the signal input end of the relay control unit; The relay control unit is used to control the polarity of its output signal according to the control signal; The digital-to-analog converter unit is used to receive the output signal of the relay control unit and generate electrical signal output waveforms of various frequencies and shapes according to the control signal.
[0006] Furthermore, the digital-to-analog converter unit is connected to an operational amplifier unit, and the operational amplifier unit realizes the superposition of multiple electrical signal output waveforms according to a set amplification factor to obtain a final output waveform.
[0007] Furthermore, the filter unit includes a low-pass filter unit and a differential operational amplifier which are electrically connected in sequence, and the differential operational amplifier outputs electrical signals of the same magnitude and opposite polarities, and inputs the electrical signals into the relay control unit.
[0008] Furthermore, the digital potentiometer unit includes a plurality of digital potentiometers, the digital potentiometers are electrically connected to the low-pass filter unit, and the model of the digital potentiometers is ADI AD5274.
[0009] Furthermore, the touch screen control unit is a touch screen, and the model of the touch screen is DMG80480c070-04W; the working parameters include the filter coefficient, the resistance value of the digital potentiometer, the relay switch state, and the size and direction of the output electrical signal.
[0010] Furthermore, the digital-to-analog converter unit adopts a digital-to-analog converter of model TLC1668; the shapes include triangle wave, sawtooth wave, square wave, and sine wave.
[0011] Furthermore, the operational amplifier unit is an adder, which is used to superimpose multiple electrical signal output waveforms output by multiple digital-to-analog converter units, adjust the size and direction of the output waveform, and obtain a final output waveform.
[0012] Furthermore, the relay control unit adopts a relay of model Omron G6K-2F-Y5DC.
[0013] Furthermore, the FPGA control unit and the digital potentiometer unit are connected via an SPI bus, the FPGA control unit and the digital-to-analog converter unit are connected via a parallel port, and the FPGA control unit and the touch screen control unit are connected via a serial port.
[0014] The present invention also provides a control method for a multifunctional electrical signal waveform conversion device, which is applied to the multifunctional electrical signal waveform conversion device, and comprises the following steps: The multi-channel input unit receives a plurality of electrical signals; Set working parameters through the touch screen control unit; The FPGA control unit generates a control signal according to the operating parameters; The digital potentiometer unit adjusts the filter coefficient according to the control signal; The filter unit performs filtering processing on the electrical signal received by the multi-channel input unit based on the filtering coefficient, outputs electrical signals with the same magnitude and opposite polarity, and inputs them into the relay control unit; The relay control unit controls the polarity of its output signal according to the control signal; The digital-to-analog converter unit receives the output signal of the relay control unit and generates electrical signal waveforms of various frequencies and shapes according to the control signal; Electrical signal waveforms of various frequencies and shapes are superimposed and processed by the operational amplifier unit to obtain the final output waveform.
[0015] According to the specific embodiments provided by the present invention, the multifunctional electrical signal waveform conversion device and the control method thereof provided by the present invention disclose the following technical effects: 1. Improved processing capability: This device adopts a multi-channel input design, which can process multiple electrical signal waveforms at the same time, improve the efficiency of electrical signal waveform processing, and can process a large number of electrical signal waveforms, not just a limited number. This greatly improves the efficiency and capability of electrical signal waveform processing and meets more and more complex electrical signal waveform processing needs; 2. Easy operation: The device is controlled by a touch screen, providing users with a human-computer interaction interface. Through the touch screen, the electrical signal waveform parameters can be easily changed, multiple electrical signal waveforms can be combined and superimposed, and different filter coefficients can be selected, which simplifies the operation process and improves the operation efficiency; 3. Flexible control: This device can control the touch screen and digital potentiometer through FPGA, so as to realize flexible control of the parameters of the electrical signal waveform, combination superposition, filter coefficient selection and output control. The relay on-off control design can control the output signal direction and improve the flexibility of signal output. 4. Diverse output: The digital-to-analog converter unit of this device can output a variety of waveforms, such as triangle wave, sawtooth wave, square wave, sine wave, etc., and the parameters can be selected and set through the touch screen, making the output waveform more diverse and flexible; 5. High precision: The digital potentiometer design can flexibly adjust the parameters of the electrical signal waveform by changing the digital potentiometer resistance and filter coefficient, thereby improving the flexibility and accuracy of the electrical signal waveform processing; the filter unit can filter the input electrical signal waveform to improve the signal quality; 6. Wide scope of application: The number of input electrical signals of the device is not limited to 2, the number of output waveforms of the digital-to-analog converter unit is not limited to 1, and the number of input waveforms of the operational amplifier unit is not limited to 2, which makes the device suitable for more application scenarios and needs. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0017] Figure 1 This is a schematic diagram of the structure of a multifunctional electrical signal waveform conversion device according to an embodiment of the present invention; Figure 2 Schematic diagram of the process of processing the input signal U1 by the filter unit and the relay control unit according to an embodiment of the present invention, wherein (a) is a schematic diagram of the signal processing of the filter unit, and (b) is a schematic diagram of the signal processing of the filter unit; Figure 3 Schematic diagram of the process of processing the input signal U2 by the filter unit and the relay control unit according to an embodiment of the present invention, wherein (a) is a schematic diagram of the signal processing of the filter unit, and (b) is a schematic diagram of the signal processing of the filter unit; Figure 4 This is a circuit hardware topology diagram of an input signal U1 processed by a filter unit according to an embodiment of the present invention; Figure 5 This is a circuit hardware topology diagram of an input signal U2 processed by a filter unit according to an embodiment of the present invention; Figure 6 This is a circuit hardware topology diagram of the input signal U1 processed by the relay control unit in the embodiment of the present invention; Figure 7 A circuit hardware topology diagram of an input signal U2 processed by a relay control unit according to an embodiment of the present invention; Figure 8 This is a schematic diagram of the structure of the input signal U1 output through the digital-to-analog converter unit according to an embodiment of the present invention; Fig. 9 This is a schematic diagram of the structure of the input signal U2 outputted by the digital-to-analog converter unit according to an embodiment of the present invention; Fig.10 This is a structural circuit topology diagram of the output signals Uo1, Uo2, Uo3, and Uo4 of the embodiment of the present invention that are processed by superposition of operational amplifier units. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] The present invention provides a multifunctional electrical signal waveform conversion device and a control method thereof, aiming to solve the following technical problems: 1. It solves the limitations of the prior art in processing a large number of electrical signal waveforms, and can process multiple electrical signal waveforms at the same time, thereby improving the efficiency of electrical signal waveform processing; 2. It solves the problems of the prior art in complex operations and low efficiency in changing electrical signal waveform parameters, combining and superimposing multiple electrical signal waveforms, selecting different filter coefficients, etc., simplifies the operation process and improves efficiency; 3. It solves the limitations of the prior art in controlling the output of electrical signal waveforms, and can control the output of multiple electrical signal waveforms at the same time, thereby improving the flexibility and accuracy of electrical signal waveform control; 4. It solves the limitations of the prior art in generating electrical signal waveforms of specific frequencies and shapes, and can generate electrical signal waveforms of multiple frequencies and shapes, thereby improving the diversity and flexibility of electrical signal waveform generation; 5. It solves the limitations of the prior art in generating electrical signal waveforms of specific frequencies and shapes, and can generate electrical signal waveforms of multiple frequencies and shapes, thereby improving the diversity and flexibility of electrical signal waveform generation; The technology has limitations in the number of input electrical signals and the number of DAC output waveforms, and can process multiple input electrical signals and multiple DAC output waveforms, thereby improving the comprehensiveness and adaptability of electrical signal waveform processing; 6. It has solved the limitations of the prior art in filters, and can adjust the filter coefficient by changing the resistance of the digital potentiometer, flexibly adjust the parameters of the electrical signal waveform, and improve the flexibility and accuracy of electrical signal waveform processing; 7. It has solved the limitations of the prior art in processing electrical signals. For example, by inputting the collected electrical signal into this device, the waveform size, direction, and filter coefficient of the electrical signal can be easily changed, and other electrical signals can be easily superimposed to facilitate the extraction of signal features. For example, by inputting the electrical signal of the driving module into this device and loading it to the load after the waveform is changed, it is very convenient to observe the changes in the actual application by changing the waveform of the driving electrical signal, thereby improving the diversity and efficiency of electrical signal processing.
[0020] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0021] like Figure 1 As shown, the multifunctional electrical signal waveform conversion device provided by the present invention includes an FPGA control unit and a multi-channel input unit, a touch screen control unit, a relay control unit, and a digital-to-analog converter unit electrically connected to the FPGA control unit; The multi-channel input unit includes a plurality of input channels for receiving a plurality of electrical signals and inputting them into the device; each input channel is provided with a digital potentiometer unit and a filter unit; The touch screen control unit is used to set the working parameters of the device; The FPGA control unit is used to generate a control signal according to the operating parameters; The digital potentiometer unit is connected to the FPGA control unit and adjusts the filter coefficient of the filter unit according to the control signal; The filter unit is used to filter the electrical signal received by the multi-channel input unit based on the filter coefficient, and the signal output end of the filter unit is connected to the signal input end of the relay control unit; The relay control unit is used to control the polarity of its output signal according to the control signal; The digital-to-analog converter unit is used to receive the output signal of the relay control unit and generate electrical signal output waveforms of various frequencies and shapes according to the control signal; The digital-to-analog converter unit is connected to the operational amplifier unit, and the operational amplifier unit realizes the superposition of multiple electrical signal output waveforms according to the set amplification factor to obtain a final output waveform.
[0022] Combination Figure 2-Figure 10 As shown, the multifunctional electrical signal waveform conversion device provided in the specific embodiment of the present invention, the introduction of each unit is as follows: 1. Multi-channel input unit: Through the multi-channel input design, multiple electrical signal waveforms are input into the device, where the number of electrical signal waveforms can be 2 or more, and the specific number can be adjusted according to actual needs. The specific embodiment of the present invention takes 2-way input signals as an example, and inputs two-way signals U1-U2.
[0023] 2. FPGA control unit and touch screen control unit: The FPGA control unit and the touch screen control unit are serially connected and integratedly designed to provide a human-computer interaction interface, so that users can change the electrical signal waveform parameters, combine and superimpose multiple electrical signal waveforms, and select different filter coefficients. The touch screen control unit is a touch screen, and the touch screen model may be DMG80480c070-04W; specifically, the electrical signal waveform parameters, such as filter coefficient, size, direction, etc., may be changed through buttons or sliders on the touch screen, and different filter coefficients may be selected through a menu on the touch screen. Based on the selected filter coefficient, the resistance value of the digital potentiometer may be changed to achieve flexible filtering.
[0024] 3. FPGA control unit: Through FPGA control design, the output of multiple electrical signal waveforms can be controlled simultaneously. Specifically, the control of electrical signal waveforms can be achieved through the logic circuit inside the FPGA, such as waveform synthesis, frequency division, filtering, etc. through digital logic gate circuits.
[0025] 4. Filter unit: It includes a low-pass filter unit and a differential operational amplifier which are electrically connected in sequence. The differential operational amplifier outputs electrical signals of the same magnitude and opposite polarity and inputs them into the relay control unit. The low-pass filter unit includes an RC filter and an operational amplifier. The RC filter is a combination of a digital potentiometer and a capacitor. The resistance value of the digital potentiometer can be controlled by FPGA, such as Figure 4 In the example, the digital potentiometer R2, capacitor CA2 and operational amplifier U1A form a low-pass filter unit. By modifying the resistance value of R2, the cutoff frequency of the low-pass filter unit is changed. f =1 / 2πRC, where R is the resistance value of R2 and C is the capacitance value of CA2. The waveform of the input electrical signal U1 is filtered and then the differential amplifier U2 is used to achieve an output of ±aU1. At this time, by modifying the resistance value of R1 in the same proportion, it can be ensured that the output only changes the cutoff frequency without changing the amplification factor.
[0026] Similarly, if Figure 5 As shown, the waveform of the input electrical signal U2 is filtered, and then the differential amplifier U2 is used to achieve an output of ±bU2.
[0027] 5. Digital potentiometer unit: includes multiple digital potentiometers, such as R1-R4, and the digital potentiometers are used in pairs, such as Figure 4 and Figure 5 As shown, the digital potentiometer is electrically connected to the low-pass filter unit, and the model of the digital potentiometer can be ADI AD5274. The FPGA control unit is connected to the digital potentiometer unit by an SPI bus, and the FPGA controls the resistance value of the digital potentiometer through the SPI bus, changes the amplification factor of the operational amplifier in the low-pass filter unit by changing the resistance value, and changes the filter parameters by designing the digital potentiometer to flexibly adjust the parameters of the electrical signal waveform. Specifically, the digital potentiometer can be controlled by FPGA to change its resistance value and filter coefficient, thereby adjusting the parameters of the electrical signal waveform. For example, the FPGA is connected to the SPI bus of the digital potentiometer, and the resistance value change of the digital potentiometer is controlled by sending a command to the register. Specifically, the communication needs to be connected to the 7 / 8 / 9 / 10 pins of the digital potentiometer, and the output resistor needs to be connected to the 2 / 3 pins of the digital potentiometer.
[0028] 6. Digital-to-analog converter unit: Through the digital-to-analog converter (DAC) output design, various frequency and shape electrical signal waveforms are generated. The model of the digital-to-analog converter can be TLC1668. Specifically, the digital-to-analog converter unit can be controlled by FPGA to output electrical signal waveforms of specific frequencies and shapes, such as triangle waves, sawtooth waves, square waves, sine waves, etc.
[0029] 7. Relay control unit: The output signal polarity is controlled by the relay on-off control design. The relay model can be Omron G6K-2F-Y5DC. Specifically, the relay can be controlled by FPGA to make it on and off, thereby controlling the direction of the output signal. Figure 6 and Figure 7 As shown, the FPGA outputs high and low level signals, which are connected to the G pole of the transistor (U10 / U11). The D pole of the transistor (U10 / U11) is connected to the pull-up resistor (R11 / R13), so as to realize the switching of the output 5V / 0V level. When 5V is input to the relay control end, it is energized, and when 5V is disconnected, it is disconnected.
[0030] In addition, the parameters of the digital potentiometer, relay switch, and DAC output signal can be changed by inputting parameters through the touch screen. Specifically, the parameters of the digital potentiometer, relay switch, and DAC output signal can be changed by buttons or sliders on the touch screen.
[0031] like Figure 2 As shown, the input signal U1 is amplified by the operational amplifier in the low-pass filter unit and outputs aU1, where a is the filter coefficient, and its size range can be infinitely small to infinitely large. Similarly, other input waveforms can also be realized. Here, the combination of digital potentiometers R1 and R2, combined with the capacitance of capacitor C1, can adjust the filter coefficient. The differential amplifier used here can achieve an output of ±aU1, and this technology can be used to change the size and direction of the input waveform.
[0032] like Figure 4 As shown, the output polarity is selected by controlling the relay. The waveforms U1, U2 and other signals that are changed here are then controlled by FPGA to generate electrical signal waveforms Uo3, Uo4 (as shown in Figure 8 and Fig. 9 As shown, specifically, the waveform data to be generated (which may be a sine wave / triangle wave, etc.) is stored in the ROM IP core of the FPGA, and the parameters (size / phase / amplitude, etc.) input by the touch screen are combined, and the electrical signal waveform data actually required to be generated is generated after processing, and then the data is connected to the DAC chip through the parallel port, and finally the output electrical signal waveforms Uo3 and Uo4 are realized. For example, the signal processing process of the FPGA can first use MATLAB to generate a basic waveform data, and then import it into the ROM IP core of the FPGA, such as the sine function, and multiply a coefficient when calling the ROM IP core data to change the waveform size, adjust the calling address when calling the data, change the phase, adjust the time interval of the calling data, change the frequency, adjust the initial address of the calling data, and change the initial phase; or the CORDIC algorithm can be used to generate the electrical signal waveforms Uo3 and Uo4. The art can refer to the existing technology to realize the signal processing in the FPGA, which will not be described here.
[0033] Based on the input signals U1 and U2, the electrical signal waveforms Uo1 and Uo2 are generated, combined with Uo3 and Uo4, and superposition is achieved using an adder to achieve the superposition and control of the size, direction and self-generated waveform of the final output signal (such as Fig.10 to meet different application requirements.
[0034] The present invention also provides a control method for a multifunctional electrical signal waveform conversion device, which is applied to the multifunctional electrical signal waveform conversion device, and comprises the following steps: The multi-channel input unit receives a plurality of electrical signals; The working parameters are set through the touch screen control unit; the touch screen control unit can receive the parameters set by the operator through a compatible graphical user interface to achieve unified control functions of different models of touch screens; The FPGA control unit generates a control signal according to the operating parameters; The digital potentiometer unit adjusts the filter coefficient according to the control signal; the digital potentiometer unit adjusts its internal resistance value by receiving the digital signal of the FPGA control unit, thereby realizing accurate control of the amplification factor and filter parameters of the device output waveform; The filter unit performs filtering processing on the electrical signal received by the multi-channel input unit based on the filtering coefficient, outputs electrical signals with the same magnitude and opposite polarity, and inputs them into the relay control unit; The relay control unit controls the polarity of its output signal according to the control signal; the relay control unit can switch the output signal between positive polarity and negative polarity according to the control signal to meet the needs of different application scenarios; The digital-to-analog converter unit receives the output signal of the relay control unit and generates electrical signal waveforms of various frequencies and shapes according to the control signal; the DAC unit is capable of generating various waveforms including at least a sine wave, a square wave, a triangle wave and a pulse wave, and the waveform frequency and amplitude can be adjusted according to the control signal; Electrical signal waveforms of various frequencies and shapes are superimposed and processed by the operational amplifier unit to obtain the final output waveform.
[0035] In summary, the multifunctional electrical signal waveform conversion device and control method provided by the present invention realize the following: 1. By adopting a multi-channel input design, multiple electrical signal waveforms can be processed simultaneously, thereby improving the efficiency of electrical signal waveform processing. 2. By adopting an integrated design of a touch screen and FPGA, the electrical signal waveform parameters can be easily changed, multiple electrical signal waveforms can be combined and superimposed, and different filter coefficients can be selected through the touch screen, thereby simplifying the operation process and improving efficiency. 3. By adopting an FPGA control design, the output of multiple electrical signal waveforms can be controlled simultaneously through the FPGA, thereby improving the flexibility and accuracy of electrical signal waveform control. 4. By adopting a DAC output design, electrical signal waveforms of various frequencies and shapes can be generated, thereby improving the diversity and flexibility of electrical signal waveform generation. 5. By adopting a digital potentiometer design, the parameters of the electrical signal waveform can be flexibly adjusted by changing the resistance value and filter coefficient of the digital potentiometer, thereby improving the flexibility and accuracy of electrical signal waveform processing. 6. By adopting a relay on-off control design, the output signal direction can be controlled, thereby improving the flexibility of signal output. 7. By adopting a filter design, the input electrical signal waveform can be filtered to improve signal quality. 8. By adopting a digital-to-analog converter design, high-precision waveform output can be achieved. 9. The touch screen input parameter design is adopted. You can input parameters through the touch screen, change the resistance value of the digital potentiometer, change the relay switch, change the DAC output signal, and improve the convenience of operation.
[0036] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A multifunctional electrical signal waveform conversion device, characterized in that: include: An FPGA control unit and a multi-channel input unit, a touch screen control unit, a relay control unit, and a digital-to-analog converter unit electrically connected to the FPGA control unit; The multi-channel input unit includes a plurality of input channels for receiving a plurality of electrical signals and inputting them into the device; each input channel is provided with a digital potentiometer unit and a filter unit; The touch screen control unit is used to set the working parameters of the device; The FPGA control unit is used to generate a control signal according to the operating parameters; The digital potentiometer unit is connected to the FPGA control unit and adjusts the filter coefficient of the filter unit according to the control signal; The filter unit is used to filter the electrical signal received by the multi-channel input unit based on the filter coefficient, and the signal output end of the filter unit is connected to the signal input end of the relay control unit; The relay control unit is used to control the polarity of its output signal according to the control signal; The digital-to-analog converter unit is used to receive the output signal of the relay control unit and generate electrical signal output waveforms of various frequencies and shapes according to the control signal.
2. The multifunctional electrical signal waveform conversion device according to claim 1, characterized in that: The digital-to-analog converter unit is connected to the operational amplifier unit, and the operational amplifier unit realizes the superposition of multiple electrical signal output waveforms according to the set amplification factor to obtain a final output waveform.
3. The multifunctional electrical signal waveform conversion device according to claim 1, characterized in that: The filter unit includes a low-pass filter unit and a differential operational amplifier which are electrically connected in sequence. The differential operational amplifier outputs electrical signals with the same magnitude and opposite polarities and inputs them into the relay control unit.
4. The multifunctional electrical signal waveform conversion device according to claim 3, characterized in that: The digital potentiometer unit includes a plurality of digital potentiometers, the digital potentiometers are electrically connected to the low-pass filter unit, and the model of the digital potentiometers is ADI AD5274.
5. The multifunctional electrical signal waveform conversion device according to claim 1, characterized in that: The touch screen control unit is a touch screen, and the model of the touch screen is DMG80480c070-04W; the working parameters include the filter coefficient, the resistance value of the digital potentiometer, the relay switch state, and the size and direction of the output electrical signal.
6. The multifunctional electrical signal waveform conversion device according to claim 1, characterized in that: The digital-to-analog converter unit adopts a digital-to-analog converter of model TLC1668; the shapes include triangle wave, sawtooth wave, square wave and sine wave.
7. The multifunctional electrical signal waveform conversion device according to claim 2, characterized in that: The operational amplifier unit is an adder, which is used to superimpose multiple electrical signal output waveforms output by multiple digital-to-analog converter units, adjust the size and direction of the output waveforms, and obtain the final output waveform.
8. The multifunctional electrical signal waveform conversion device according to claim 1, characterized in that: The relay control unit adopts a relay of Omron G6K-2F-Y5DC.
9. The multifunctional electrical signal waveform conversion device according to claim 1, characterized in that: The FPGA control unit and the digital potentiometer unit are connected by an SPI bus, the FPGA control unit and the digital-to-analog converter unit are connected by a parallel port, and the FPGA control unit and the touch screen control unit are connected by a serial port.
10. A control method for a multifunctional electrical signal waveform conversion device, applied to the multifunctional electrical signal waveform conversion device according to any one of claims 1 to 9, characterized in that: The steps include: The multi-channel input unit receives a plurality of electrical signals; Set working parameters through the touch screen control unit; The FPGA control unit generates a control signal according to the operating parameters; The digital potentiometer unit adjusts the filter coefficient according to the control signal; The filter unit performs filtering processing on the electrical signal received by the multi-channel input unit based on the filtering coefficient, outputs electrical signals with the same magnitude and opposite polarity, and inputs them into the relay control unit; The relay control unit controls the polarity of its output signal according to the control signal; The digital-to-analog converter unit receives the output signal of the relay control unit and generates electrical signal waveforms of various frequencies and shapes according to the control signal; Electrical signal waveforms of various frequencies and shapes are superimposed and processed by the operational amplifier unit to obtain the final output waveform.