[go: up one dir, main page]

CN103202691B - Method and device for improving electrocardiogram waveform data printing efficiency - Google Patents

Method and device for improving electrocardiogram waveform data printing efficiency Download PDF

Info

Publication number
CN103202691B
CN103202691B CN201310091355.1A CN201310091355A CN103202691B CN 103202691 B CN103202691 B CN 103202691B CN 201310091355 A CN201310091355 A CN 201310091355A CN 103202691 B CN103202691 B CN 103202691B
Authority
CN
China
Prior art keywords
waveform data
counting
data
module
egc waveform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201310091355.1A
Other languages
Chinese (zh)
Other versions
CN103202691A (en
Inventor
刘刚
李君�
黄志安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Edan Instruments Inc
Original Assignee
Edan Instruments Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Edan Instruments Inc filed Critical Edan Instruments Inc
Priority to CN201310091355.1A priority Critical patent/CN103202691B/en
Publication of CN103202691A publication Critical patent/CN103202691A/en
Application granted granted Critical
Publication of CN103202691B publication Critical patent/CN103202691B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Electronic Switches (AREA)

Abstract

The invention relates to the processing and controlling field of electrocardiogram signal printing, and particularly relates to a method and device for improving an electrocardiogram waveform data printing efficiency. According to the technical scheme provided by the invention, judgment of the point number for a printed waveform is carried out by setting a threshold value of the printing point number to further realize point extraction process, so that the printing power can be controlled, and a thermo-sensitive head is protected from being overheated due to the printing; and meanwhile, the repeated printing time number can be reduced, and the service life of the printing head can be prolonged.

Description

一种提高心电波形数据打印效率的方法和装置A method and device for improving the printing efficiency of ECG waveform data

技术领域 technical field

本发明涉及心电信号打印的处理与控制领域,尤其涉及一种提高心电波形数据打印效率的方法及装置 The invention relates to the field of processing and control of electrocardiographic signal printing, in particular to a method and device for improving the printing efficiency of electrocardiographic waveform data .

背景技术 Background technique

在医疗检测领域,波形数据有着重要的意义,通过实时地采集表征生理信号的波形数据,为后续的数据处理、分析和计算提供了有力的支持。In the field of medical testing, waveform data is of great significance. By collecting waveform data representing physiological signals in real time, it provides strong support for subsequent data processing, analysis and calculation.

目前,现有技术使用热敏记录心电数据,把采集到的所有数据都发送至热敏头进行记录。At present, the existing technology uses heat sensitivity to record ECG data, and all the collected data are sent to the thermal head for recording.

以热敏打印头的点密度为8 dots/mm为例,打印头一般纵向打印,当热敏头点密度为8 dots/mm,也就是热敏报告纵向上1mm最多可以打印8个点,1mm打印8个点打印效果上即连在一起了,分辨不开。Taking the dot density of the thermal print head as 8 dots/mm as an example, the print head generally prints vertically. When the dot density of the thermal head is 8 dots/mm, that is, the thermal report can print up to 8 dots in the longitudinal direction of 1mm, 1mm After printing 8 dots, the printing effect is connected together, and they cannot be distinguished.

热敏打印头的发热点是均匀发热的,由于走纸而会横向在纸张上显示,这种情况下打印效果同于纵向,那么热敏报告横向上1mm内打印8个点,从打印效果上看也是连在一起,多于8个点会出现打印重叠,打印效果是分辨不开这些点,只是会呈现的颜色较深。The heating point of the thermal print head is evenly heated, and it will be displayed on the paper horizontally due to the paper feeding. In this case, the printing effect is the same as that of the vertical direction. Then the thermal report prints 8 points within 1mm in the horizontal direction. From the printing effect It is also connected together, more than 8 dots will overlap in printing, the printing effect is that these dots cannot be distinguished, but the color will be darker.

基于这点我们可以看出,现有技术记录心电数据,打印的数据在一定距离(比如,1mm)内超过一定的点数(比如,8个)时,存在重复记录的情况,这样既缩短了热敏头的寿命,还浪费了资源降低了效率。Based on this point, we can see that when the prior art records ECG data and the printed data exceeds a certain number of points (for example, 8) within a certain distance (for example, 1mm), there is a situation of repeated recording, which shortens the The life of the thermal head also wastes resources and reduces efficiency.

因此,现有技术存在缺陷 Therefore, the prior art has deficiencies .

发明内容 Contents of the invention

为克服上述缺陷,本发明的目的即在于一种提高心电波形数据打印效率的方法及装置。In order to overcome the above defects, the object of the present invention is a method and device for improving the printing efficiency of ECG waveform data.

本发明的目的是通过以下技术方案来实现的:The purpose of the present invention is achieved through the following technical solutions:

一种提高心电波形数据打印效率的方法,包括如下步骤:A method for improving the printing efficiency of electrocardiographic waveform data, comprising the steps of:

步骤1,将采集的心电波形数据存储到数据缓冲区;Step 1, storing the collected ECG waveform data into the data buffer;

步骤2,根据预设定的心电波形数据采样率计算出预设时长内的采样点数;Step 2, calculate the number of sampling points within the preset duration according to the preset ECG waveform data sampling rate;

步骤3,判断预设时长内的有效采样点数是否超过预设的点数阈值;Step 3, judging whether the number of effective sampling points within the preset duration exceeds the preset point threshold;

步骤4,如果超过预设的点数阈值,则对预设时长内的有效采样点数进行抽点处理;Step 4, if the preset points threshold is exceeded, the valid sampling points within the preset time period are sampled;

步骤5,如果没有超过预设的点数阈值,则热敏打印头打印心电波形数据。Step 5, if the preset dot threshold is not exceeded, the thermal print head prints the ECG waveform data.

进一步的,所述的步骤4还包括,抽点处理完成后重新返回步骤4。Further, the step 4 further includes returning to step 4 after the snapshot processing is completed.

更进一步的,所述的步骤1之前,还包括对采集到的心电波形数据进行预处理的步骤。Furthermore, before step 1, a step of preprocessing the collected ECG waveform data is also included.

更进一步的,所述的步骤2之后,还包括建立列数为预设时长内的采样点数的心电波形数据二维数组的步骤。Furthermore, after the step 2, it also includes the step of establishing a two-dimensional array of ECG waveform data whose column number is the number of sampling points within the preset time length.

更进一步的,所述的步骤3还包括,对二维数组按行进行遍历,判断各行的有效波形数据是否超过预设的点数阈值的步骤。Furthermore, the step 3 also includes the step of traversing the two-dimensional array row by row, and judging whether the valid waveform data of each row exceeds a preset point threshold.

更进一步的,所述的步骤4所述的抽点处理,包括从行首开始,针对有效波形数据进行逐点计数直到达到点数阈值范围,剩余的波形数据则删除不打印。Furthermore, the snapping process described in step 4 includes starting from the beginning of the line and counting the effective waveform data point by point until reaching the point threshold range, and the remaining waveform data is deleted without printing.

更进一步的,所述的步骤4所述的抽点处理,包括从行尾开始,针对有效波形数据进行逐点计数直到达到点数阈值范围,剩余的波形数据则删除不打印。Furthermore, the sampling processing described in step 4 includes starting from the end of the line and counting the effective waveform data point by point until reaching the point threshold range, and the remaining waveform data is deleted without printing.

更进一步的,所述的步骤4所述的抽点处理,包括随机抽取有效波形数据直到达到点数阈值范围,剩余的波形数据则删除不打印。Furthermore, the sampling processing described in step 4 includes randomly extracting valid waveform data until reaching the point threshold range, and deleting the remaining waveform data without printing.

一种提高心电波形数据打印效率的装置,包括:A device for improving the printing efficiency of ECG waveform data, comprising:

波形数据采集模块,用于采集心电波形数据;Waveform data acquisition module, used to collect ECG waveform data;

波形数据缓冲模块,与所述的波形数据采集模块相连接,用于将采集的心电波形数据存储到数据缓冲区;The waveform data buffer module is connected with the waveform data acquisition module, and is used to store the collected ECG waveform data into the data buffer;

采样点数计算模块,与所述的波形数据缓冲模块相连接,用于根据预设定的心电波形数据采样率计算出预设时长内的采样点数;The number of sampling points calculation module is connected with the waveform data buffer module, and is used to calculate the number of sampling points within the preset duration according to the preset ECG waveform data sampling rate;

点数阈值判断模块,与所述的采样点数计算模块相连接,用于判断预设时长内的有效采样点数是否超过预设的点数阈值;Points threshold judgment module, connected to the sampling points calculation module, used to judge whether the effective sampling points within the preset duration exceed the preset points threshold;

波形数据抽点模块,与所述的点数阈值判断模块相连接,用于当判断超过预设的点数阈值时,对预设时长内的有效采样点数进行抽点处理;The waveform data sampling module is connected to the point threshold judgment module, and is used to perform sampling processing on the effective sampling points within the preset time length when the judgment exceeds the preset point threshold;

热敏打印模块,与所述的点数阈值判断模块相连接,用于当判断没有超过预设的点数阈值时,热敏打印头打印心电波形数据。The thermal printing module is connected with the dot threshold judging module, and is used for printing ECG waveform data by the thermal print head when it is judged that the preset dot threshold is not exceeded.

进一步的,所述的一种提高心电波形数据打印效率的装置,还包括:Further, the described device for improving the printing efficiency of ECG waveform data also includes:

波形数据预处理模块,与所述的波形数据采集模块和波形数据缓冲模块相连接,用于对采集到的心电波形数据进行预处理;Waveform data preprocessing module, connected with the waveform data acquisition module and waveform data buffer module, for preprocessing the collected ECG waveform data;

二维数组建立模块,与所述的采样点数计算模块和点数阈值判断模块相连接,用于建立列数为预设时长内的采样点数的心电波形数据二维数组。The two-dimensional array establishment module is connected with the sampling points calculation module and the points threshold judgment module, and is used to establish a two-dimensional array of ECG waveform data whose column number is the sampling points within the preset time length.

本发明所提供的技术方案,通过设置打印点数阈值达到对打印的波形进行点数判断进而实现抽点处理,从而可以控制打印功率,保护热敏头不因打印而过热;同时可以减少重复打印次数,延长打印头寿命。The technical scheme provided by the present invention can judge the number of printed waveforms by setting the threshold of printing points, and then realize the sampling process, so that the printing power can be controlled, and the thermal head can be protected from overheating due to printing; at the same time, the number of repeated printing can be reduced. Extend print head life.

附图说明 Description of drawings

为了易于说明,本发明由下述的较佳实施例及附图作以详细描述。For ease of illustration, the present invention is described in detail by the following preferred embodiments and accompanying drawings.

图1为本发明的一种提高心电波形数据打印效率的方法的一个实施例示意图;Fig. 1 is a schematic diagram of an embodiment of a method for improving the printing efficiency of ECG waveform data of the present invention;

图2为本发明的一种提高心电波形数据打印效率的方法的另一个实施例示意图;Fig. 2 is a schematic diagram of another embodiment of a method for improving the printing efficiency of ECG waveform data according to the present invention;

图3为本发明的一种提高心电波形数据打印效率的装置的一个实施例示意图;Fig. 3 is a schematic diagram of an embodiment of a device for improving the printing efficiency of ECG waveform data according to the present invention;

图4为本发明的一种提高心电波形数据打印效率的装置的另一个实施例示意图;Fig. 4 is a schematic diagram of another embodiment of a device for improving the printing efficiency of ECG waveform data according to the present invention;

具体实施方式 Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

用于提高波形数据打印效率的技术方案实现主要包括上位机和下位机,下位机主要是获取信号,然后经过硬件滤波等对数据进行处理;上位机主要是接受来自下位机的数据,进行预处理,然后存储至数据缓冲区进行抽点处理,最后输出到热敏打印头,主要处理方法流程如图1所示: The implementation of the technical solution for improving the printing efficiency of waveform data mainly includes the upper computer and the lower computer. The lower computer mainly obtains the signal, and then processes the data through hardware filtering, etc.; the upper computer mainly receives the data from the lower computer and performs preprocessing. , and then stored in the data buffer for sampling processing, and finally output to the thermal print head, the main processing method flow chart is shown in Figure 1:

101、采集心电波形数据; 101. Collect ECG waveform data;

下位机在预定时长内采集心电波形数据,一般经过硬件滤波等处理后,将波形数据不停发送给上位机。 The lower computer collects ECG waveform data within a predetermined period of time, and generally sends the waveform data to the upper computer continuously after processing such as hardware filtering.

102、将采集的心电波形数据存储到数据缓冲区; 102. Store the collected ECG waveform data into the data buffer;

心电波形数据存放在用户前端用来存储、操纵数据的对象,也即数据缓冲区中。 ECG waveform data is stored in the object used by the user front end to store and manipulate data, that is, the data buffer.

103、根据预设定的心电波形数据采样率计算出预设时长内的采样点数; 103. Calculate the number of sampling points within the preset duration according to the preset ECG waveform data sampling rate;

比如,心电波形数据的采样率1000Hz,预设时长为50ms时,预设时长内采集的点数为1000*0.05=50个点。 For example, when the sampling rate of ECG waveform data is 1000 Hz and the preset duration is 50 ms, the number of points collected within the preset duration is 1000*0.05=50 points.

104、判断预设时长内的有效采样点数是否超过预设的点数阈值? 104. Determine whether the number of effective sampling points within the preset duration exceeds the preset point threshold?

热敏打印头一般纵向打印,当热敏头点密度为D (dots/mm),也就是热敏报告纵向上1mm最多可以打印D个点;热敏打印头的发热点是均匀发热的,由于走纸而会横向在纸张上显示,这种情况下打印效果同于纵向,那么热敏报告横向上1mm内打印可以限制在D个点,多于D个点会出现打印重叠。因此,点数阈值可以由热敏头点密度,预设走纸速度和预设时间得来。比如说:当热敏头规格的点密度为D (Dots/mm)时,走纸速度为V (mm/s)时,预设时间为t (s),则点数阈值为D*V*t,当然也可以根据实验的结果和效果设定合适的热敏头的点密度,再根据走纸速度和预设时间共同确定点数阈值; The thermal print head generally prints vertically. When the dot density of the thermal head is D (dots/mm), that is, the thermal report can print up to D dots in the longitudinal direction of 1mm; the heat of the thermal print head is evenly heated, because The paper will be displayed horizontally on the paper when it is fed. In this case, the printing effect is the same as that of the vertical direction. Then the printing within 1mm in the horizontal direction of the thermal report can be limited to D dots, and if more than D dots, printing overlap will occur. Therefore, the dot threshold can be obtained from thermal head dot density, preset paper speed and preset time. For example: when the dot density of the thermal head specification is D (Dots/mm), when the paper feeding speed is V (mm/s), the preset time is t (s), then the dot threshold is D*V*t , of course, you can also set the appropriate dot density of the thermal head according to the experimental results and effects, and then determine the dot threshold according to the paper speed and preset time;

对于各个采样点一般采集的数据可以根据数据的大小、类型等等去判断是有效数据还是无效数据。 For the data generally collected at each sampling point, it can be judged whether it is valid data or invalid data according to the size, type, etc. of the data.

105、如果判断超过预设的点数阈值,则对预设时长内的有效采样点数进行抽点处理; 105. If it is judged that the number of points exceeds the preset point threshold, the number of effective sampling points within the preset time period is sampled;

进行抽点处理,限制有效波形数据的数目在点数阈值范围以内,抽点处理的方式很多,比如,可以从头开始抽取、从尾开始抽取、随机抽取、以一定的数据大小阈值范围进行抽取、或者以相邻数据之差的一个阈值范围进行抽取;抽取处理完成后重新返回步骤104进行判断。 Perform sampling processing to limit the number of valid waveform data within the threshold range of points. There are many methods of sampling processing, for example, extraction from the beginning, extraction from the end, random extraction, extraction with a certain data size threshold range, or The extraction is performed with a threshold range of the difference between adjacent data; after the extraction process is completed, return to step 104 for judgment.

106、如果判断没有超过预设的点数阈值,则热敏打印头打印心电波形数据; 106. If it is judged that the preset point threshold is not exceeded, the thermal print head prints the ECG waveform data;

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。如图2所示,本发明的一种提高心电波形数据打印效率的方法的另一个实施例,具体描述如下: In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. As shown in Figure 2, another embodiment of a method for improving the printing efficiency of ECG waveform data according to the present invention is specifically described as follows:

201、采集心电波形数据; 201. Collect ECG waveform data;

下位机在预定时长内采集心电波形数据,一般经过硬件滤波等处理后,将波形数据不停发送给上位机。 The lower computer collects ECG waveform data within a predetermined period of time, and generally sends the waveform data to the upper computer continuously after processing such as hardware filtering.

202、对采集到的心电波形数据进行预处理; 202. Preprocessing the collected ECG waveform data;

对波形数据进行如下预处理:数据转换、高通滤波,低通滤波,交流滤波。通过预处理得到干扰较小的波形数据。 Perform the following preprocessing on the waveform data: data conversion, high-pass filtering, low-pass filtering, and AC filtering. Waveform data with less interference is obtained through preprocessing.

当然,预处理的方法还有很多,比如求导,积分,基准点定位等等。 Of course, there are many preprocessing methods, such as derivation, integration, reference point positioning, and so on.

203、将预处理后的心电波形数据存储到数据缓冲区; 203. Store the preprocessed ECG waveform data in the data buffer;

心电波形数据存放在用户前端用来存储、操纵数据的对象,也即数据缓冲区中。 ECG waveform data is stored in the object used by the user front end to store and manipulate data, that is, the data buffer.

204、根据预设定的心电波形数据采样率计算出预设时长内的采样点数; 204. Calculate the number of sampling points within the preset duration according to the preset ECG waveform data sampling rate;

比如,心电波形数据的采样率1000Hz,预设时长为50ms时,预设时长内采集的点数为1000*0.05=50个点。 For example, when the sampling rate of ECG waveform data is 1000 Hz and the preset duration is 50 ms, the number of points collected within the preset duration is 1000*0.05=50 points.

205、建立列数为预设时长内的采样点数的心电波形数据二维数组; 205. Establishing a two-dimensional array of ECG waveform data whose column number is the number of sampling points within a preset duration;

建立二维数组,数组的总列数为预设时间内的采样点数,数组的总行数优选为小于等于热敏头的在纵向上最多能打印的点数,由于热敏打印头长度的限制,因此在纵向上打印的长度也有其固定的范围,需要打印的数据要在此范围内才能完全打印;建立二维数组更方便后续的数据抽取和打印输出,提高了工作的效率;当然,还可以其他的存储数据与分析方式,比如通过数组指针实现。 Establish a two-dimensional array. The total number of columns of the array is the number of sampling points within a preset time. The total number of rows of the array is preferably less than or equal to the maximum number of points that can be printed vertically by the thermal head. Due to the limitation of the length of the thermal print head, therefore The length of printing in the vertical direction also has its fixed range, and the data to be printed must be within this range to be completely printed; the establishment of a two-dimensional array is more convenient for subsequent data extraction and printout, and improves work efficiency; of course, other storage data and analysis methods, such as through array pointers.

206、对二维数组按行进行遍历,判断各行的有效波形数据是否超过预设的点数阈值? 206. Traversing the two-dimensional array row by row, and judging whether the valid waveform data of each row exceeds the preset point threshold?

热敏打印头一般纵向打印,当热敏头点密度为D (dots/mm),也就是热敏报告纵向上1mm最多可以打印D个点;热敏打印头的发热点是均匀发热的,由于走纸而会横向在纸张上显示,这种情况下打印效果同于纵向,那么热敏报告横向上1mm内打印可以限制在D个点,多于D个点会出现打印重叠。因此,点数阈值可以由热敏头点密度,预设走纸速度和预设时间得来。比如说:当热敏头规格的点密度为D (Dots/mm)时,走纸速度为V (mm/s)时,预设时间为t (s),则点数阈值为D*V*t,当然也可以根据实验的结果和效果设定合适的热敏头的点密度,再根据走纸速度和预设时间共同确定点数阈值; The thermal print head generally prints vertically. When the dot density of the thermal head is D (dots/mm), that is, the thermal report can print up to D dots in the longitudinal direction of 1mm; the heat of the thermal print head is evenly heated, because The paper will be displayed horizontally on the paper when it is fed. In this case, the printing effect is the same as that of the vertical direction. Then the printing within 1mm in the horizontal direction of the thermal report can be limited to D dots, and if more than D dots, printing overlap will occur. Therefore, the dot threshold can be obtained from thermal head dot density, preset paper speed and preset time. For example: when the dot density of the thermal head specification is D (Dots/mm), when the paper feeding speed is V (mm/s), the preset time is t (s), then the dot threshold is D*V*t , of course, you can also set the appropriate dot density of the thermal head according to the experimental results and effects, and then determine the dot threshold according to the paper speed and preset time;

对于各个采样点一般采集的数据可以根据数据的大小、类型等等去判断是有效数据还是无效数据。 For the data generally collected at each sampling point, it can be judged whether it is valid data or invalid data according to the size, type, etc. of the data.

207、如果判断超过预设的点数阈值,则对各行有效波形数据进行抽点处理; 207. If it is judged that the threshold value of the number of points exceeds the preset point value, the effective waveform data of each row is sampled;

对二维数组按行进行遍历,当某一行有效波形数据的数目超过点数阈值时,进行抽点处理,限制有效波形数据的数目在点数阈值范围以内; Traversing the two-dimensional array row by row, when the number of valid waveform data in a certain row exceeds the point threshold, perform sampling processing to limit the number of valid waveform data within the range of the point threshold;

由于对于二维数组元素的抽点,是以行为单位进行的,抽取的方法举例如下: Since the extraction of two-dimensional array elements is carried out in units of rows, the extraction method is as follows:

1)从行首开始,针对有效波形数据进行逐点计数直到达到点数阈值范围,剩余的波形数据则删除不打印; 1) Starting from the beginning of the line, the valid waveform data is counted point by point until it reaches the point threshold range, and the remaining waveform data is deleted and not printed;

2)从行尾开始,针对有效波形数据进行逐点计数直到达到点数阈值范围,剩余的波形数据则删除不打印; 2) Starting from the end of the line, count the valid waveform data point by point until it reaches the point threshold range, and delete the remaining waveform data without printing;

3)随机抽取有效波形数据直到达到点数阈值范围,剩余的波形数据则删除不打印; 3) Randomly extract valid waveform data until it reaches the point threshold range, and delete the remaining waveform data without printing;

如下举例进行简单说明: The following example is briefly explained:

当走纸速度为5mm/s,打印头点密度8 dots/mm,打印头发热点总数为24 dots(热敏打印头纵向上打印的长度),采样率1000Hz,预设时间为50ms时,预设时间采集点数为1000*0.05=50个点,建立二维数组a[50][24],数组所有元素初始值为0;点数阈值可以为8*5*0.05=2个点; When the paper feeding speed is 5mm/s, the dot density of the print head is 8 dots/mm, the total number of hot spots of the printed hair is 24 dots (the length printed in the vertical direction of the thermal print head), the sampling rate is 1000Hz, and the preset time is 50ms, the preset The number of time collection points is 1000*0.05=50 points, and a two-dimensional array a[50][24] is established, and the initial value of all elements of the array is 0; the point threshold can be 8*5*0.05=2 points;

预设时间内采集的数据存储至上述二维数组中,如在第1 (ms)采集的数据幅值为10,那么将a[0][9]置为1,即标记为需打印; The data collected within the preset time is stored in the above-mentioned two-dimensional array. If the data collected in the first (ms) amplitude is 10, then set a[0][9] to 1, which means it is marked as printable;

对二维数组a[50][24]进行按行遍历,当某一行元素为1的数目超过2个点时,进行抽点处理,限制每行为1的元素数目在为2; Traverse the two-dimensional array a[50][24] row by row. When the number of 1 elements in a certain row exceeds 2 points, perform sampling processing to limit the number of 1 elements in each row to 2;

如对第二行元素进行遍历,a[0][1],a[1][1], …, a[49][1],当统计到为1的元素总数超过了点数阈值2,则需要进行抽点处理,限制此行为1的元素总数为2; For example, to traverse the elements of the second row, a[0][1], a[1][1], ..., a[49][1], when the total number of elements counted as 1 exceeds the point threshold 2, then Sampling is required, and the total number of elements in this behavior 1 is limited to 2;

抽点处理的方法如下: The sampling method is as follows:

1)可以设置a[0][1],a[1][1]为1,行内剩余数组元素置为0; 1) You can set a[0][1], a[1][1] to 1, and set the remaining array elements in the row to 0;

2)可以设置a[48][1],a[49][1]为1,行内剩余数组元素置为0; 2) You can set a[48][1], a[49][1] to 1, and set the remaining array elements in the row to 0;

3)随机抽取两个元素为1,如设置a[12][1],a[26][1]为1,行内剩余数组元素置为0; 3) Randomly select two elements as 1, for example, set a[12][1] and a[26][1] to 1, and set the remaining array elements in the row to 0;

当然还可以是其他的抽点方式,如步骤105中所述。 Of course, other snapshot methods are also possible, as described in step 105 .

抽取处理完成后重新返回步骤206进行判断。 After the extraction process is completed, return to step 206 for judgment.

208、如果判断没有超过预设的点数阈值,则热敏打印头打印心电波形数据; 208. If it is judged that the preset point threshold is not exceeded, the thermal print head prints the ECG waveform data;

本发明一种提高心电波形数据打印效率的装置的一个实施例示意图,如图3所示,具体描述如下: A schematic diagram of an embodiment of a device for improving the printing efficiency of ECG waveform data according to the present invention, as shown in FIG. 3 , and is specifically described as follows:

一种提高心电波形数据打印效率的装置,包括: A device for improving the printing efficiency of ECG waveform data, comprising:

波形数据采集模块301,用于采集心电波形数据; Waveform data acquisition module 301, used for collecting ECG waveform data;

波形数据缓冲模块302,与所述的波形数据采集模块301相连接,用于将采集的心电波形数据存储到数据缓冲区; Waveform data buffering module 302, is connected with described waveform data acquisition module 301, is used for storing the electrocardiogram waveform data of collection into data buffer;

采样点数计算模块303,与所述的波形数据缓冲模块302相连接,用于根据预设定的心电波形数据采样率计算出预设时长内的采样点数; The number of sampling points calculation module 303 is connected with the waveform data buffer module 302, and is used to calculate the number of sampling points within the preset time length according to the preset ECG waveform data sampling rate;

点数阈值判断模块304,与所述的采样点数计算模块303相连接,用于判断预设时长内的有效采样点数是否超过预设的点数阈值; Points threshold judgment module 304, connected to the sampling points calculation module 303, for judging whether the valid sampling points within the preset duration exceed the preset points threshold;

波形数据抽点模块305,与所述的点数阈值判断模块304相连接,用于当判断超过预设的点数阈值时,对预设时长内的有效采样点数进行抽点处理; The waveform data sampling module 305 is connected with the point threshold judging module 304, and is used to perform sampling processing on the effective sampling points in the preset duration when the judgment exceeds the preset point threshold;

热敏打印模块306,与所述的点数阈值判断模块304相连接,用于当判断没有超过预设的点数阈值时,热敏打印头打印心电波形数据。 The thermal printing module 306 is connected with the dot threshold judging module 304, and is used for printing ECG waveform data by the thermal print head when it is judged that the preset dot threshold is not exceeded.

为了使本发明的目的、技术方案及优点更加清楚明白,本发明一种提高心电波形数据打印效率的装置的另一个实施例示意图,如图4所示,具体描述如下: In order to make the purpose, technical solution and advantages of the present invention clearer, a schematic diagram of another embodiment of a device for improving the printing efficiency of ECG waveform data in the present invention, as shown in Figure 4, is specifically described as follows:

一种提高心电波形数据打印效率的装置,还包括: A device for improving the printing efficiency of ECG waveform data, further comprising:

波形数据预处理模块307,与所述的波形数据采集模块301和波形数据缓冲模块302相连接,用于对采集到的心电波形数据进行预处理; The waveform data preprocessing module 307 is connected with the waveform data acquisition module 301 and the waveform data buffer module 302, and is used for preprocessing the collected ECG waveform data;

二维数组建立模块308,与所述的采样点数计算模块303和点数阈值判断模块304相连接,用于建立列数为预设时长内的采样点数的心电波形数据二维数组; The two-dimensional array building module 308 is connected with the sampling points calculation module 303 and the points threshold judgment module 304, and is used to establish a two-dimensional array of ECG waveform data whose column number is the sampling points in the preset duration;

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,比如,本发明所述的心电波形数据也可以是心电波形数据、血氧波形数据、血压波形数据等,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内 The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention. For example, the ECG waveform data described in the present invention can also be ECG waveform data, blood oxygen waveform data, blood pressure waveform data, etc. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention .

Claims (9)

1. a method that improves EGC waveform data printing effect, is characterized in that, comprises the steps:
Step 1, stores the EGC waveform data of collection into data buffer zone;
Step 2, calculates the sampling number in default duration according to the EGC waveform data sample rate presetting;
Step 3, the efficiently sampling in the default duration of judgement counts whether exceed the default threshold value of counting;
Step 4, if exceed the default threshold value of counting, counts and takes out a processing the efficiently sampling in default duration, takes out after a little finishing dealing with and returns to step 3;
Step 5, if do not exceed the default threshold value of counting, thermal printing head is printed EGC waveform data.
2. a kind of method that improves EGC waveform data printing effect according to claim 1, is characterized in that, before described step 1, also comprises that the EGC waveform data to collecting is carried out pretreated step.
3. a kind of method that improves EGC waveform data printing effect according to claim 1, is characterized in that, after described step 2, also comprises and sets up the step that columns is the EGC waveform data two-dimensional array of the sampling number in default duration.
4. a kind of method that improves EGC waveform data printing effect according to claim 3, it is characterized in that, described step 3 also comprises, two-dimensional array is traveled through by row, judges whether the significant wave graphic data of each row exceedes the step of the default threshold value of counting.
5. a kind of method that improves EGC waveform data printing effect according to claim 4, it is characterized in that, described in described step 4, take out a processing, comprise from row and first open the beginning, carry out pointwise counting until reach the threshold range of counting for significant wave graphic data, remaining Wave data is deleted and is not printed.
6. a kind of method that improves EGC waveform data printing effect according to claim 4, it is characterized in that, described in described step 4, take out a processing, comprise from end of line, carry out pointwise counting until reach the threshold range of counting for significant wave graphic data, remaining Wave data is deleted and is not printed.
7. a kind of method that improves EGC waveform data printing effect according to claim 4, it is characterized in that, described in described step 4, take out a processing, comprise and randomly draw significant wave graphic data until reach the threshold range of counting, remaining Wave data is deleted and is not printed.
8. a device that improves EGC waveform data printing effect, is characterized in that, comprising:
Wave data acquisition module, for gathering EGC waveform data;
Wave data buffer module, is connected with described Wave data acquisition module, for storing the EGC waveform data of collection into data buffer zone;
Sampling number computing module, is connected with described Wave data buffer module, for calculate the sampling number in default duration according to the EGC waveform data sample rate presetting;
The threshold decision of counting module, is connected with described sampling number computing module, for judging the efficiently sampling in default duration counts whether exceed the default threshold value of counting;
Wave data is taken out point module, is connected with the described threshold decision module of counting, and for exceed default counting when threshold value when judgement, the efficiently sampling in default duration is counted and is taken out a processing;
Thermal printing module, is connected with the described threshold decision module of counting, and for do not exceed default counting when threshold value when judgement, thermal printing head is printed EGC waveform data.
9. a kind of device that improves EGC waveform data printing effect according to claim 8, is characterized in that, also comprises:
Wave data pretreatment module, is connected with Wave data buffer module with described Wave data acquisition module, for the EGC waveform data collecting is carried out to pretreatment;
Two-dimensional array is set up module, is connected, for setting up the EGC waveform data two-dimensional array that columns is the sampling number in default duration with described sampling number computing module with the threshold decision module of counting.
CN201310091355.1A 2013-03-21 2013-03-21 Method and device for improving electrocardiogram waveform data printing efficiency Expired - Fee Related CN103202691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310091355.1A CN103202691B (en) 2013-03-21 2013-03-21 Method and device for improving electrocardiogram waveform data printing efficiency

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310091355.1A CN103202691B (en) 2013-03-21 2013-03-21 Method and device for improving electrocardiogram waveform data printing efficiency

Publications (2)

Publication Number Publication Date
CN103202691A CN103202691A (en) 2013-07-17
CN103202691B true CN103202691B (en) 2014-12-10

Family

ID=48750262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310091355.1A Expired - Fee Related CN103202691B (en) 2013-03-21 2013-03-21 Method and device for improving electrocardiogram waveform data printing efficiency

Country Status (1)

Country Link
CN (1) CN103202691B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108065930B (en) * 2016-11-08 2020-12-25 上海光电医用电子仪器有限公司 Quick electrocardiogram checking method
CN114706539B (en) * 2021-07-08 2024-11-08 康泰医学系统(秦皇岛)股份有限公司 Data printing method, device, equipment and readable storage medium
CN115635776A (en) * 2022-10-26 2023-01-24 乐普医学电子仪器股份有限公司 A thermal printer-based electrocardiogram printing control method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4951681A (en) * 1988-11-14 1990-08-28 Mortara Instrument Electrocardiographic recording method and apparatus
JP4065492B2 (en) * 2001-05-15 2008-03-26 キヤノン株式会社 Inkjet printing apparatus, inkjet printing method, program, and computer-readable storage medium storing the program
JP4387721B2 (en) * 2003-07-31 2009-12-24 キヤノン株式会社 Recording apparatus and recording method
JP2005096377A (en) * 2003-09-26 2005-04-14 Brother Ind Ltd Printing apparatus and printing method
US7436418B2 (en) * 2005-07-25 2008-10-14 Seiko Epson Corporation Thermal printer, thermal printer control method, and printing system

Also Published As

Publication number Publication date
CN103202691A (en) 2013-07-17

Similar Documents

Publication Publication Date Title
CN103202691B (en) Method and device for improving electrocardiogram waveform data printing efficiency
CN101515199B (en) Character input device based on eye tracking and P300 electrical potential of the brain electricity
CN104287726B (en) A kind of cerebration event synchronization record system and method
CN205608810U (en) Device and electronic medical record system are typeeed in electronic medical record sampling
CN103690156A (en) Heart rate acquiring method and electrocardiosignal processing method
WO2021129390A1 (en) Intelligent electrocardiogram machine
CN206021380U (en) Teaching student computer
RU2013145945A (en) FUNCTION EXTENSION METHOD USING PRINT DATA, FUNCTION EXTENSION DEVICE AND RECORDING MEDIA
CN210804127U (en) Automatic high temperature testing auxiliary device for SFP module
JP2008276531A5 (en)
CN105726023B (en) Electroencephalogram signal quality real-time judging system
CN109558041B (en) A method for collecting, processing and transmitting tip clearance signals based on GPU acceleration
CN110186957A (en) A kind of synchronizing information acquisition processing system and method
CN202711310U (en) Palm vein physical examination management system
WO2001085019A2 (en) Heart monitoring apparatus and method
CN103892823A (en) Dynamic electrocardiograph monitoring system based on internet of things
CN205754529U (en) A kind of medical image processing system
CN106580326A (en) Human body biological characteristic information acquisition instrument
CN203059669U (en) Medical electronic pulse-taking device
CN207909159U (en) Product information harvester
CN202216764U (en) A kiln temperature monitoring system
CN106264743A (en) Intelligent mobile is with examining car system platform
CN210408421U (en) Rehabilitation training system
CN201838042U (en) Iris identification attendance instrument
CN205433680U (en) Electrocardiograph of exportable bitmap electrocardio report

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141210

CF01 Termination of patent right due to non-payment of annual fee