Jump to content

As of July 17, 2015, the LabJack forums here at forums.labjack.com are shut down. New registrations, topics, and replies are disabled. All forums are in a read-only state for archive purposes.

Please visit our current forums at labjack.com/forums to view and make new posts. To post on the current forums, use your labjack.com login account. Your old LabJack forums login credentials have been retired. There are no longer separate logins for labjack.com and LabJack forums.


Reed Switch/Timer Help

  • Please log in to reply
1 reply to this topic

#1 noelle

  • Members
  • 1 posts

Posted 06 July 2012 - 03:52 PM

Hi, I am trying to find the speed of a wheel using a reed switch, magnets, and a LabJack U6. I am trying to program the LabJack in Java but I am not sure what to do after I open the LabJack. Do I add a request to set the timer/counter pin offset to 0 and enable the timer? I am also not sure which timer clock base to use. Should I use the firmware counter input with debounce since I am using a reed switch? Please help me.

#2 LabJack Support

LabJack Support
  • Admin
  • 8677 posts

Posted 09 July 2012 - 11:47 AM

First of all grab our Java example package to make programming easier: http://labjack.com/support/ud/examples

The TimerCounter example should only need a couple of modifications to set the desired mode.

Debounce is always good. If your maximum frequency is less than 62Hz then a counter with debounce may solve you a lot of headaches. For higher frequencies we will need to use filters and maybe buffers to create a good signal.

Here is a good discussion to help you get started with frequency measurement: https://forums.labja...?showtopic=1105

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users