01-17-2010 10:47 AM
Hi everyone,
I have a CompactDAQ and a NI9401. I used this hardware with labview to monitor the speed of a crankshaft. My sensor (optics) output a square wave, 0-5v amplitude, TTL compatible.
I have check it on an oscilloscope, it is perfectly well tooth shaped.
I connect to 9401, and I try these 2 simple .VI in attachement and weirdely,
the edge counting work perfectly, (and the increment speed correspond to the speed of the crankshaft)
But, frequency meserment or pulse with, or period, do not work
Does anybody has a idea why ?
(I struggled during 4 hours and I didn't figure it out)
thank you very much for you help,
Guillaume.
Solved! Go to Solution.
01-17-2010
12:21 PM
- last edited on
06-11-2024
04:19 PM
by
Content Cleaner
Have you spent any of that time looking at the specifications? It has no counter so I don't understand how even the first example works.
01-17-2010 12:26 PM
It uses the counter of the cDAQ (it has four counter !)
01-17-2010 12:54 PM
Sorry, did not know that about the cDAQ.
Have you run the example called Meas Dig Frequency-Low Freq 1 Ctr? I am not that familiar with cDAQ but you should check to see if the default source connections for frequency are the same as for counting edges.
01-18-2010 11:01 AM
thank you very much for your answer,
I'm not able to check if the example vi works until tomorow unfortunately,
but I'm quite pessimistic...
Guillaume.
01-20-2010 02:11 PM
Hey, I found my problem,
I need to plug the wire into line 5 instead of 4
I choose ctr1 for instance, and then edge counting work ONLY on number 4 and frequency, period measuremnt etc work only on line 5.
tricky for me.
greets,
Guillaume.
01-20-2010 02:24 PM
01-20-2010
04:11 PM
- last edited on
06-11-2024
04:20 PM
by
Content Cleaner
Indeed, I will try to do that to be able to genreate 3 pwm on 3 different lines, not at the same time, using the same counter.
I found this example, and I will try to run/adapt it on my CompactDAQ : http://zone.ni.com/devzone/cda/epd/p/id/4422.
thanks,
Guillaume.