Go to Post Ya know...they created the "RUMOR MILL" for a reason. - Andy Grady [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 01-27-2009, 09:19 AM
Pausert Pausert is offline
Registered User
FRC #1727 (REX)
Team Role: Leadership
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Maryland
Posts: 69
Pausert is an unknown quantity at this point
VEX Ultrasonic Sensor

So, I've been trying to get the the VEX ultrasonic sensor to work with the cRIO. I've created a while loop in which I have a "wait", the Ping VI, and the Get Distance VI. Outside of the loop I have the respective Open and Close VIs for Ultrasonic sensors.

It /partially/ works. If I run it normally, I receive the distance to whatever object was in front of the sensor when I hit run. This also happens if I tell it to run continuously. Also, I attached a display to the loop timer. This timer stops updating after a period of time.

BUT: If I ask it to highlight execution it will update the distance as fast as the highlights move.

Essentially, I get a distance out of it, but it won't update the distance.

I think the problem may lie in the respective lengths of the ping time and the loop wait time. Also, I am using the second update of Labview.

Any pointers? Tips? Attached is my code with some comments detailing the situation.
Attached Files
File Type: zip Ultrasonic_Senor_Robot.zip (130.0 KB, 96 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 01-27-2009, 10:27 AM
TDohse TDohse is offline
Registered User
AKA: Thomas
no team (NI)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 39
TDohse is an unknown quantity at this point
Re: VEX Ultrasonic Sensor

There is a known issue in Update 2 with ultrasonic sensors, which causes GetRange to never return if the sensor never hears an echo. See http://forums.usfirst.org/showthread.php?t=10972 or http://www.chiefdelphi.com/forums/sh...ad.php?t=72452 for other threads on the same topic.

Update 3 fixes this problem, your code should work as desired after you update.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ultrasonic Sensor Pneumaticsman Technical Discussion 7 01-29-2009 12:32 AM
ultrasonic sensor problems... couldntthinkofa Programming 2 01-05-2008 11:29 AM
Vex Ultrasonic Sensor not responding SomeoneKnows Programming 6 12-18-2007 03:48 PM
VEX Ultrasonic Sensor delay P1h3r1e3d13 Programming 4 03-28-2006 12:45 PM
Ultrasonic Sensor winners Programming 3 01-02-2006 07:55 PM


All times are GMT -5. The time now is 07:18 PM.

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


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