02-14-2006 06:50 AM
02-17-2006 05:31 AM
Hi Kalisto,
There is an example which ships standard with the driver that uses one counter to measure the frequency of a TTL signal. Which is directly related to time.
You can find it at: *\National Instruments\LabVIEW 8.0\examples\DAQmx\Counter\Measure Digital Frequency.llb
If you know what the frequency of your TTL signal is and you know how many pulses/rev. your encoder has, you can calculate how fast your axis is turning.
Measuring the position of your axis is also a standard example which ships with the software. Knowing the direction in which your axis is turning is normally done with the signal that your encoder puts out. It normally has two outputs, A and B.
A and B are shifted 90° in phase, depending on which pulse, A or B, reaches your counter first you can tell in which direction your axis is turning. This is all implemented by standard in the vi you can find under the examples...same as above ...........\measure position.llb
Regards,
WVH
06-16-2009 06:45 AM
Estoy intentando controlar un motor paso a paso y que tiene un encoder incremental asociado. Quiero leer la posicion del encoder ( A, B, Io) con la tarjeta PCI-6023E, hay ejemplo en el directorio C:\Archivos de programa\National Instruments\LabVIEW 8.5\examples\DAQmx\Counter\Measure Position.llb pero no me funciona,
Podria alguien ayudarme con este problema?