Star☆light 发表于 2009-1-15 14:28:20

请教:定时循环中产生的问题

我想用labview设计一个采集数据的程序,希望实现连续采样并保存数据,并且将采得的数据分时段保存,比如每一分钟的数据存成一个文件。我用定时循环函数做了一个,可是发现和预期的不太相符,这个是每一循环可以采一定量的数据,然后就停下来,到达预定的时间再进行下一循环,而我想实现连续采样。我试验了将每一循环的采样个数增加,使得完成一次采样的时间恰好等于循环时间以达连续采样的目的,可是总出现问题:
【错误-200278发生于 DAQmx Read (Analog 1D Wfm NChan NSamp).vi:3
可能原因
Measurements: Attempted to read a sample beyond the final sample acquired. The acquisition has stopped, therefore the sample specified by the combination of position and offset will never be available.
Specify a position and offset which selects a sample up to, but not beyond, the final sample acquired. The final sample acquired can be determined by querying the total samples acquired after an acquisition has stopped.
Attempted to Read Sample: 1000
Property: RelativeTo
Corresponding Value: Current Read Position
Property: Offset
Corresponding Value:

Task Name: _unnamedTask<0>】
各位高手有什么办法帮我解决下这个问题?或者有什么别的好方法实现我的连续采,分段存的目的?
本人是初学者,故有范例给我看看更好,多谢多谢!!

Obama 发表于 2009-1-16 21:55:11

定时循环里面有个选项,关于要不要补偿执行超时。试试。

Obama 发表于 2009-1-16 21:55:35

双击定时循环出来面板上的选项。

Star☆light 发表于 2009-1-17 14:37:19

本帖最后由 Star☆light 于 2009-1-17 14:42 编辑

3# 多谢高手~Obama感激~
页: [1]
查看完整版本: 请教:定时循环中产生的问题