08-17-2006 07:14 PM
08-20-2006 11:41 PM - edited 08-20-2006 11:41 PM
Message Edited by Travis W on 08-20-2006 11:42 PM
08-21-2006 04:12 PM
08-22-2006 11:54 PM - edited 08-22-2006 11:54 PM
Message Edited by Travis W on 08-22-2006 11:55 PM
Message Edited by Travis W on 08-23-2006 12:28 AM
08-23-2006 08:06 AM
The spikes you describe sound like electrical noise -- DC motors are notorious for emitting electrical noise from their brush commutations.
Your 6229 has an 80 MHz timebase available for freq measurements. Even at your top freq of ~1000 Hz, you should be able to measure speed to about 1 part in 80,000. This corresponds to about a 0.1 RPM resolution. I can't comment on whether the DAQ Assistant will get you there because I've never used it.
I'd venture that you should expect anywhere from 5-15% speed variations given the setup you described, with a prominent artifact based on the accuracy of your placement of the 8 tape strips.
I dunno if duplicate count prevention will help you in an "on-demand" acquisition mode. There's a more advanced mode that I like to recommend, but there's some learning curve to get there. The basic idea is to perform a continuous acquisition, explicitly request the 5+ most recent data points rather than waiting for new data, find reported speed by discarding the high and low values and taking a median of the rest of them.
-Kevin P.
09-11-2006 09:52 AM
I'm sorry its been so long since I posted last. I had to allow a different test to run on this equipment and could not trouble shoot during it. I have tried duplicate edge count prevention but it did not have any effect. I hooked this sensor up to an analog input and sampled it. I received a square wave that was at 0.5V to 4.5V. The wave was pretty clean and distinct. Every once in awhile there was a little nosie on the high side of the square wave (4.5V). It was very short in duration and was less than 0.1 V. It did not disrupt the frequency of the wave.
Could you elaborate a little on the continuous acquistion, requesting the last 5 readings?
09-11-2006 11:42 AM
1. Continuous Acquisition: use the DAQmx Timing vi and specify "Continuous Samples" at one of the top wiring inputs before calling DAQmx Start.
2. Read Recent: Use a DAQmx Read Property node to specify:
a. "RelativeTo" = "MostRecentSample"
b. "Offset" = (-) # of samples to read. For example: -5.
Then when you call DAQmx Read, specify the # of samples you want. For example: 5.
Notes:
I *think* but am not 100% sure that the "RelativeTo" and "Offset" properties are persistent, meaning that they remain in effect until you specify otherwise. If they're persistent you can set them up once outside your reading loop. Otherwise, you'd need to set them up just prior to each read operation.
You may need to delay your very first reading to make sure that the desired # of samples have gotten into the DAQ buffer before you ask for them.
I suspect that your hand-held tach is doing a significant amount of filtering to produce such a constant steady speed measurement. Your DAQ measurements show values that are in the same neighborhood but with a larger range of variability. Frankly, variations sound more plausible than truly constant freq given your description of the equipment (reflective tape on a pulley). If the average speed is the key item of interest, I'd recommend averaging over some multiple of full revs, i.e., 8, 16, 26, ... samples at a time.
-Kevin P.