LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview中定时器功能如何实现

正在编写一段程序,遇到些问题。求教。

从硬件上发送,接收一些数据。

但要求接收到数据后,还必须对发送完数据与接收数据之间经过的时间进行判断。若超时,就出错。

我现在用的是TickCount。发送完数据时的值与接收到数据时的值进行比较。

但TickCount好像不能清零,所以有个溢出的问题。不知如何解决。

 

以前做硬件时,都采用定时器。发送数据前定时器清零。接收到数据后读出计数器值。

不知用labview能否实现。

 

谢谢 

 

 

0 Kudos
Message 1 of 4
(5,575 Views)

(English version -  as close as possible)

 

While preparing a procedure, I encountered problems using hardware to send and receive some of the data.

However, requests received after the data must also be sent to the End of Data and received data between the time evaluated. There is a timeout error.

I now use the TickCount. End of data to send and receive the value of the data values.

TickCount but does not seem to Clear (the buffer), so there is an overflow. I do not know how to solve this.

Before doing hardware, I was using timers to clear the sent data (buffer?) before the timeout. After receiving the data, read out the counter value.

I do not know how to achieve a solution using labview.

Thanks

0 Kudos
Message 2 of 4
(5,563 Views)

您使用的是串行通信?

如果是這樣的話,你確認的字節數是可用來讀取串口?

你為什麼要使用計時器功能?

0 Kudos
Message 3 of 4
(5,561 Views)

I send & receive  the data by CAN.

And there is a protocol of timeout whenever in sending or in receiving I have to comply with.

 

0 Kudos
Message 4 of 4
(5,541 Views)