Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

counter

Hello,
I have got a simple question for yoou. My attached Vi is running very well for the 5 angular encoders, but the linear encoder doesn't work somehow, and i am sure it is the software. So, it has got 200 counts per mm, 100% sure, but what do I have to enter their. I mean, 200counts per mm in meters, that doesn't work somehow, wrong values. And if I take option ticks, that doesn't go into the negative. Please can someone have a look, what's going on ?

thanks a lot.


0 Kudos
Message 1 of 5
(4,285 Views)

What is the make and model of the encoder and how is it wired to your card? What model number is the DAQ card?

There are additional inputs on the create channel to specify encoder type, units (I would suggest meters) and if it is a single pulse then use 0.000005 for distance per pulse.

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 5
(4,282 Views)
Sorry, for the delay in answering. I have got a pci 6602 counter timer card, and it seems to be the problem that the default sampling frequence of this card is to low. How do I sample with a higher frequence. Is the best way to do it with an internal clock source or how. Can I use the other counters to create a clock, and how ?

Thanks in advance, you can find my VI above.
0 Kudos
Message 3 of 5
(4,239 Views)
 

I have never used the 6602, but I have an application that might need one soon.

Looking at the manual, the 6602 has internal clocks of 100KHz, 20MHz, and 80MHz. It looks like you can use an external clock too. I doubt that the card's internal clock is not fast enough for your encoder. Do you have an oscilloscope that you can use to look at your encoder signal to make sure it is correct in terms of amplitude and frequency?

Here's 2 links to some manuals, the first is older but has more in-depth discussion on applications. The second is the latest version.

http://digital.ni.com/manuals.nsf/websearch/DD0DBB6404BC139886256721007CF16D 

https://www.ni.com/docs/en-US/bundle/ni-660x-feature/resource/372119c.pdf

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 5
(4,219 Views)
Hey,
with the pci6602, i can't use the internal clock for some reason, i do not know (source ni forum). But all I need, is a sampling frequency of more about 1 MHz, without complicated stuff. I mean, my VI attached works without the try of the pulse train tin the top left corner, but I miss some counts. My encoder output frequency is max 100kHz, need at least . 300-400kHz. But I am running out of time for my app. And can you tell me, what the default sampling rate of my Software code or the pci6602 is ? Please help me and do not talk in complicated words. I just need to update my code so, that I do not miss any counts from my 6 encoders. 1MHz sampling frequency would be sufficient.

And in particular, how do I apply the possible solution of a pulse train to my acutal code, without over floating the buffer, or any other errors.
Simply, I need hardware sampling frequency of 1MHz and if desired, I read out the actual values.

Thanks in advance.

0 Kudos
Message 5 of 5
(4,213 Views)