07-07-2005 05:19 PM
07-12-2005 10:35 AM
Hello J Slater,
Lets take the software out of it. Go into the Measurement and Automation Explorer (MAX). Right click on your device and open a test panel. Under the Counter I/O tab select Edge Counting as the mode. Change the signal from the gate to the source of the counter. Does MAX detect the edges? If it does, create a frequency task, change the signal back to the gate, and test it. Does it work properly.
How did you verify that the tachometer is pulsing correctly?
What is the actual frequency of your signal? Can you give a more narrow range?
Please let me know if you have any questions. Have a great day!
Sincerely,
Marni S.
07-25-2008 06:17 AM
07-28-2008 12:32 PM
Hi Shyam,
Were you able to verify that your edge count is counting at the correct rate? You explain that the frequency measurement returns random values, but are they within a certain range? Maybe you could post some of the data that is returned. If your signal is noisy your measured frequency could appear to be very different than your expected frequency. What is generating the signal you are measuring? When you perform an edge count measurement your signal should be connected to the counter source, while in a frequency measurement your signal should be connected to the counter gate.
07-28-2008 01:42 PM
07-28-2008 01:43 PM
07-29-2008 06:03 PM
Hi Shyam,
Based on your description of the edge counting it makes sense why you are seeing an increased frequency measurement. In order to perform a frequency measurement, the counter is actually counting the number of clock ticks of a known time base between rising edges of your signal. The number of edges that occur can be turned into the period and frequency of your signal. If the edge count is counting more edges than it should, the higher frequency is expected. Can you try to measure another known signal, perhaps from a function generator or even from the board itself. You can route a pulse generation into a frequency measurement to check its behavior. If your signal is noisy the noise could be interpreted as edges of your signal which would cause a higher edge count/frequency measurement. You should not need to tristate the count direction pin for this measurement.
07-30-2008 06:04 AM
07-31-2008 03:02 PM
08-08-2008 11:46 AM