Go to Post Regardless of the next course of action, getting steamed and angry will benefit nobody. And coming from me, that has to mean something. - Lil' Lavery [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-01-2009, 07:44
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
Autonomous questions (Labview) and some general issues

I can't get the autonomous to work, when I switch from TELEOP to AUTO at the DS, nothing happens. Could it be my very simple autonomous test code?
here's my code:



btw, should I remove all controls and indicators from the VI if I want to use the robot not connected to the PC?

Thanks!
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
Reply With Quote
  #2   Spotlight this post!  
Unread 07-01-2009, 08:16
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
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.
__________________
Is now an engineer thanks to FIRST.

Last edited by XXShadowXX : 07-01-2009 at 08:19.
Reply With Quote
  #3   Spotlight this post!  
Unread 07-01-2009, 08:17
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: 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
Reply With Quote
  #4   Spotlight this post!  
Unread 07-01-2009, 08:28
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
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
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
Reply With Quote
  #5   Spotlight this post!  
Unread 07-01-2009, 08:30
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
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
__________________
Is now an engineer thanks to FIRST.
Reply With Quote
  #6   Spotlight this post!  
Unread 07-01-2009, 08:45
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
Re: Autonomous questions (Labview) and some general issues

Quote:
Originally Posted by XXShadowXX View Post
do you mind if i start working with dx/dt for the joysticks, that is an amazing idea
go ahead, and tell me your findings

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
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
Reply With Quote
  #7   Spotlight this post!  
Unread 07-01-2009, 08:47
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
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?
__________________
Is now an engineer thanks to FIRST.
Reply With Quote
  #8   Spotlight this post!  
Unread 07-01-2009, 09:00
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: 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
Reply With Quote
  #9   Spotlight this post!  
Unread 07-01-2009, 09:37
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
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.
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
Reply With Quote
  #10   Spotlight this post!  
Unread 07-01-2009, 10:03
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: 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
Reply With Quote
  #11   Spotlight this post!  
Unread 07-01-2009, 10:06
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Autonomous questions (Labview) and some general issues

Quote:
Originally Posted by Daniel_H View Post
somehow it is toogling teleop to auto again, but it still needs to be connected to the PC and running, otherwise nothing happens.
Hitting the run button only loads the program into RAM. You will need to build->deploy->run as startup for it to persist.
Reply With Quote
  #12   Spotlight this post!  
Unread 07-01-2009, 16:12
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
Re: Autonomous questions (Labview) and some general issues

Quote:
Originally Posted by EricVanWyk View Post
Hitting the run button only loads the program into RAM. You will need to build->deploy->run as startup for it to persist.
Do you mean that I never really wrote a code that would be there after I reboot the cRIO? omg

I think I didn't understand how to do that. Where are those commands?
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
Reply With Quote
  #13   Spotlight this post!  
Unread 07-01-2009, 16:39
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: 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.
__________________
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
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
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


All times are GMT -5. The time now is 08:46.

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