LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to do finite sample of angle position

I am using a PCI-6601 to do a finite sample of angle position. It must be sampled with an external clock according to Labview help. But I dont know the exact samples I should acquire, and dont know what time the external clock will stop. How can I get all the samples without a timeout error after the external clock stops ?

0 Kudos
Message 1 of 2
(1,975 Views)

I *think* it's as simple as setting up your task for *continuous* sampling and regularly reading "all available samples" (leave # samples unwired or use special magic # -1).  The external clock seems to define the finite # of samples that will actually happen.

 

When the external clock stops, your DAQmx Read will immediately (and correctly) return 0 samples to you.  When this has happened for a long enough time, you'll recognize that there's no more clocking signal out there and you can end the loop.

 

 

-Kevin P

CAUTION! New LabVIEW adopters -- it's too late for me, but you *can* save yourself. The new subscription policy for LabVIEW puts NI's hand in your wallet for the rest of your working life. Are you sure you're *that* dedicated to LabVIEW? (Summary of my reasons in this post, part of a voluminous thread of mostly complaints starting here).
0 Kudos
Message 2 of 2
(1,926 Views)