Go to Post There hasn't been an announcement to buy pool noodles yet. Considering that they are already out of stores in most of the country, draw whatever conclusion that you like. - Joe Ross [more]
Home
Go Back   Chief Delphi > Technical > Electrical > CAN
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 15-02-2012, 08:42
Wendy Holladay's Avatar
Wendy Holladay Wendy Holladay is offline
Registered User
FRC #1912 (Team Combustion)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Slidell, la
Posts: 183
Wendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond repute
Compressor and 2-can

after many, many hours of chasing what seems like wiring problems, we believe we have identified a problem with the compressor while running 2-can. we can work the compressor just fine without drive code, and can run our Jaguars off 2-can without the compressor. to get the compressor going, we enabled the disable code block in periodic tasks.

when we have both, the compressor's behavior is erratic. sometimes it works, sometimes is runs for about 1 execution cycle and sometimes it doesn't run at all. we are getting errors on the driver's station saying something like robot drive loop not getting inputs, etc, something that makes me think either the compressor or the 2-can is using all the processor.

we have changed out cables, side cars, crio modules, spikes, just about everything.

we are using the 2-can module purchased from cross the road electronics.

has anyone else seem this? is anyone running 2-can and the compressor successfully? is there a switch setting on the crio we need to change?
__________________
http://www.team1912.com

2013, 2012, 2011, 2010 Regional Chairman's Award, Bayou Regional
2013 Woodie Flower's Award, Bayou Regional
2012 Dean's List Winner (Rachel Holladay)
2015, 2014, 2013, 2012, 2011, 2010 Beta Test Labview/Hardware
2012, 2011 Best Website, Bayou Regional
2011, 2009, 2006 Gracious Professionalism
2007 Bayou Regional Winner
Reply With Quote
  #2   Spotlight this post!  
Unread 15-02-2012, 08:50
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Compressor and 2-can

Try moving any of the compressor code out of the drive code. The compressor only needs initialized once and it controls itself. It sounds like you might be initializing it over and over again and keeping your drive code from getting valeus fast enough.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2012, 09:14
Wendy Holladay's Avatar
Wendy Holladay Wendy Holladay is offline
Registered User
FRC #1912 (Team Combustion)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Slidell, la
Posts: 183
Wendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond repute
Re: Compressor and 2-can

there is no compressor code in teleop. the compressor is only initialized in begin and then enabled in periodic tasks. drive code is only in begin and teleop
__________________
http://www.team1912.com

2013, 2012, 2011, 2010 Regional Chairman's Award, Bayou Regional
2013 Woodie Flower's Award, Bayou Regional
2012 Dean's List Winner (Rachel Holladay)
2015, 2014, 2013, 2012, 2011, 2010 Beta Test Labview/Hardware
2012, 2011 Best Website, Bayou Regional
2011, 2009, 2006 Gracious Professionalism
2007 Bayou Regional Winner
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2012, 09:28
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Compressor and 2-can

Try enabling it in the begin also. Enabling it over and over again might be causing an issue.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2012, 09:37
Wendy Holladay's Avatar
Wendy Holladay Wendy Holladay is offline
Registered User
FRC #1912 (Team Combustion)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Slidell, la
Posts: 183
Wendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond repute
Re: Compressor and 2-can

we open the refnums for drive and compressor in begin.

we enable the code block in periodic tasks, that is not in a loop, compressor control runs on its own all the time, no loop needed.

the drive is in teleop and that is also not in a loop.

has your team run 2-can drive with the compressor running?
__________________
http://www.team1912.com

2013, 2012, 2011, 2010 Regional Chairman's Award, Bayou Regional
2013 Woodie Flower's Award, Bayou Regional
2012 Dean's List Winner (Rachel Holladay)
2015, 2014, 2013, 2012, 2011, 2010 Beta Test Labview/Hardware
2012, 2011 Best Website, Bayou Regional
2011, 2009, 2006 Gracious Professionalism
2007 Bayou Regional Winner
Reply With Quote
  #6   Spotlight this post!  
Unread 15-02-2012, 09:41
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Compressor and 2-can

Yes we have, on last year's robot with no problems. The process you have seems to be correct from a code prospect. The only difference is that we usually just enable the compressor in the begin.vi, the compressor still won't start until the robot gets enabled.
Reply With Quote
  #7   Spotlight this post!  
Unread 15-02-2012, 09:59
Wendy Holladay's Avatar
Wendy Holladay Wendy Holladay is offline
Registered User
FRC #1912 (Team Combustion)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Slidell, la
Posts: 183
Wendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond reputeWendy Holladay has a reputation beyond repute
Re: Compressor and 2-can

http://www.chiefdelphi.com/forums/sh...d.php?t=100400

we using the code as it is posted by mark mcleod in post #9 of the thread posted there.

in begin we are calling open, start, and setting the ref num.

then in periodic tasks we are enabling the block of code that FIRST has disabled that calls ref num and the compressor control. this control loop is new from NI this year. have you used this piece of code successfully?
__________________
http://www.team1912.com

2013, 2012, 2011, 2010 Regional Chairman's Award, Bayou Regional
2013 Woodie Flower's Award, Bayou Regional
2012 Dean's List Winner (Rachel Holladay)
2015, 2014, 2013, 2012, 2011, 2010 Beta Test Labview/Hardware
2012, 2011 Best Website, Bayou Regional
2011, 2009, 2006 Gracious Professionalism
2007 Bayou Regional Winner
Reply With Quote
  #8   Spotlight this post!  
Unread 15-02-2012, 10:02
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,722
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Compressor and 2-can

Unfortunately we are programming in Java this year, so I have not looked at the new framework that NI has.
Reply With Quote
  #9   Spotlight this post!  
Unread 20-02-2012, 18:13
mjcoss mjcoss is offline
Registered User
FRC #0303
 
Join Date: Jan 2009
Location: Bridgewater,NJ
Posts: 70
mjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the roughmjcoss is a jewel in the rough
Re: Compressor and 2-can

We have successfully run the compressor & the 2CAN at the same time on this years and last years robot. Unfortunately, we use C++, and not LabVIEW. I can't think of any reason why the 2 devices would be interacting. We did have an issue during autonomous on last year's robot, but that seemed to be related to trying to run all the motors on our robot at the same time as well as having the compressing kick on (had a slow leak in the pneumatics system) at the start of autonomous. This appeared to cause a brown out of Jags and/or the 2CAN and by adding a voltage ramp to the drive motor configuration the issue seemed to go away. I don't think that is your problem. I've seen similar weird behavior from the compressor if it was reinitialized every time in teleop periodic, but if you're using a reference to it, that shouldn't be the case.

Not much help other than to let you know that it can work properly.

---Michael J Coss

Quote:
Originally Posted by Wendy Holladay View Post
after many, many hours of chasing what seems like wiring problems, we believe we have identified a problem with the compressor while running 2-can. we can work the compressor just fine without drive code, and can run our Jaguars off 2-can without the compressor. to get the compressor going, we enabled the disable code block in periodic tasks.

when we have both, the compressor's behavior is erratic. sometimes it works, sometimes is runs for about 1 execution cycle and sometimes it doesn't run at all. we are getting errors on the driver's station saying something like robot drive loop not getting inputs, etc, something that makes me think either the compressor or the 2-can is using all the processor.

we have changed out cables, side cars, crio modules, spikes, just about everything.

we are using the 2-can module purchased from cross the road electronics.

has anyone else seem this? is anyone running 2-can and the compressor successfully? is there a switch setting on the crio we need to change?
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


All times are GMT -5. The time now is 17:51.

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