哪个计时器?

编程入门 行业动态 更新时间:2024-10-26 18:16:13
本文介绍了哪个计时器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我很高兴看到在VB 2005中我不再需要创建一个表单,如果我想要像我在VB6中那样使用计时器。我注意到,似乎有一个Timer 组件以及两个不同的计时器类从(System.Threading& System.Timers)中选择 。 br /> 如何确定哪种最适合任何特定的应用程序? 我目前的应用程序是一种实时数据采集&控制 系统,我需要每100ms左右轮询一次外部设备。 TIA Phil。

I''m glad to see that in VB 2005 I no longer have to create a form if I want a timer like I did in VB6. I notice though, that there seems to be a Timer component as well as two different timer classes to choose from(System.Threading & System.Timers). How does one decide which is most appropriate for any particular application? My current application is a sort of real-time data acquisition & control system, and I need to poll an external device every 100ms or so. TIA Phil.

推荐答案

" Phil" < N / Aschrieb "Phil" <N/Aschrieb 我很高兴看到在VB 2005中我不再需要创建表格如果 我想要像我在VB6中那样的计时器。我注意到,似乎 是一个Timer组件以及两个不同的计时器类来从 中选择 来自(System.Threading) & System.Timers)。 如何确定哪个最适合任何特定的申请? 我当前的申请是一种排序实时数据采集& 控制系统,我需要每隔100ms轮询一次外部设备或 所以。 TIA 菲尔。 I''m glad to see that in VB 2005 I no longer have to create a form if I want a timer like I did in VB6. I notice though, that there seems to be a Timer component as well as two different timer classes to choose from(System.Threading & System.Timers). How does one decide which is most appropriate for any particular application? My current application is a sort of real-time data acquisition & control system, and I need to poll an external device every 100ms or so. TIA Phil.

http ://msdn2.microsoft/en-us/lib...e6(VS.80).aspx msdn.microsoft/msdnmag/is...T/default.aspx Armin

msdn2.microsoft/en-us/lib...e6(VS.80).aspx msdn.microsoft/msdnmag/is...T/default.aspx Armin

> > msdn2.microsoft/en-us/lib...e6(VS.80).aspx msdn.microsoft/msdnmag/is...T/default.aspx

干杯, 菲尔。

Cheers, Phil.

嗨菲尔, 由于您当前的应用程序是实时数据采集和控制 系统,您应该使用基于服务器的计时器,即System.Timers.Timer。 希望这会有所帮助。 如果您有任何疑问,请随时告诉我。 此致, Linda Liu Microsoft在线社区支持 ================== ================================ 通过电子邮件收到我的帖子通知?请参阅 msdn.microsoft / subscripti ... ult.aspx#notif ications。 注意:MSDN托管新闻组支持服务是针对非紧急问题 如果社区或微软支持人员在1个工作日内做出初步回复是可以接受的。请注意,每个跟随 的响应可能需要大约2个工作日作为支持 专业人士与您合作可能需要进一步调查才能达到 最有效的分辨率。该产品不适用于需要紧急,实时或基于电话的交互或复杂的b $ b项目分析和转储分析问题的情况。这种性质的问题最好通过联系 Microsoft客户支持服务(CSS)处理 href =msdn.microsoft/subscriptions/support/default.aspx\"target =_ blank> msdn.microsoft/subscripti...t/default.aspx 。 ======================================== ========== 此帖子按原样提供。没有保证,也没有授予任何权利。 Hi Phil, Since that your current application is a real-time data acquisition&control system, you should use the server-based timer, i.e. System.Timers.Timer. Hope this helps. If you have any question, please feel free to let me know. Sincerely, Linda Liu Microsoft Online Community Support ================================================== Get notification to my posts through email? Please refer to msdn.microsoft/subscripti...ult.aspx#notif ications. Note: The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions or complex project analysis and dump analysis issues. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at msdn.microsoft/subscripti...t/default.aspx. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.

更多推荐

哪个计时器?

本文发布于:2023-11-09 06:19:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1571609.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:计时器

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!