Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Autonomous Code (http://www.chiefdelphi.com/forums/showthread.php?t=92010)

cilginbilgin 16-02-2011 14:11

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

Any suggestions would be highly appreciated!!!




Uploaded with ImageShack.us

cilginbilgin 16-02-2011 15:12

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.

Wolfgang 16-02-2011 16:31

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.

cilginbilgin 16-02-2011 16:34

Re: Autonomous Code
 
Quote:

Originally Posted by Wolfgang (Post 1024506)
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!

Wolfgang 16-02-2011 19:34

Re: Autonomous Code
 
1 Attachment(s)
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!

cilginbilgin 17-02-2011 03:14

Re: Autonomous Code
 
Quote:

Originally Posted by Wolfgang (Post 1024674)
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!!!


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

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