LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to count pulse with 6601

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!

 

0 Kudos
Message 1 of 4
(2,898 Views)
OK! I guess I didnt make myself clear. Now I dotn get any voltage drop but I still cant get 6601 to count or show anything in Labview. Please can you give me the right pin config (which ones to use)?
0 Kudos
Message 2 of 4
(2,877 Views)

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.
Mallori M
National Instruments
Sr Group Manager, Education Services

ni.com/training
0 Kudos
Message 3 of 4
(2,852 Views)
Thank you very much - I got it! But I have a new question - http://forums.ni.com/ni/board/message?board.id=170&thread.id=297599


Message Edited by sha33 on 01-25-2008 03:23 PM
0 Kudos
Message 4 of 4
(2,834 Views)