|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Autonomous questions (Labview) and some general issues
|
|
#2
|
||||
|
||||
|
Re: Autonomous questions (Labview) and some general issues
all i know is most programs in labview don't work until they are within a while loop,(so you can control them from the dash board) trying creating a while loop to execute when in autonomous mode. If you use a case statement, that is fine, but the control panel won't see that their is anything to run the program with, it needs a while loop to run in labview, idk about in the cRIO.
Last edited by XXShadowXX : 07-01-2009 at 08:19. |
|
#3
|
|||
|
|||
|
Re: Autonomous questions (Labview) and some general issues
Are you clicking the run button on Basic Robot Main.vi or Autonomous Independent.vi? I don't believe that the Autonomous Ind VI will run on its own. I think that everything needs to be setup by using Basic Robot Main.vi as the highest-level VI (especially Ethernet comm).
Russ |
|
#4
|
|||||
|
|||||
|
Re: Autonomous questions (Labview) and some general issues
I click RUN at the Basic Robot Main.vi
I changed very few from the original autonomous code |
|
#5
|
||||
|
||||
|
Re: Autonomous questions (Labview) and some general issues
do you mind if i start working with dx/dt for the joysticks, that is an amazing idea
|
|
#6
|
|||||
|
|||||
|
Re: Autonomous questions (Labview) and some general issues
Quote:
I already got it working, but didn't implement it on traction control yet. I want to add some inertia to the controls to improva acceleration, since sudden fulls on the joysticks will make you slip |
|
#7
|
||||
|
||||
|
Re: Autonomous questions (Labview) and some general issues
I haven't started on traction control, I'm still working on ballistics, and tracking. But 3d calculus is giving me a headache so I'll see what i can come up with.
Labview can do trig right? |
|
#8
|
|||
|
|||
|
Re: Autonomous questions (Labview) and some general issues
You don't need to remove the controls and indicators before building and deploying as a startup application. I don't believe that these will impact the final performance at all when running as a startup app since the "compiler" will strip off the UI goodies when unnecessary.
I'd recommend that you set some breakpoints in Autonomous Independent.vi and see if the application actually jumps to that VI when you toggle the switch on the DS. Maybe the changes that you've made to Basic Robot Main.vi have somehow defeated Autonomous Independent.vi. For example (and I haven't dug deep enough into the architecture to know whether this is easily accomplished), an infinite loop in teleop may never let the main state machine jump to Auto Ind VI. What's shown on the DS screen when you switch to Auto? Russ |
|
#9
|
|||||
|
|||||
|
Re: Autonomous questions (Labview) and some general issues
somehow it is toogling teleop to auto again, but it still needs to be connected to the PC and running, otherwise nothing happens.
|
|
#10
|
|||
|
|||
|
Re: Autonomous questions (Labview) and some general issues
In order to run without your development PC attached, you need to build the app, deploy and set it to "run as startup".
http://decibel.ni.com/content/servlet/JiveServlet/previewBody/2631-102-2-4099/FRC_Programming_Guide.pdf;jsessionid=82a40f1a30d63 f03c468b58846e5bb8cdea6056bf7c4.e3mNbNaPb3iNe34Tbx aPbhuMchb0n6jAmljGr0 All teams should check out the above link. It's the complete (IMHO) LabVIEW for FRC guide and includes instructions for deploying and running. If the above link breaks for some reason, the document can easily be accessed through FIRST's Control System portal at http://www.usfirst.org/community/frc....aspx?id=10934 (see LabVIEW Robotics Programming Guide). Russ |
|
#11
|
|||
|
|||
|
Re: Autonomous questions (Labview) and some general issues
Hitting the run button only loads the program into RAM. You will need to build->deploy->run as startup for it to persist.
|
|
#12
|
|||||
|
|||||
|
Re: Autonomous questions (Labview) and some general issues
Quote:
I think I didn't understand how to do that. Where are those commands? |
|
#13
|
||||
|
||||
|
Re: Autonomous questions (Labview) and some general issues
There is an entire section in the manual which Russ referenced which goes over building, then deploying an application. Try it out.....it's easy. At least you didn't lose your code.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New TipJar Training Video - Autonomous Mode and LabVIEW Training Giveaway | LVMastery | NI LabVIEW | 3 | 28-01-2009 07:06 |
| A few Labview questions | Japper | NI LabVIEW | 14 | 09-09-2008 20:41 |
| Questions about Hybrid Period and general rules... | 354.FIRST | Rules/Strategy | 3 | 19-02-2008 00:58 |
| Major CMUcam issues - LabView app won't work, very low-quality picture | scottmso | Programming | 5 | 19-01-2006 17:51 |
| Some questions and answers... | Joe Johnson | Off-Season Events | 0 | 26-10-2001 12:56 |