10-19-2006 02:18 PM
Here's what I want to do:
Measure 3-5 analog inputs along with at least one counter input (counting pulses) at (least) at 20kHz. After the counter increments, I want to output several digital pulses that occur at precise times after the increment and for a precise duration. All of these functions should be synchronized in time.
What I currently do:
I establish an A/D conversion with an internal clock, and then a counter that will run off that clock. I start the counter first, then the analog conversion, so that the counter will be synchronized with the analog conversion. The analog signals and counter are read in a WHILE loop, ~7000 samples at a time, and logic/array math are performed, and data spit to the screen. The process then repeats. I need to figure out how to add the precisely timed pulse train to this.
What I'd really like to do:
My counter is really the output of a shaft encoder. I would like to read the shaft position, in degrees, directly, and synchronize my analog conversion and pulse outputs with the degrees. In this scenario, I would not need a counter in.
10-20-2006 02:08 PM