01-23-2008 02:18 PM
Hi,
I am new to Labview. I am using PCI-6601 to count the pulses generated by the
camera. (very simple!) The camera output is 5v. But I tried to test it first. I
generated 10 pulses thru the LPT port and fed it to the counter board (6601)
thru SOURCE (0) - Pin 2 and 36 and I took the output (OUT (0) Pin 5 and 39)
and connected it to an LED. Now when I generate the pulse, I get 5.1 V but when
connect, the signal dissipates and gives
almost 0v. What am I doing wrong? If I disconnect the LED, I get the same
result. Am I using the wrong pins?
Please
help!
01-24-2008 09:07 AM
01-24-2008 06:19 PM
Hi Sha33,
The output pin of a counter is not used in a Count Events task, only in instances like generating a pulse train. This is most likely why you do not see the LED blink when connected to the counter out pin.
When you connect to the Source, make sure that the signal is connect to pin 2 and that ground is connected to pin 36, and that they are not reversed. You could be shorting to ground. Can I ask how you are measuring your 5.1 V signal and that it goes to 0 V?
I would suggest looking at the example programs that can be found in LabVIEW’s Find Examples under the Help menu. If you just want to count the pulses from the camera, then you can use the Count Digital Events example, located in the contents tree under Hardware Input and Output>> DAQmx>>Counter Measurements>> Count Digital Events.vi. This example, however, just outputs the total number of pulses that have occurred.
In your final application do you want the LED to blink with the pulses from the camera or was this just for testing purposes? How fast are these pulses coming? If you want the LED to blink or to see an output then another method will need to be found.
Regards, Mallori M.01-25-2008 03:22 PM - edited 01-25-2008 03:23 PM