Go to Post I am allergic to work... - Mike Schroeder [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-01-2014, 21:32
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: ultra sonic Sensor

Quote:
Originally Posted by katsauga View Post
I am having trouble finding sample code for a MaxBotics ultrasonic sensor. Can Someone submit a place to start, or a sample Labview code?
If you're looking for example LabVIEW code, a good place to start is the LabVIEW Examples. On the Getting Started window, select the Support tab. Click the "Find FRC Examples..." link on the right and it will open the NI Example Finder with the FRC Robotics folder selected.

Under the Analog folder you will find "EZ1 MB1010 Sonar - Analog.lvproj", and Under the Digital folder you will find "EZ1 MB1010 Sonar - Digital.lvproj":
This example shows how to use the MaxBotix LV-MaxSonar-EZ1 Sonar Range Finder MB1010. It will display the distance from the sensor in inches.
The examples include pictures of the proper wiring for the sensor.
  #2   Spotlight this post!  
Unread 26-01-2014, 23:04
MrTechCenter's Avatar
MrTechCenter MrTechCenter is offline
INTENSITY
AKA: Harsharan "Harsh" Dhaliwal
FRC #2073 (Eagleforce)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Sacramento, CA
Posts: 559
MrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant futureMrTechCenter has a brilliant future
Re: ultra sonic Sensor

Quote:
Originally Posted by Alan Anderson View Post
If you're looking for example LabVIEW code, a good place to start is the LabVIEW Examples. On the Getting Started window, select the Support tab. Click the "Find FRC Examples..." link on the right and it will open the NI Example Finder with the FRC Robotics folder selected.

Under the Analog folder you will find "EZ1 MB1010 Sonar - Analog.lvproj", and Under the Digital folder you will find "EZ1 MB1010 Sonar - Digital.lvproj":
This example shows how to use the MaxBotix LV-MaxSonar-EZ1 Sonar Range Finder MB1010. It will display the distance from the sensor in inches.
The examples include pictures of the proper wiring for the sensor.
We used the Digital example and got an accurate reading from the example vi but when we tried to duplicate it in our own code, we failed to get a reading.
__________________
2011 Sacramento Regional Finalists; 2011 MadTown Throwdown VIP Excellence in Engineering Award; 2012 Sacramento Regional Innovation in Control Award; 2012 Silicon Valley Regional Judges' Award; 2012 CalGames Autonomous Challenge Award; 2012 MadTown Throwdown Finalists; 2013 P0W3RH0U53 PWNAGE Gracios Professionalism Award; 2014 Central Valley Regional Innovation in Control; 2014 Sacramento Regional Innovation in Control; 2014 Curie Division Gracious Professionalism Award; 2015 Sacramento Regional Innovation in Control
  #3   Spotlight this post!  
Unread 27-01-2014, 02:25
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: ultra sonic Sensor

Quote:
Originally Posted by MrTechCenter View Post
We used the Digital example and got an accurate reading from the example vi but when we tried to duplicate it in our own code, we failed to get a reading.
You know the sensor and wiring are correct, because the example works. The problem must therefore be with how you integrated it into your code. Show us what you did and we'll take a look at it. We need to see where you opened the sensor in Begin.vi and wherever you're reading and displaying its value.
Closed Thread


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 02:29.

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