Go to Post I don't remember who said it or what the words are exactly...(I think it was Hopalong Cassidy) Don't say goodbye, just say see you later. - Al Skierkiewicz [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 21-10-2008, 19:18
comphappy comphappy is offline
Registered User
AKA: Brennan Ashton
FRC #2605 (A2D_16)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Bellingham, WA
Posts: 157
comphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to behold
Send a message via AIM to comphappy
LabView Drive Simmulatior Practice

So I have been trying to get a feel for LabView and I did this

HTML
www.shsfirst.org/files/drivesim/
and the VIs
www.shsfirst.org/files/drivesim/vi/


I would like any feedback I can get.

Thank you.
__________________
A2D Solving the Imaginary Error Function...
Reply With Quote
  #2   Spotlight this post!  
Unread 22-10-2008, 00:08
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: LabView Drive Simmulatior Practice

Very nice!
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #3   Spotlight this post!  
Unread 22-10-2008, 02:36
comphappy comphappy is offline
Registered User
AKA: Brennan Ashton
FRC #2605 (A2D_16)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Bellingham, WA
Posts: 157
comphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to behold
Send a message via AIM to comphappy
Re: LabView Drive Simmulatior Practice

One key thing that does not show up is the false case for the case statement on the left. You will notice a delay when you rotate, this is proportional to the amount of turn requested, there is a constant that changes the amplification of it. This is to simulate the time that it takes a robot to turn in place.

My hope is next week to add some NXT to this and see how it works out, who knows this might end up working as part of a nice OI robot feedback.
__________________
A2D Solving the Imaginary Error Function...
Reply With Quote
  #4   Spotlight this post!  
Unread 23-10-2008, 15:07
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: LabView Drive Simmulatior Practice

Excellent comphappy, here is my own attempt at something similar - I haven't tried your sim yet, but judging from the programming techniques used you are way more familiar with Labview than I.

The VIs were developed with Labview 8.6, but I saved them as 8.5 so everyone can use them.
Attached Thumbnails
Click image for larger version

Name:	draw_robot_on_fieldp.png
Views:	88
Size:	9.3 KB
ID:	6916  Click image for larger version

Name:	draw_robot_on_fieldd.png
Views:	123
Size:	24.6 KB
ID:	6917  Click image for larger version

Name:	rotate_polygond.png
Views:	66
Size:	10.6 KB
ID:	6919  
Attached Files
File Type: vi draw_robot_on_field.vi (32.4 KB, 83 views)
File Type: vi rotate_polygon.vi (16.2 KB, 67 views)

Last edited by mluckham : 23-10-2008 at 15:27.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-10-2008, 15:32
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: LabView Drive Simmulatior Practice

That's really cool.

You could even use a joystick as an input (connectivity -> input device)
Reply With Quote
  #6   Spotlight this post!  
Unread 24-10-2008, 00:10
comphappy comphappy is offline
Registered User
AKA: Brennan Ashton
FRC #2605 (A2D_16)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Bellingham, WA
Posts: 157
comphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to behold
Send a message via AIM to comphappy
Re: LabView Drive Simmulatior Practice

Quote:
Originally Posted by mluckham View Post
Excellent comphappy, here is my own attempt at something similar - I haven't tried your sim yet, but judging from the programming techniques used you are way more familiar with Labview than I.

The VIs were developed with Labview 8.6, but I saved them as 8.5 so everyone can use them.
This is interesting, I am working on something like this as well. My code works for turning inplace only, but the next version will have only forward, reverse turning as well as being on an NXT.

I do like the idea of hooking a joystick up to it, but I do not have a USB one so that will have to wait.
__________________
A2D Solving the Imaginary Error Function...
Reply With Quote
  #7   Spotlight this post!  
Unread 24-10-2008, 01:48
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: LabView Drive Simmulatior Practice

One thing that might help all of you is that there is a polar to cartesian converter in Labview, found at Mathematics > Numeric > Complex (or Programming > Numeric > Complex).
Unfortunately, it is true this is not included in the NXT toolkit.
__________________
-- Marshal Horn
Reply With Quote
  #8   Spotlight this post!  
Unread 24-10-2008, 09:52
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,576
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: LabView Drive Simmulatior Practice

Why not create your own polar to cartesian VI?

It's not exactly difficult

x = r*cos(theta)
y = r*sin(theta)

boom, there you go!
Reply With Quote
  #9   Spotlight this post!  
Unread 24-10-2008, 09:56
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: LabView Drive Simmulatior Practice

It's a little trickier going from cartesian to polar, however, since you need to account for arccos and arcsin having having "+/-" output possibilities. But it's not too difficult.

Russ
Reply With Quote
  #10   Spotlight this post!  
Unread 24-10-2008, 20:48
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: LabView Drive Simmulatior Practice

In that case, you can go to
Code:
Mathematics > Elementary & Special Functions > Trigonometric Functions
and select the atan2 VI.
Personally, I would just do this processing on the computer itself, not the NXT. It's not like transmitting each move will be much more data than transmitting the current location. However, I would (if it doesn't already) treat it like packets, and number each one make sure that data isn't lost. I suppose the location data could be sent back to the NXT in autonomous mode, to help with navigation.
For determining how far the 'bot has turned, the angle turned (in degrees or radians) is directly proportional the the "distance left drive has travelled" subtracted from the "distance right drive has travelled".
__________________
-- Marshal Horn
Reply With Quote
  #11   Spotlight this post!  
Unread 25-10-2008, 21:43
comphappy comphappy is offline
Registered User
AKA: Brennan Ashton
FRC #2605 (A2D_16)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Bellingham, WA
Posts: 157
comphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to behold
Send a message via AIM to comphappy
Re: LabView Drive Simmulatior Practice

If you use your trig identities and make things proportional to create your functions it is possible to avoid almost all the additional trig.
__________________
A2D Solving the Imaginary Error Function...
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
Best Practice for Posting LabView VIs? DonRotolo National Instruments LabVIEW and Data Acquisition 8 09-04-2010 22:37
VIDEO: 932 Drive Practice! Syncopation Robot Showcase 5 19-02-2008 15:46
Chain drive vs. cogged belt drive(timing belts) LordBritten Technical Discussion 24 20-12-2006 23:07
pic: Jester Drive:Mecanum Wheel Drive Train Ken Delaney 357 Technical Discussion 64 29-03-2006 22:16
Looking for practice motors & extra tape drive parts? archiver 2000 1 23-06-2002 22:54


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

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