Go to Post You can't just leave us hanging! That was SOOO 2010! - nighterfighter [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 16-01-2016, 16:15
chubchub5577's Avatar
chubchub5577 chubchub5577 is offline
Registered User
FRC #1802
 
Join Date: Nov 2015
Location: Kansas City, Kansas
Posts: 18
chubchub5577 is an unknown quantity at this point
Question LabVIEW Ultrasonic Sensor

I want to use an ultrasonic sensor so that i have my motor unable to turn on until I get close enough to the wall. I have never used this sensor before and this is my first year ever using labview. If you have any sources or just any help I would love the feedback thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2016, 21:03
sraque's Avatar
sraque sraque is offline
Registered User
AKA: Steve Raque
FRC #2614 (MARS)
Team Role: Mentor
 
Join Date: Jun 2012
Rookie Year: 2009
Location: Morgantown, WV
Posts: 82
sraque is on a distinguished road
Re: LabVIEW Ultrasonic Sensor

Which model ultrasonic sensor are you using or wish to use? If you do not have one already, I can provide some guidance on using a Maxbotix one (coupon in KOP).
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2016, 08:39
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabVIEW Ultrasonic Sensor

I suggest you select to the Help>>Find Examples in the menubar. See if there is an example for the specific sensor. Use that example's panel and code to explore its capabilities and how to use it. If you decide it is the right one to put on your root, there is a tutorial in the Getting Started window about the specifics of integrating example code into your robot code.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 17-01-2016, 20:11
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 274
Bpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant futureBpk9p4 has a brilliant future
Re: LabVIEW Ultrasonic Sensor

We just put together a video on how to do this. Here is the link to it http://youtu.be/npkDcDyke48. Let me know how it goes
__________________
2016 Tesla Division Finalist
2016 Central Illinois Regional Finalist
2015 Newton Division Finalist
2015 Newton Quality Award
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2016, 11:49
chubchub5577's Avatar
chubchub5577 chubchub5577 is offline
Registered User
FRC #1802
 
Join Date: Nov 2015
Location: Kansas City, Kansas
Posts: 18
chubchub5577 is an unknown quantity at this point
Re: LabVIEW Ultrasonic Sensor

Quote:
Originally Posted by sraque View Post
Which model ultrasonic sensor are you using or wish to use? If you do not have one already, I can provide some guidance on using a Maxbotix one (coupon in KOP).
We are using this sensor http://www.amazon.com/SainSmart-HC-S.../dp/B004U8TOE6 How ever we do have the maxbotix sensor if that is an easier sensor to code I would be happy to use it (maybe a little help with wiring please! )
I have some pictures of my code that (I thought it would work this way) so maybe just helping edit that would be helpful!
Thanks very much!!

Last edited by chubchub5577 : 18-01-2016 at 12:39.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2016, 12:03
chubchub5577's Avatar
chubchub5577 chubchub5577 is offline
Registered User
FRC #1802
 
Join Date: Nov 2015
Location: Kansas City, Kansas
Posts: 18
chubchub5577 is an unknown quantity at this point
Re: LabVIEW Ultrasonic Sensor

Here are some screenshots of my code so far hope this helps! http://imgur.com/a/yPXoB
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2016, 09:25
Doug Norman's Avatar
Doug Norman Doug Norman is offline
Registered User
no team (National Instruments)
Team Role: Engineer
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Austin, TX
Posts: 137
Doug Norman will become famous soon enoughDoug Norman will become famous soon enough
Re: LabVIEW Ultrasonic Sensor

As Greg mentioned above, in LabVIEW you can use Help>>Find Examples... and then look at the Ultrasonic example.
__________________
Doug Norman
National Instruments
Reply With Quote
  #8   Spotlight this post!  
Unread 23-01-2016, 11:58
yara92's Avatar
yara92 yara92 is offline
M.Fawdah Mechanical engineering
AKA: Mohamed
FRC #1946 (Mechka Monster)
Team Role: RoboCoach
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 236
yara92 will become famous soon enoughyara92 will become famous soon enough
Re: LabVIEW Ultrasonic Sensor

How I can read Sensor like HC-SR04 WITH LABVIEW, Just a simple code for beginner.
I try to study https://wpilib.screenstepslive.com/s...from-bad-loops
did not help
__________________
TEAM 1946-Tamra
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2016, 12:31
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: LabVIEW Ultrasonic Sensor

Quote:
Originally Posted by yara92 View Post
How I can read Sensor like HC-SR04 WITH LABVIEW, Just a simple code for beginner.
I try to study https://wpilib.screenstepslive.com/s...from-bad-loops
did not help
Follow the advice from Greg McKaskle and Doug Norman above!

LabVIEW Help>> Find Examples
Study the examples that are included in the FRC updates.

Are you having problems with endless loops?
__________________
Omar
Reply With Quote
  #10   Spotlight this post!  
Unread 23-01-2016, 13:11
yara92's Avatar
yara92 yara92 is offline
M.Fawdah Mechanical engineering
AKA: Mohamed
FRC #1946 (Mechka Monster)
Team Role: RoboCoach
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 236
yara92 will become famous soon enoughyara92 will become famous soon enough
Re: LabVIEW Ultrasonic Sensor

I am so far from that just how to write code to read the Ultrasonic Sensor HC-SR04 by LABVIEW, Just a simple code for beginner.
__________________
TEAM 1946-Tamra
Reply With Quote
  #11   Spotlight this post!  
Unread 24-01-2016, 10:30
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabVIEW Ultrasonic Sensor

If you are trying to use the ultrasonic sensor, there are a total of five icons.

Open tells the SW what pins you have wired the sensor to and what kind of sensor it is.

GetRange returns a distance number based on how it is configured.

Get and Set Refnum allow you to store and retrieve the opened refnum so that you can use it other places.

Close is how you release the pins so they could be reopened for something else.

It sounds like you may have other, more basic issues, but I can't be sure what they are.

Feel free to ask more basic questions. Everyone has to start in the way that is right for them, and that is easier with good questions.

Without knowing more, I'd suggest that you go through the tutorials on the Getting Started tab. It will help with imaging the hardware, installing the software, and opening template and example code and making use of it. Also, consider doing these tasks with a mentor or other students.

Good luck,
Greg McKaskle
Reply With Quote
  #12   Spotlight this post!  
Unread 25-01-2016, 17:43
yara92's Avatar
yara92 yara92 is offline
M.Fawdah Mechanical engineering
AKA: Mohamed
FRC #1946 (Mechka Monster)
Team Role: RoboCoach
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 236
yara92 will become famous soon enoughyara92 will become famous soon enough
Re: LabVIEW Ultrasonic Sensor

thanks I found a nice Example in LV and in fourm NI
Arduino sensor code.txt (583 bytes)
ultrasonic sonar module 1r0.pdf (321.7 K)
US-100 ultrasonic my code.vi (41.2 K) https://decibel.ni.com/content/servl...20my%20code.vi
__________________
TEAM 1946-Tamra
Reply With Quote
  #13   Spotlight this post!  
Unread 25-01-2016, 21:31
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabVIEW Ultrasonic Sensor

The code you found will help you to read a value from an arduino mounted ultrasonic sensor.

The code for LabVIEW FRC examples will help with one connected to a roboRIO. Do you have all of the software installed so that you can look at examples and tutorials? If not, be sure to install the software update after installing the DVD.

Greg McKaskle
Reply With Quote
  #14   Spotlight this post!  
Unread 01-02-2016, 11:40
yara92's Avatar
yara92 yara92 is offline
M.Fawdah Mechanical engineering
AKA: Mohamed
FRC #1946 (Mechka Monster)
Team Role: RoboCoach
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Israel
Posts: 236
yara92 will become famous soon enoughyara92 will become famous soon enough
Re: LabVIEW Ultrasonic Sensor

Yes I have every thing now it is clear with nice Example
__________________
TEAM 1946-Tamra
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 02:08.

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