![]() |
Where does autonomous go in Labview
Hello, we are a second year team with a fresh programming squad that is still learning the ropes. We cannot seem to find exactly where to place the autonomous program. We looked at last years program that had an autonomous program but cannot seem to find where it was placed. Any help would be delightful, thank you.
|
Re: Where does autonomous go in Labview
Autonomous independent.vi
Edit: On the block diagram of "Robot Main" you will see a red/blue icon marked "Auto Indep". |
Re: Where does autonomous go in Labview
We tried this, but had no success.
|
Re: Where does autonomous go in Labview
What does the code look like that you put in autonomous?
We recently posted some of our training material on our web-site that describes how we go about it. You're welcome to look through it. |
Re: Where does autonomous go in Labview
1 Attachment(s)
This is what our program looks like that we put in the autonomous independent.vi.
|
Re: Where does autonomous go in Labview
1 Attachment(s)
Thank you for providing the code sample. There are several things that jump out at me.
1. I'm not sure how the 1 second wait and the time delay impact each other. I suggest getting rid of all the time delays and just run the wait. 2. To drive forward in tank drive both the Left Axis and Right Axis should be wired. 3. The safety configs are unnecessary. If implemented they need to receive updated information every 100 ms. The 1000 ms wait would make them time out if they were enabled. 4. The red dots indicate a mismatch between the data type of the terminal and constant applied to it. To automatically get the right data type right click on an unwired terminal and select create/constant from the menu. 5. I think the booleans should work for setting the solenoids but if you follow the advice in #4 above you would be selecting off/on from the menu for a single acting solenoid or forward/reverse for a double acting solenoid. Attached is a simplified version of the code to try. |
Re: Where does autonomous go in Labview
Your initial question sounded like you may be putting your code into a fresh VI or unsure where to put code that should run in autonomous. In case your issue wasn't addressed, please provide more background on what your autonomous independent VI looks like and any changes made to Robot Main. The framework automatically starts and stops the auto VI and automatically pulses the teleop VI. In most situations those two VIs are the ones you edit. If you make changes to Robot Main, you can break the scheduling and transitions.
Greg McKaskle |
Re: Where does autonomous go in Labview
Also remember that you need to choose autonomous on the driver station or run a practice match.
|
Re: Where does autonomous go in Labview
Anything in the same frame of a filmstrip can run in any order. Basically right now you can have the "wait" occur prior to setting the motors & solenoids, then the motors & solenoids will be set, then set again.
Recomendation: Create a new frame between the existing two, then move your 1 second wait into the new frame. |
| All times are GMT -5. The time now is 02:32. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi