03-05-2006 10:41 PM
03-06-2006 06:27 PM
03-07-2006 05:18 PM
Thanks for the response, Tom, but I don't understand.
The intent is to trigger a series of readings, say 50 for example every time I get a pulse from the encoder. My C++ application will then average these 10 readings, take that average and pair it up with the value of the encoder count at the time the readings were triggered. I will end up with about 30k of these (Ave volts, count) pairs that will later be analysed. The only time I need to take a series of quick readings is when that encoder pulse happens.
03-08-2006
11:15 AM
- last edited on
03-07-2025
06:43 PM
by
Content Cleaner
Hi Jim-
Yes, the beauty of sharing a sample clock is that you don't have to actually go back and mess with correlating the readings as they're taken. The easiest way to accomplish what you're going for is to just continuously acquire the analog signal and then read buffer backlogs to find where a counter change occurred. The absolutely ideal situation would be to use a counter as a retriggerable sample clock for analog since the analog timing engine doesn't support this directly, but as you mentioned before this would eat up both of the counters on your card.
You could consider using a second card, perhaps a PCI-6601 that would allow you to provide the retriggerable sample clock for your multifunction card. If this isn't an option then you should be able to accomplish it with your single-card solution using a bit of post-processing as we have been discussing.
Please let me know if you have any additional questions. Thanks-