Timer控件在地质滑坡监测软件中的精确定时  

Precise timing by timer control in landslide monitoring software

在线阅读下载全文

作  者:程江洲[1] 常俊晓[1] 徐浩[1] 刘林[1] 

机构地区:[1]三峡大学电气与新能源学院,湖北宜昌443002

出  处:《计算机应用》2012年第A02期144-146,共3页journal of Computer Applications

摘  要:Visual Basic 6.0自带的Timer(定时器)控件的Interval(时间间隔)属性,可用来设置两次触发Timer事件的时间间隔,实现定时功能。由于系统硬件和该属性固有的限制,定时程序在运行过程中会出现定时误差大和时间间隔有限等不足,其定时误差约为5%。针对这两个问题,介绍了如何利用主动查询对比系统时间的算法,不断修正Timer控件的定时误差,防止误差的累积,从而实现高精度定时和任意整数秒时间间隔定时。经过实验测试,该算法可消除定时器的固有误差,达到无误差定时。The interval property of Visual Basic 6.0 internal timer widget can be used to as a timing function by adjusting the time interval between two triggered timer events. Due to system hardware limitations and the intrinsic weakness of the widget, its performance is severely undermined by issues such as large errors and limited time intervals. The timing precision is about 5%. In order to solve these problems, the authors have developed a method to achieve more precise and arbitrary- integer-second-time-interval timing by utilizing an algorithm that actively checks and compares the system time and constantly corrects the error to prevent the accumulation of it. The experimental results show that this method can eliminate the inherent error and improve the accuracy of timer widget in triggering a certain event within any given time interval.

关 键 词:定时器控件 时间间隔属性 使能属性 定时器事件 定时 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象