使用Timer功能记录来自记录器的数据 [英] Using Timer function to record data from logger

查看:76
本文介绍了使用Timer功能记录来自记录器的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是Visual Basic的新手,需要解释一些来自LabJack数据记录器的数据。进来的信息是描述温度的电压。


$
我只需记录一段时间(30秒)的温度,但间隔时间很短(比如每十分之一秒) 。我想要做的是添加某种计时器功能,以便在启动时,宏在每个时间间隔内抓取并记录温度
,持续30秒,然后停止记录。所以基本上是For ... Next循环,但实时而不是整数。



我相信这很简单,但我想我也可以第一次就把它弄好。



谢谢!

Hi,

I am very new to Visual Basic and need to interpret some data coming in from a LabJack data logger. The information coming in is a voltage describing a temperature.

I only need to record the temperature over a certain period of time (30 seconds) but in very small intervals (say every tenth of a second). What I want to do is add some sort of timer function so that when initiated, the macro grabs and records the temperature at every time interval for the 30 seconds, and then stops logging. So basically a For... Next loop, but with real time instead of an integer.

I am sure this is really simple, but I figured I may as well get it right the first time.

Thanks!

推荐答案

数据如何'进来'?  您是否已经拥有读取数据的代码,而您的问题是需要正确计时? 如果是,请显示止痛代码。  如果问题是您不知道如何从数据记录器获取数据
,那么您将需要提供有关该设备的更多信息,包括它如何连接到PC以及数据格式是用于传输数据。

How is the data 'coming in'?   Do you already have the code to read the data and your problem is that you need to time it correctly?  If so, show what the curernt code is.   If the problem is that you don't know how to get the data from the datalogger then you will need to provide a lot more information about the device, including how it is connected to the PC and the data format that is used to transmit the data.

对于计时问题,重要的是要知道记录器是在连续发送还是根据请求发送。

For the timing issue, it will be important to know whete rthe logger is transmitting continuously, or on request.

这篇关于使用Timer功能记录来自记录器的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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