04-16-2025 12:45 AM
圧力計からデータを取得するviなのですが、取得データが5秒に一度づれてしまいます。
例:11:08:01から11:08:03になってしまい、11:08:02は表示されない
待機時間を変えてみたり、ハードの設定の調整をしてみたのですが、うまくいきません。
申し訳ありませんが、ご教示お願いいたいます。
05-16-2025 02:20 AM
Hi 3can,
@3can wrote:
I'm using vi to get data from a pressure gauge, but the data I get is delayed once every 5 seconds.
For example, it goes from 11:08:01 to 11:08:03, and 11:08:02 doesn't show up.
I've tried changing the wait time and adjusting the hardware settings, but it doesn't work.
I'm sorry, but I'd appreciate some advice.
Remove the wait function from your while loop.
Waiting for messages (by VISARead) is enough, no need for an additional wait!