Go to Post Just fill your wheels with depleted uranium - EmileH [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 21-06-2010, 14:38
Team#2057-Vegas's Avatar
Team#2057-Vegas Team#2057-Vegas is offline
Team2057LasVegas
AKA: Justin Major
FRC #2057 (AV CyberBulls)
Team Role: Leadership
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Las Vegas
Posts: 113
Team#2057-Vegas can only hope to improve
More questions from a new labviewer

Hello!

After my last post about 3 weeks ago when I was learning labview, I am happy to say I think I'm doing pretty well. We do have a problem though..

The code worked just about but what happens is when I run the bot the Watchdog will flash on the dashboard on and off.. the compressor and tank drive will run when it says "teleop enabled" and will circuit off when it says "watchdog not fed"

I have a second problem as well though. None of the solonoids are working! I was told since we use both pwm sides that i need to set one side to one button and another to another button.. (picture below)

Third problem is that with this.. the autonomous code isnt working either. None at all.

I have checked for electrical problems with both things as well as checking all the pwm placements and everything is in check.

I did add a few new things lately in the finish area that weren't there before. I have yet to test this and maybe will today. I will post something if there is a change.

Anyone have any ideas? I have posted pictures of each coded area below.
I have spread some things in pictures out for your viewing ability.

Thank you!
Attached Thumbnails
Click image for larger version

Name:	autonomous.jpg
Views:	58
Size:	133.9 KB
ID:	9158  Click image for larger version

Name:	begin.jpg
Views:	49
Size:	90.5 KB
ID:	9159  Click image for larger version

Name:	finish.jpg
Views:	43
Size:	73.3 KB
ID:	9160  Click image for larger version

Name:	main.jpg
Views:	47
Size:	96.7 KB
ID:	9161  Click image for larger version

Name:	teleop.jpg
Views:	55
Size:	109.5 KB
ID:	9162  

__________________
Justin Major
2057 Team Leader

"We will kick you off our pasture" -- 2057 Motto
Reply With Quote
  #2   Spotlight this post!  
Unread 21-06-2010, 15:16
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: More questions from a new labviewer

The "watchdog delay and feed" pattern you're using for autonomous is not appropriate for Autonomous Iterative. Put it in Autonomous Independent instead. The way you're doing it now will disrupt communication. You're feeding the user watchdog, but the system watchdog will still shut down the robot outputs. I haven't looked at what it does in detail, so there might be other problems as well.

The additions you made to Begin and Finish seem fine. However, it looks like the code which ought to be in Teleop was added instead to the framework's communication loop, and it looks like you're trying to open new references to resources instead of using the "RefNum Get" to obtain the reference that was opened in Begin. I suggest that you start over with a fresh project, and this time make changes to Begin.vi, Finish.vi, Teleop.vi, and Autonomous Independent.vi only.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-06-2010, 15:18
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: More questions from a new labviewer

Both the telop and the autonomous iterative should process very quickly and return. Both your telop and your autonomous iterative continue processing for a long time. Since they don't get back to robot main quickly, I think that is the cause of your watchdog problems. You've added DS communication VIs which are redundant with the ones in robot main and may also be causing problems.

Look at the default telop (if you create a new project). You should be able to take most of the code within your while loop and paste it into the execute case in the default telop. This returns quickly.

For your autonomous, the easiest solution would be to take the code and put it in autonomous independent instead. Autonomous independent is started in parallel with the rest of the code and doesn't need return quickly.

What type of solenoids are you using? If you're using 24v solenoids (like the ones that came in the kit this year), you need to make sure the solenoid breakout is wired with 24v. If you're using single solenoid valves, you need to keep the value set, so based on your code you'd need to hold the joystick button.

Last edited by Joe Ross : 21-06-2010 at 15:21.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-06-2010, 15:27
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: More questions from a new labviewer

The last attachment looks like it was cut from the 2009 Framework. It conflicts with what the 2010 Framework does elsewhere as shown in your other attachments.

Opening the solenoids twice the way you are will prevent them from working correctly.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 21-06-2010, 16:11
Team#2057-Vegas's Avatar
Team#2057-Vegas Team#2057-Vegas is offline
Team2057LasVegas
AKA: Justin Major
FRC #2057 (AV CyberBulls)
Team Role: Leadership
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Las Vegas
Posts: 113
Team#2057-Vegas can only hope to improve
Re: More questions from a new labviewer

Quote:
Originally Posted by Alan Anderson View Post
The "watchdog delay and feed" pattern you're using for autonomous is not appropriate for Autonomous Iterative. Put it in Autonomous Independent instead. The way you're doing it now will disrupt communication. You're feeding the user watchdog, but the system watchdog will still shut down the robot outputs. I haven't looked at what it does in detail, so there might be other problems as well.

The additions you made to Begin and Finish seem fine. However, it looks like the code which ought to be in Teleop was added instead to the framework's communication loop, and it looks like you're trying to open new references to resources instead of using the "RefNum Get" to obtain the reference that was opened in Begin. I suggest that you start over with a fresh project, and this time make changes to Begin.vi, Finish.vi, Teleop.vi, and Autonomous Independent.vi only.
I was told iterative was for things that would be like a "list" this happens.. then this happens.. and so on..

with the refnum get thing.. i dont understand what you are saying.. I was told by the team who taught me that the idea had to be "SET" in begin andd then "GET" where i have to use it.. could you make an example picture maybe?

Quote:
Originally Posted by Joe Ross View Post
Both the telop and the autonomous iterative should process very quickly and return. Both your telop and your autonomous iterative continue processing for a long time. Since they don't get back to robot main quickly, I think that is the cause of your watchdog problems. You've added DS communication VIs which are redundant with the ones in robot main and may also be causing problems.

Look at the default telop (if you create a new project). You should be able to take most of the code within your while loop and paste it into the execute case in the default telop. This returns quickly.

For your autonomous, the easiest solution would be to take the code and put it in autonomous independent instead. Autonomous independent is started in parallel with the rest of the code and doesn't need return quickly.

What type of solenoids are you using? If you're using 24v solenoids (like the ones that came in the kit this year), you need to make sure the solenoid breakout is wired with 24v. If you're using single solenoid valves, you need to keep the value set, so based on your code you'd need to hold the joystick button.
should i lengthen the watchdog time on the autonomous?

what do you mean by the DS things? I dont remember adding a thing. This was made straight out of a fresh project

alright, I'll put it in the excecute

I will do that with the autonomous thanks

the solonoids: we have 2 of them. both double sided.. the one for our arm is a festo from this year and the other is a older one i guess a 12v. they are both hooked to the slot 8 on the crio by a 2 wire pwm (i forget the technical name)



quote from mark: how should i go along doing that? could you make a quick example i could see? i tried to follow the examples given in labview.

I was told to have a button for opening and closeing on there though i would like to just press it and have it come back when i release


Thanks to all!
__________________
Justin Major
2057 Team Leader

"We will kick you off our pasture" -- 2057 Motto
Reply With Quote
  #6   Spotlight this post!  
Unread 21-06-2010, 16:16
Team#2057-Vegas's Avatar
Team#2057-Vegas Team#2057-Vegas is offline
Team2057LasVegas
AKA: Justin Major
FRC #2057 (AV CyberBulls)
Team Role: Leadership
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Las Vegas
Posts: 113
Team#2057-Vegas can only hope to improve
Re: More questions from a new labviewer

alan, when i move the autonomous code to independent, do i need to move the execute loop as well?
__________________
Justin Major
2057 Team Leader

"We will kick you off our pasture" -- 2057 Motto
Reply With Quote
  #7   Spotlight this post!  
Unread 21-06-2010, 19:06
Team#2057-Vegas's Avatar
Team#2057-Vegas Team#2057-Vegas is offline
Team2057LasVegas
AKA: Justin Major
FRC #2057 (AV CyberBulls)
Team Role: Leadership
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Las Vegas
Posts: 113
Team#2057-Vegas can only hope to improve
Re: More questions from a new labviewer

I have rewritten the code fixing the solenoids and moving the autonomous. I'm gonna test it in a bit.
__________________
Justin Major
2057 Team Leader

"We will kick you off our pasture" -- 2057 Motto
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
[FTC]: Questions From a New Team FLHSFTC FIRST Tech Challenge 7 17-02-2010 11:22
More CAN control questions Geek 2.0 Electrical 0 12-01-2010 13:40
More friction questions Woody1458 General Forum 15 11-01-2009 21:03
More questions.. Magnechu Pneumatics 1 06-02-2008 16:38
More Questions... Lake Orion OCCRA 0 30-11-2001 19:27


All times are GMT -5. The time now is 22:02.

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