LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure buffered period

Hi,

I want to measure the speed with an encoder and save data on Diadem. So I used the VI Measure Buffered Period.vi. But I don t understand how it works. I read some message on the discussion forum but I have a problem to save data.
I have to save data on diadem. For example, I want to save the period on diadem every 0.01s so what are the right parameters to choose for the vi (count to read,internal buffer specification,time limit).
If you can, give an example with value, it s better.
For me, data are saved each rise of the gate signal. For example, if the frequency of my gate signal is 1000Hz, data are stored each 0.001s. Is it right.
Has the count to read an inflence.
Other question:Is it necessary to synchronize this measure with other
s measure(because I acquire and synchronize data from 2 difference devices)

Thanks for your help.
0 Kudos
Message 1 of 2
(2,582 Views)
The flow of the data from the register's on the counter to a LabVIEW program is described in the document linked below. The counter will increment its count for every source pulse and then will transfer the count from the register of the counter to the PC buffer (you can set up the size of this software buffer within your program) when the gating signal pulses. From the LabVIEW program, we then read from the software buffer.

Therefore, the frequency of the gating signal does not control how fast LabVIEW is reading from the software buffer. You will have a Counter Read Buffer VI within a loop and the speed of the loop will determine how fast LabVIEW is retrieving data from the software buffer. The counts to read input of the Counter Read Buffer VI will control ho
w many scans will return to LabVIEW at a time. For example, if you want to read one value from the software buffer into LabVIEW at a time, you can set the counts to read to 1.

To control how fast LabVIEW reads from the software buffer, you could insert a delay in the while loop (Wait Until Next ms Multiple function) and this will control how fast data is received in LabVIEW.

I hope this explanation helps.

Regards,

Todd D.
NI Applications Engineer

How are Buffers Read in Finite vs. Continuous Buffer Mode for Counter Operations?
http://digital.ni.com/public.nsf/websearch/D2C16FADED423B5486256B7B006DE3BE?OpenDocument
0 Kudos
Message 2 of 2
(2,582 Views)