Go to Post Hey Don, if the [Woody Flowers] award doesn't impress the non-FIRST friends and family, just tell them you have your own "inter-web thread" - tell them you are like a Chuck Norris on the internet!!! - ebarker [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-01-2012, 23:26
farmersvilleRob's Avatar
farmersvilleRob farmersvilleRob is offline
Registered User
FRC #4084
 
Join Date: Jan 2012
Location: Farmersville
Posts: 172
farmersvilleRob is infamous around these parts
Ultrasonic Sensors?

Am I missing something or how does labview get the integer from the ultrasonic range finder? There isn't an echo block to get the info back from the ping block. Do I need to create one myself? I also went through the blocks them selves and nothing is giving me an output.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2012, 11:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Ultrasonic Sensors?

If you are using the MaxBotix ultrasonic sensor that came in the 2012 Kit, then you do not program it through the LabVIEW FRC Ultrasonic vi's.
The LV ultrasonic vi's are for a different make/model of sensor.

The MaxBotix sensor can get wired for analog and plugged into the analog bumper, then accessed as a standard analog input. The analog value has a direct correlation to inches-to-target.
It can also be wired for digital and plugged into the sidecar.

There are code examples for both analog and digital from the LV Start page under Support -> Find FRC Examples..., then Sensors->EZ1...
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-01-2012 at 11:23.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2012, 08:39
cilginbilgin cilginbilgin is offline
Registered User
FRC #2905
 
Join Date: Jan 2010
Location: Istanbul,Turkey
Posts: 188
cilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the roughcilginbilgin is a jewel in the rough
Question Re: Ultrasonic Sensors?

Quote:
Originally Posted by Mark McLeod View Post
There are code examples for both analog and digital from the LV Start page under Support -> Find FRC Examples..., then Sensors->EZ1...
how do we integrate the analog example to our robot project? I mean, how are we going to split the example into begin, teleop etc. VIs.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2012, 09:27
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Ultrasonic Sensors?

From the Getting Started page, look at:
Tutorials -> Tutorial 7 - Integrating Examples into Robot Code
Basically the Open, and the Sets go in Begin.vi, the Close in Finish.vi, and just Get Avg with the scaling factor applied might go in Teleop and/or Autonomous.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:23.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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