 |
|
| Computers Forum Index » Computer Languages (Labview) » Using a Counter to error-check External Sample Clock... |
|
Page 1 of 1 |
|
| Author |
Message |
| mumech... |
Posted: Tue Jul 22, 2008 6:10 am |
|
|
|
Guest
|
Hi all,I am newish to labview and am working on a data acquisition project. I've managed to get the basics under control, but here's my situation and question...-- I am using the S-6123 card to capture and record data on two or more AI channels. I am using a rotary encoder to generate a pulsetrain that I am using via PFI0 as the sample clock for recording the AI data.-- This rotary encoder gives 720 pulses per revolution and an index pulse once per revolution.-- In my data acquisition, I am pulling 1440 samples at a time with the DAQmx "read" function.I have been experimenting with counters and can get the RPM out of the pulse trains well enough, however I was wondering...Is there some way to use the 2 counters on the card (and signal routing of the two pulse trains) to double-check that the 1440 samples I take correspond to two exact revolutions, and that I'm not getting ahead of or behind the rotation of the encoder due to missing clock pulses or reading false pulses. I have a couple of ideas on how to attempt to do it, but to me they don't seem very reliable or efficient, so I thought I'd put it to the experts to point out of there is a more obvious way of doing it.I have
attached a pdf of the specifications of the encoder family, the pulses that will be output are on the right hand side of page 2.With many thanks in advance,PeterMessage Edited by mumech on 07-22-2008 01:05 AM
REncoder Specs.pdf:
http://forums.ni.com/attachments/ni/170/342773/1/REncoder Specs.pdf |
|
|
| Back to top |
|
|
|
|
|
All times are GMT
The time now is Sat Mar 20, 2010 6:08 pm
|
|