Go to Post A few months from now I'll be walking to school and then I'll suddenly be attack by a rogue robot trying to feed me a golden ball or something wont I? - Marcel [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-02-2011, 14:11
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
Autonomous Code

Here is my autonomous code I printscreened the part below photosensor code.

Any suggestions would be highly appreciated!!!




Uploaded with ImageShack.us
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2011, 15:12
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
Re: Autonomous Code

Servo is for our grabber to hold tubes and it has to be closed till we hang the tube.

Arm and Arm2 controls the window motors which controls the arm. The arm has to go up to reach third peg.

Elevator is for the lifting mechanism on our robot. It also has to go up to reach third peg.
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2011, 16:31
Wolfgang Wolfgang is offline
Registered User
AKA: Mehmed
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Denver
Posts: 47
Wolfgang is an unknown quantity at this point
Re: Autonomous Code

I see nothing that times or creates order in this code; all of this will execute at once. I recommend a case structure, perhaps for loops inside for timing unless you have something in there already.
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2011, 16:34
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
Exclamation Re: Autonomous Code

Quote:
Originally Posted by Wolfgang View Post
I see nothing that times or creates order in this code; all of this will execute at once. I recommend a case structure, perhaps for loops inside for timing unless you have something in there already.
I am not really familiar to Labview at all. I started learning it a month ago.

Can you please send a diagram because I cant really understand what you mean!
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2011, 19:34
Wolfgang Wolfgang is offline
Registered User
AKA: Mehmed
FRC #1245 (Shazbots)
Team Role: Programmer
 
Join Date: Oct 2009
Rookie Year: 2010
Location: Denver
Posts: 47
Wolfgang is an unknown quantity at this point
Re: Autonomous Code

Attached is a sequence structure. As you can see, this one has 3 panels. Whatever is in the left panel is executed first, up to whatever is in the right panel. You can put parts of your code in these.

The trick is that you need to find some way to stop the code from continually executing one panel of the sequence structure with some kind of timing.

If you wish to add more frames, right click the border and select "add frame after". If you wish to remove a panel, select "remove this frame" while right clicking the border of the unwanted panel.

Hope that helps!
Attached Files
File Type: vi sequencestructure.vi (4.3 KB, 24 views)
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2011, 03:14
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
Smile Re: Autonomous Code

Quote:
Originally Posted by Wolfgang View Post
Attached is a sequence structure. As you can see, this one has 3 panels. Whatever is in the left panel is executed first, up to whatever is in the right panel. You can put parts of your code in these.

The trick is that you need to find some way to stop the code from continually executing one panel of the sequence structure with some kind of timing.

If you wish to add more frames, right click the border and select "add frame after". If you wish to remove a panel, select "remove this frame" while right clicking the border of the unwanted panel.

Hope that helps!


Thank you very much!!!
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 20:33.

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