View Single Post
  #2   Spotlight this post!  
Unread 24-02-2013, 20:24
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Smile Re: Is there a speed sensor input example for Labview?

Dear CD,

Mark's example worked with me with one small modification, I changed the 0.05 value going to the config Timer to 0.5 (timeout value) and I placed the Periodic Tasks inside a 100 msec loop not the 10 msec loop also available.

I am able to read the Tachometer on the Variables page but not on the smart dashboard. I have fiddled with the smart dashboard displays and they seem to have a much slower update and seem to "freeze up" after a short period of time on my bench setup at home. I wouldn't trust them too much if you are using them for control purposes... use the variables page to confirm your software is operating as expected is my 10-cent advice.

BTW, I am testing an AndyMark PG188 gearmotor at home that has a free speed of about 75 rpm. This operates at a safe
speed and I can see the Rockwell Automation sensor built in lights toggling to indicate a change of state. I have not yet configured a CIM for higher speed measurement operation.

I see the code segment below appears to be run in the 10 msec loop. Hmm... I may move the 100 msec counter logic into the 10 msec loop and see if the motor speed shows up on the smart dashboard.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 25-02-2013 at 16:38. Reason: more informaiton
Reply With Quote