基于时间的数据采集 [英] Time Based Data Acquisition

查看:57
本文介绍了基于时间的数据采集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我正在设计一个VB应用程序,该应用程序以用户定义的时间间隔获取串行数据.我打算使用timer类,并使用Elapsed属性,但出现错误,提示Systems.Timers.Timer无法转换为double或int.我有点 卡住.有没有人遇到过类似的问题?任何人都可以通过引导我正确的方向来帮助我

I am designing a VB app that acquires serial data at user defined intervals. I was intending to use the timer class, and make use of the Elapsed property but I am getting an error which says Systems.Timers.Timer can't convert to double or int. And I am kinda stuck. Has anyone encountered a similar problem? Can anyone help me by directing me in the right direction

预先感谢

推荐答案

已过去是事件.您可以通过添加功能来处理它 AddHandler ,如文档所示.显示有关您的程序和错误的一些详细信息.

Elapsed is an event. You can handle it by adding your function with AddHandler, as shown in documentation. Show some details about your program and the error.


这篇关于基于时间的数据采集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆