06-23-2011 01:56 PM
Hi,
I have an encoder and a voltage source I need to measure, synchronously (I need to know the position at every time I sample the voltage) for 25 seconds straight. Although I need to perform a couple checks on the data as it comes in, I can use microchips outside the PCI board (a PCI-6280--single-channel sampling frequency 625 kS/s and multichannel sampling 500 kS/s, onboard AI buffer is 4096 bytes) to do this instead and use the PCI-6280 for only reading the measurements as they come in if necessary. I've already thought of a couple ways to do this, and I want to know whether I'd be implementing them properly:
Thanks for any help you guys can offer. I'm sorry I don't have any VIs to show you yet--this is more of a theory problem right now.
Solved! Go to Solution.
06-28-2011 05:39 PM
Hi acmap,
Your card has two counters. You can use the counters to read in your encoder. For instructions on connecting it, see the following:
http://digital.ni.com/public.nsf/allkb/B3945A72AE53D1B086256EF7007C4D0D
An example of how to synchronize it can be found here:
https://decibel.ni.com/content/docs/DOC-10785
Regards,
06-30-2011 10:39 AM
Hi,
To get the data I need, I would have to take 10-100 measurements at a frequency of ~2400 Hz or higher. Could I use the 10 kHz clock to digitally trigger samples on both the counter and the analog input, and have them each take a finite number of measurements (2-25 for the analog input and 1 for the counter input)? The alternative is for me to sample continuously at 240 kHz on both channels--is this possible for the PCI card or will I run into difficulties (given that the PCI's maximum multichannel sampling frequency is 500 kS/s)?
Thanks for your help Chet.
07-01-2011 12:19 PM
Hi acmap,
I'm rereading your first post. By synchronize, I was under the impression that you want to take an AI measurement whenever we detect anything from the encoder. But, your latest post confuses me. Can you reiterate what it is that you want? and define synchronize.
Regards,
07-04-2011 10:33 AM
Hi Che,
Sorry about that--yes, I want to take n AI measurements (10-100) every time the encoder moves. The synchronizing VI example you gave me will work fine, anyway--I figure I can synchronize encoder/AI measurements by having both digitally triggered by the exclusive or (done with a digital electronics gate outside the PCI board, to save processing) of encoder outputs A and B, giving me encoder position measurements (and AI measurements) at x2 resolution of the encoder. Thank you for your help.
07-06-2011 05:10 PM
Hi acmap,
Not a problem. Definitely feel free to post again if you need assistance.
Regards,