Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Count Pulse With USB 6008

Solved!
Go to solution

Hi, Everyone!

I have a project with USB 6008. I want to count pulse (for  exampl: count pulses from Encoder) use USB 6008. I wirite a simple with DAQmx to test. But it do't run. Please see and help me to do this exercise. I've just borrowed USB 6008 so I have not experience with USB 6008. Thanks! Funny.

0 Kudos
Message 1 of 7
(5,233 Views)

duplicate post

 

Stop spamming the boards with duplicate questions. It just makes people NOT want to answer.

0 Kudos
Message 2 of 7
(5,229 Views)

Sorry, I also don't want spam but I don't know I have to post where. I really must to do this exercise early. Smiley Sad

I written a another VI. But it not run. Please help me. Thanks everyone, Thanks Dennis Knutson reminded me.

0 Kudos
Message 3 of 7
(5,213 Views)

What does 'it not run' mean? The VI does run. Are you getting an error or are the results not what you expect?

 

You should really have most of your code outside the loop. I don't think you want to constantly start and stop the task. Place just the DAQmx Read inside the loop.

 

p.s. Since you are using a counter, the most appropriate board would have been the Counter/Timer board, don't you think?

0 Kudos
Message 4 of 7
(5,202 Views)

Thanks Dennis Knutson!

-I  put most code outside While loop, I choose count "Dev1/ctr0" . when I click Run button, and test encoder it not display error but it have not any manifestation. I open VI Count Digital Event in example it has error - 20007.

-I conected Pulse line of Encoder with PFI0 port. it's correct ?

0 Kudos
Message 5 of 7
(5,197 Views)
Solution
Accepted by aludlak
Looking at the manual, PFI0 (pin 29) is correct and I don't see anything wrong with the code and the example should work. I've got an M-series card, not a 6008 and it works for me. That error code does not make any sense though. Are you sure that's the number?
0 Kudos
Message 6 of 7
(5,182 Views)

Thanks, Dennis Knutson!

I found my error, I changed my Encoder, now it run. One more time Thanks you. Smiley Happy


Message Edited by aludlak on 06-25-2009 11:09 AM
0 Kudos
Message 7 of 7
(5,176 Views)