Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   LabView and Data Acquisition (http://www.chiefdelphi.com/forums/forumdisplay.php?f=150)
-   -   LabView Gear Tooth Sensor Code (http://www.chiefdelphi.com/forums/showthread.php?t=41990)

SkiRacer 16-01-2006 16:41

LabView Gear Tooth Sensor Code
 
Does anyone have the code that LabView needs to link with the gear tooth sensor?

Danny Diaz 17-01-2006 00:26

Re: LabView Gear Tooth Sensor Code
 
Quote:

Originally Posted by SkiRacer
Does anyone have the code that LabView needs to link with the gear tooth sensor?

The gear tooth sensor was not meant to be used with the USB-6009 DAQ device the same way it will be used on the robot. The gear tooth sensor generates a pulse that is too narrow for a USB DAQ device to read reliably - most often on the IFI controller teams use an interrupt line to catch pulses and to reduce aliasing of the pulsing signal. No such mechanism exists for the USB-DAQ. However, if you were to use a standard Hall-effect sensor (without direction sensing), the DAQ can be used to read the output of the sensor at low speeds.

-Danny

Joe Hershberger 17-01-2006 03:53

Re: LabView Gear Tooth Sensor Code
 
Quote:

Originally Posted by SkiRacer
Does anyone have the code that LabView needs to link with the gear tooth sensor?

The USB-6009 does support one simple event counter on PFI0 that you could use to count pulses. This would not give you direction information, though. The way you would use this is to use a timed loop in LabVIEW and each time your loop executes, look at how many pulses you measured and divide that by your timebase. This would work well as a basic interface to validate functionality, but it would not be very flexible.

Good luck.
-Joe


All times are GMT -5. The time now is 00:19.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi