將
放入Sequence中當作時間延遲,再用Counter計算時間差,
為何Wait Until Next ms Multiple 執行後時間會不準.而Wait 執行10次後都很準確??
如果要當Delay 用要用何者才正確呢??
請參照下面圖示..
選擇Wait Until Next ms Multiple 做延遲時間:
選擇Wait 做延遲時間:
將
放入Sequence中當作時間延遲,再用Counter計算時間差,
為何Wait Until Next ms Multiple 執行後時間會不準.而Wait 執行10次後都很準確??
如果要當Delay 用要用何者才正確呢??
請參照下面圖示..
選擇Wait Until Next ms Multiple 做延遲時間:
選擇Wait 做延遲時間:
關於這方面的問題查過相關書籍,其中在LabVIEW Graphical Programming這本書中的Chapter 7 Timing 一章中有提到,這兩種使用的時機,我把它Post上來希望對你有所幫助,
Here's when to use each of the timers;
1.Hightly regular loop timing-----Use Wait Till Next ms Multiple.
2.Many parallel loops with regular timing-----Use Wait Till Next ms Multiple.
3.Arbitrary, asynchronous time delay to give other tasks some time to execute-----Use Wait(ms).
4.Single-shot delay (as opposed to cyclic operations,like loops )-----Use Wait(ms).
對於其中原因大家繼續共同研究吧.
不知那四種使用時機,LabVIEW Graphical Programming這本書中有範例圖片嗎??
如果有能否Poll 上來參考...謝謝
[QUOTE=devis]
不知那四種使用時機,LabVIEW Graphical Programming這本書中有範例圖片嗎??
如果有能否Poll 上來參考...謝謝
[/QUOTE]
在書中沒有相關範例ㄝ,只是表列出使用時機而已,關於這方面還要從其他書籍中去找答案.