06-24-2009 10:44 AM
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.
Solved! Go to Solution.
06-24-2009 11:36 AM
Stop spamming the boards with duplicate questions. It just makes people NOT want to answer.
06-24-2009 08:30 PM
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.
I written a another VI. But it not run. Please help me. Thanks everyone, Thanks Dennis Knutson reminded me.
06-24-2009 10:25 PM
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?
06-24-2009 11:08 PM
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 ?
06-25-2009 08:51 AM
06-25-2009 11:00 AM - edited 06-25-2009 11:09 AM
Thanks, Dennis Knutson!
I found my error, I changed my Encoder, now it run. One more time Thanks you.