Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I save encoder position into LVM, using 6602 faster than every 16mS?

I am using a PCI-6602 to measure my encoder position. I have taken the simple "Measure Position (NI-TIO).vi" from the website and modified to save encoder values to an LVM file within the loop. But it will not save the encoder values faster than every 16mS. The encoder code is in NI-DAQ.

I am doing a similar thing within a while loop using a PCI-6052E DAQ card. It is hooked up to an SCXI-1112 and SCXI-1125. This while loop, implemented in DAQmx can save every 1mS.

I am using LabVIEW 7.0

If anyone can help then I would appreciate it.

Many thanks,

Phil
0 Kudos
Message 1 of 2
(3,134 Views)
I'm not sure why you're seeing such poor performance from the single point position measurement (and I don't have the equipment to test it onhand), but you might consider using a buffered position measurement to get faster throughput. You can use the "Measure Buffered Position (NI-TIO).vi" as an example. Then used a fixed GATE, to make sure the sample rate is constant. You can use the paired counter (in your example you're using ctr4, so you'd want to use ctr5) to generate a continuous pulse train (Generate Pulse Train (NI-TIO).vi) at your desired sample rate. Make sure to use "other counter output" as the GATE of your buffered position measurement counter.

Hope this helps.
gus....
0 Kudos
Message 2 of 2
(3,134 Views)