Real-time monitoring system for prescription logic control of interference electrotherapy equipment
By designing a real-time monitoring system, initializing the serial settings and timers, and automatically adjusting in different waveform periods, the problem of current intensity imbalance in interfering electrical mode is solved, real-time monitoring and automatic adjustment are achieved, and the accuracy of prescriptions is improved.
Patent Information
- Application Number
- CN202111361035.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-17
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2041-11-17
AI Technical Summary
In the interfering electrical mode, the current intensity between the two or multiple electrodes is unbalanced, resulting in inaccurate prescription waveform control and switching control.
A real-time monitoring system that interferes with the prescription logic control of electrotherapy equipment is designed. By initializing serial settings, timer PWM, prescription scheduling timer, and automatically adjusting during the waveform rise, hold, rest and fall periods, the current intensity balance is achieved.
This system realizes real-time monitoring and automatic adjustment during interference electrical treatment, improves the practicality of prescriptions, facilitates modification and debugging, and solves the problem of unbalanced current intensity.
Smart Images

Figure CN114129896B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of prescription control of interference electrotherapy equipment, and in particular relates to a real-time monitoring system for prescription logic control of interference electrotherapy equipment. Background Art
[0002] Interferential electrotherapy refers to the method of cross-inputting two or more groups of sinusoidal currents of different frequencies into the human body, and forming interference at the intersection of the power lines, thereby generating low-frequency modulated pulse currents in deep tissues to achieve the purpose of treating diseases. Interferential electrotherapy prescription logic control is the core of the entire interferential electrotherapy rehabilitation treatment device, and the key is the way the prescription waveform is generated. At present, the waveform generation method of interferential electrotherapy prescription treatment varies greatly depending on the hardware support.
[0003] At present, the interference electrical prescription logic generally adopts the method of calling fixed prescription data, which makes it difficult to modify the prescription and has problems such as inaccurate prescription waveform control and switching control. Summary of the invention
[0004] In order to solve the problem of unbalanced current intensity between two or more electrodes in the interferential electrotherapy mode, the present invention provides a real-time monitoring system for prescription logic control of interferential electrotherapy equipment, which realizes real-time monitoring and automatic adjustment during the interferential electrotherapy process.
[0005] The solution adopted by the present invention to solve its technical problem is: a real-time monitoring system for the prescription logic control of interference electrotherapy equipment, characterized in that after the system is turned on, the serial settings are first initialized, then all waveform output timers PWM are initialized, two prescription scheduling timers are initialized (among which, the waveform parameter timer has an interrupt time of 1 second, and the waveform modulation timer has an interrupt time of 8ms), and all timers are started.
[0006] If the channel is open, determine whether the prescription control command sent by the screen is received. If there is a prescription control command, select the mode.
[0007] According to the received screen prescription control command, the structure content is initialized first, including selecting the prescription number, configuring the carrier frequency and configuring the modulation wave starting frequency, configuring the difference frequency array, configuring the modulation depth, configuring the waveform debugging time parameters, and setting all the waveform flag segments.
[0008] At the same time, determine whether the waveform parameter timer 1s interrupt timing has ended and the waveform modulation timer 8ms interrupt timing has ended. If the waveform parameter timer 1s interrupt timing has ended, execute the waveform parameter timer to cyclically schedule the carrier array, difference frequency array, and modulation frequency array to configure the automatic reload value and division coefficient of the waveform output timer. If the waveform modulation timer 8ms interrupt timing has ended, execute the waveform modulation timer to cyclically schedule the waveform modulation time array to configure the digital potentiometer to output different modulation waveforms.
[0009] Then, determine whether it is the start waveform output. If so, start waveform modulation, clear the waveform rising segment mark, and clear all count times. Start the judgment of the waveform rising period, waveform holding period, waveform rest period, and waveform falling period.
[0010] Finally, after completing the waveform rising period, waveform holding period, waveform rest period, and waveform falling period, load the digital potentiometer intensity value, start the modulation depth judgment, and if modulation depth is required, change the modulation depth (including 0%, 50%, and 100% modulation depth). If modulation depth is not required, return to the next cycle until the treatment time ends or the machine is manually shut down.
[0011] Determine whether it is the waveform rising period. If it is the waveform rising period, start the rising time end inspection. If the rising time is over, set the rising time period flag, clear the waveform holding period flag, clear the counting time, and jump out of the waveform rising period program. If the rising time is not over, execute the intensity value increase and time value increase. If the set intensity is not reached, it is considered that it is still in the rising time, and continue to execute the intensity value increase and time value increase. If the set intensity is reached, return to wait for the rising time to end. If it is not the waveform rising period, directly determine whether it is the waveform holding period, determine whether it is the waveform holding period, if it is not the waveform holding period, determine whether it is the waveform falling period, if it is the waveform falling period, determine whether the falling period is over, when the falling period is not over, execute the intensity value decrease and time value increase. If the set intensity is not reached, it is considered that it is still in the falling time, and continue to execute the intensity value decrease and time value increase. If the specified intensity is reached, return to wait for the rising time to end. If it is the waveform holding period, determine whether the holding time has ended. If the holding time has not ended, execute the intensity value holding, and increase the time value. If the specified intensity has not been reached, it is considered that it is still in the waveform holding period and continue to hold the waveform. If the set intensity is reached, return to wait until the specified intensity is not reached. If the holding time is over, set the falling time period flag, clear the waveform rest period flag, clear the counting time, and enter the waveform falling period judgment.
[0012] If it is not the waveform falling period, directly enter the waveform rest period judgment. When the falling period is not over, set the falling period flag, clear the waveform rest period flag, reset the counting time, and enter the waveform rest period judgment. Determine whether it is a waveform rest period. If it is not a waveform rest period, load the digital potentiometer strength value and determine whether the digital potentiometer depth needs to be modulated. If modulation depth is required, change the modulation depth (including 0%, 50%, 100% modulation depth). If modulation depth is not required, return to the next cycle until the treatment time ends or the machine is manually shut down.
[0013] If it is the waveform rest period, determine whether the rest time is over. If the hold time is not over, the rest period flag is set and the counter time is cleared. If the hold time is over, the intensity value is maintained and the time value is increased. If the specified intensity is not reached, it is considered that it is still in the waveform rest period and the waveform rest is continued. If the set intensity is reached, it returns to wait until the specified intensity is not reached.
[0014] Of the two prescription scheduling timers, the waveform parameter timer has an interruption time of 1 second, and the waveform modulation timer has an interruption time of 8ms.
[0015] The mode selection is to select one of three modes to execute.
[0016] Beneficial effects of the present invention: The real-time monitoring system for prescription logic control of the interferential electrotherapy equipment proposed in the present invention is a universal prescription generation method, which divides the output of the interfering electricity into a waveform rising period, a waveform holding period, a waveform rest period, and a waveform falling period, which greatly improves the practicality of the prescription and facilitates modification and debugging.
[0017] The invention solves the problem of waveform conversion and logic control of interfering electrical prescriptions, and realizes real-time monitoring and automatic adjustment during interfering electrical treatment. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is one of the control processes of the method of the present invention.
[0019] Figure 2 This is the second control process of the method of the present invention.
[0020] Figure 3 This is the third control process of the method of the present invention.
[0021] Figure 4 It is a system control flow chart based on the method of the present invention. DETAILED DESCRIPTION
[0022] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0023] Embodiment 1: A real-time monitoring system for prescription logic control of an interferential electrotherapy device is used to solve the problem of unbalanced current intensity between two or more electrodes in an interferential electrotherapy mode, thereby achieving real-time monitoring and automatic adjustment during interferential electrotherapy.
[0024] Specifically, the control process of this method is as follows Figure 1-Figure 3 As shown. After the system is turned on, first initialize the serial settings, then initialize all waveform output timers (PWM), initialize two prescription scheduling timers (including waveform parameter timer, interrupt time of 1 second, waveform modulation timer, interrupt time of 8ms), and start all timers. If the channel is turned on, determine whether the prescription control command sent by the screen is received. If there is a prescription control command, select the mode and select one of the three modes to execute. According to the received screen prescription control command, first initialize the structure content, including selecting the prescription number, configuring the carrier frequency, configuring the modulation wave start frequency, configuring the difference frequency array, configuring the modulation depth, configuring the waveform debugging time parameters, and setting all the waveform flag segments. At the same time, determine whether the waveform parameter timer 1s interrupt timing ends and the waveform modulation timer 8ms interrupt timing ends. If the waveform parameter timer 1s interrupt timing ends, execute the waveform parameter timer to cyclically schedule the carrier array, difference frequency array, and modulation frequency array to configure the automatic reload value and division coefficient of the waveform output timer. If the waveform modulation timer 8ms interrupt timing ends, execute the waveform modulation timer to cyclically schedule the waveform modulation time array to configure the digital potentiometer to output different modulation waveforms.
[0025] Then, determine whether it is the starting waveform output. If so, start waveform modulation, clear the waveform rising segment flag, and clear all count times. Start the judgment of the waveform rising period, waveform holding period, waveform rest period, and waveform falling period. Since the program execution content in these four states is similar, only the rising period is used as an example for explanation here. If it is the waveform rising period, start the rising time end inspection. If the rising time is over, set the rising time period flag, clear the waveform holding segment flag, clear the count time, and jump out of the waveform rising period program. If the rising time is not over, execute the intensity value increase and time value increase. If the set intensity is not reached, it is considered that it is still in the rising time, and continue to execute the intensity value increase and time value increase. If the set intensity is reached, return to wait for the end of the rising time.
[0026] Finally, after completing the waveform rising period, waveform holding period, waveform rest period, and waveform falling period, load the digital potentiometer intensity value, start the modulation depth judgment, and if modulation depth is required, change the modulation depth (including 0%, 50%, and 100% modulation depth). If modulation depth is not required, return to the next cycle until the treatment time ends or the machine is manually shut down.
[0027] The biggest feature of the above method in this embodiment is that the electrotherapy waveform is divided into a rising period, a waveform holding period, a waveform rest period, and a waveform falling period, which can realize the generation of universal waveforms required for various types of interference electricity and has the advantage of precise waveform time control.
[0028] Embodiment 2: Based on Embodiment 1, when waveform modulation is performed, the waveform rising section flag is cleared, and all count times are cleared. The judgment of the waveform rising period, waveform holding period, waveform rest period, and waveform falling period is started. Among them, it is judged whether it is the waveform rising period. If it is the waveform rising period, the rising time end inspection is started. If the rising time is over, the rising time period flag is set, the waveform holding segment flag is cleared, the counting time is reset, and the waveform rising period program is jumped out.
[0029] If the rising time has not ended, the intensity value and time value will be increased. If the set intensity has not been reached, it is considered that it is still in the rising time and the intensity value and time value will continue to be increased. If the set intensity is reached, it will return to wait for the rising time to end.
[0030] If it is not the waveform rising period, directly determine whether it is the waveform holding period, determine whether it is the waveform holding period, if it is not the waveform holding period (if it is the waveform holding period, determine whether the holding time is over, if the holding time is not over, execute the intensity value holding, and increase the time value. If the specified intensity is not reached, it is considered that it is still in the waveform holding period, and continue to execute the waveform holding. If the set intensity is reached, return to wait until the specified intensity is not reached), determine whether it is the waveform falling period, if it is the waveform falling period (if it is not the waveform falling period, directly enter the waveform rest period to judge), determine whether the falling period is over, when the falling period is not over (when the falling period is not over, set the falling period flag, clear the waveform rest period flag, clear the counting time, and enter the waveform rest period to judge), execute the intensity value downshift, and increase the time value. If the set intensity is not reached, it is considered that it is still in the falling time, and continue to execute the intensity value downshift and the time value upshift. If the specified intensity is reached, return to wait for the end of the rising time. In the above process, if the holding time is over, set the falling period flag, clear the waveform rest period flag, clear the counting time, and enter the waveform falling period to judge.
[0031] Determine whether it is the waveform rest period. If it is not the waveform rest period (if it is the waveform rest period, determine whether the rest time is over. If the hold time is not over (if the hold time is over, the execution intensity value is maintained and the time value is increased. If the specified intensity is not reached, it is considered that it is still in the waveform rest period and the waveform rest is continued. If the set intensity is reached, it returns to wait until the specified intensity is not reached) and the rest period flag is set, and the counter time is cleared), load the digital potentiometer intensity value, and determine whether the digital potentiometer depth needs to be modulated.
[0032] Finally, after completing the waveform rising period, waveform holding period, waveform rest period, and waveform falling period, load the digital potentiometer intensity value, start the modulation depth judgment, and if modulation depth is required, change the modulation depth (including 0%, 50%, and 100% modulation depth). If modulation depth is not required, return to the next cycle until the treatment time ends or the machine is manually shut down.
[0033] Embodiment 3: Based on Embodiment 1 or 2, the control flow chart of the method according to each embodiment is as follows: Figure 4 As shown. After the system is powered on, the ADC module and the digital tube module are initialized first, and the 3.3V voltage is divided into 10 equally divided voltage levels, namely 0~ 0.33V, 0.34~0.66V, 0.67~0.99V, 1V~1.32V, 1.33V~1.65V, 1.66V~1.98V, 1.99V~2.31V, 2.32V~2.65V, 2.66V~2.98V, 2.99V~3.3V. Each voltage segment corresponds to a level, which are 1 to 10 levels. Then, the ADC is used to sample the voltage value, and the bubble sort algorithm is used for the collected 10 consecutive sampling values to calculate the peak value of the 10 sampling voltages. In the above method, the voltage values of the two electrodes are collected, and the collected 10 AD voltage values are sorted and filtered, and the voltage peak values within 10 times are obtained. The obtained peak voltage is matched with the voltage level that has been charged (if it is within a certain voltage range, and it is determined that the potentiometer is in this level at this moment), and the voltage display level selection is determined.
[0034] Next, the program determines whether it is in interference mode. If it is not in interference mode, continue range judgment. If it is in interference mode, judge the knob lock status. If the knob is not locked, return to continue reading. If the knob is locked, judge whether the two digital tubes display the same gear. If the two digital tubes display the same gear, save the current gear value as the real gear intensity value for output. If the two digital tubes display the gear is not equal, start the electrode output balance processing algorithm (take the larger electrode gear as the reference gear, adjust the other electrode gear output equal to the set reference gear), finally, return to AD sampling, and repeat the sorting algorithm.
[0035] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modification, equivalent substitution, improvement, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention.
Claims
1. A real-time monitoring system for interference with prescription logic control of electrotherapy equipment, characterized in that: Including waveform output timer, prescription scheduling timer, waveform parameter timer, waveform modulation timer, digital potentiometer and screen. After the system is turned on, first initialize the serial settings, then initialize all waveform output timers PWM, initialize two prescription scheduling timers, and start all timers; if the channel is turned on, determine whether the prescription control command sent by the screen is received; if there is a prescription control command, select the mode; according to the received screen prescription control command, first initialize the structure content, including selecting the prescription number, configuring the carrier frequency and configuring the modulation wave starting frequency, configuring the difference frequency array, configuring the modulation depth, configuring the waveform debugging time parameters, and setting all the waveform flag segments; at the same time, determine: whether the waveform parameter timer t1 interrupt timing ends and the waveform modulation timer t2 interrupt timing ends; if the waveform parameter timer t1 interrupt timing ends, execute The waveform parameter timer cyclically schedules the carrier array, the difference frequency array, and the modulation frequency array to configure the automatic reload value and the division coefficient of the waveform output timer; if the waveform modulation timer t2 interrupt timing ends, the waveform modulation timer cyclically schedules the waveform modulation time array to configure the digital potentiometer to output different modulation waveforms; then, it is determined whether it is the starting waveform output. If so, the waveform modulation is started, the waveform rising segment flag is cleared, and all counting times are cleared; the waveform rising period, waveform holding period, waveform rest period, and waveform falling period are judged; finally, after the waveform rising period, waveform holding period, waveform rest period, and waveform falling period are completed, the digital potentiometer intensity value is loaded, and the modulation depth judgment is started. If modulation depth is required, the modulation depth is changed; if modulation depth is not required, it returns to the next cycle until it ends or is manually stopped.
2. The real-time monitoring system for prescription logic control of interference electrotherapy equipment according to claim 1 is characterized in that: Determine whether it is the waveform rising period. If it is the waveform rising period, start the rising time end inspection. If the rising time is over, set the rising time period flag, clear the waveform holding period flag, reset the counting time, and jump out of the waveform rising period program. If it is not the waveform rising period, directly determine whether it is the waveform holding period.
3. The real-time monitoring system for prescription logic control of interference electrotherapy equipment according to claim 2 is characterized in that: If the rising time has not ended, the intensity value and time value will be increased. If the set intensity has not been reached, it is considered that it is still in the rising time and the intensity value and time value will continue to be increased. If the set intensity is reached, it returns to wait for the rising time to end.
4. The real-time monitoring system for prescription logic control of interference electrotherapy equipment according to claim 1 is characterized in that: Determine whether it is a waveform holding period. If it is not a waveform holding period, determine whether it is a waveform falling period. If it is a waveform falling period, determine whether the falling period has ended. If the falling period has not ended, execute the intensity value downshift and the time value upshift. If the set intensity is not reached, it is considered that it is still in the falling period, and continue to execute the intensity value downshift and the time value upshift. If the specified intensity is reached, it returns to wait for the rise time to end.
5. The real-time monitoring system for prescription logic control of interference electrotherapy equipment according to claim 4 is characterized in that: When the falling period has not ended, the falling period flag is set, the waveform rest period flag is cleared, the counting time is reset, and the waveform rest period judgment is entered.
6. The real-time monitoring system for prescription logic control of interference electrotherapy equipment according to claim 1 is characterized in that: Determine whether it is a waveform rest period. If it is not a waveform rest period, load the digital potentiometer strength value and determine whether the digital potentiometer depth needs to be modulated. If modulation depth is required, change the modulation depth; if modulation depth is not required, return to the next cycle until it ends or is manually stopped.
7. The real-time monitoring system for prescription logic control of interference electrotherapy equipment according to claim 1, characterized in that: If it is a waveform rest period, determine whether the rest time is over. If the hold time is not over, the rest time period flag is set and the counter time is cleared.
8. The real-time monitoring system for prescription logic control of interference electrotherapy equipment according to claim 7, characterized in that: If the hold time ends, the intensity value is held and the time value is increased. If the specified intensity is not reached, it is considered that it is still in the waveform rest period and the waveform rest continues.
9. The real-time monitoring system for prescription logic control of interference electrotherapy equipment according to claim 8, characterized in that: If the set intensity is reached, it returns to wait until the set intensity is not reached.
10. The real-time monitoring system for prescription logic control of interference electrotherapy equipment according to claim 1, characterized in that: In the two prescription scheduling timers, the waveform parameter timer, the interruption time t1 is 1 second, and the waveform modulation timer, the interruption time t2 is 0.8ms.
Citation Information
Patent Citations
Continuous-phase frequency-shift keying digital demodulation device and demodulation method implemented by same
CN103634263A
Double-path warm middle-low frequency therapeutic instrument with self-checking function and implementation method
CN105477781A