Go to Post the rookies come up with amazing stuff (I have seen it happening), they amaze me at times. - Arefin Bari [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 01-02-2014, 17:04
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Weird behavior in our code

We are having problems getting our pressure switch for the compressor working. Here's what's happening:

- When the robot is disabled and the code is deployed, I can see the pressure switch state by an indicator in Periodic Tasks.vi.
- When the robot is enabled, the state goes false, not changing no matter what the pressure switch reads.

It's like the robot just does not want to read the inputs we have in DIO on the sidecar while the robot is enabled.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2014, 22:43
Invictus3593's Avatar
Invictus3593 Invictus3593 is offline
time you like wasting is not wasted
FRC #3593 (Team Invictus)
Team Role: Leadership
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Tulsa, OK
Posts: 318
Invictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really niceInvictus3593 is just really nice
Re: Weird behavior in our code

Can you post a picture of the code you are running? This can help us better identify the problem!
__________________
Per Audacia Ad Astra
Reply With Quote
  #3   Spotlight this post!  
Unread 02-02-2014, 00:31
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: Weird behavior in our code

False on a DIO means the signal is being pulled low. A properly wired pressure switch will do that when the pressure is too low and it is calling for the compressor to run.

What do you see the indicator doing when you completely disconnect the pressure switch? If it still says the switch state is false, there's something very wrong. Either the hardware (or the cRIO image) is faulty, or your code isn't reading the input properly.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2014, 01:55
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: Weird behavior in our code

If you remove the DB-37 cable from the digital sidecar, are all three power LEDs brightly lit?
Reply With Quote
  #5   Spotlight this post!  
Unread 03-02-2014, 13:44
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Weird behavior in our code

Quote:
Originally Posted by Invictus3593 View Post
Can you post a picture of the code you are running? This can help us better identify the problem!
It is the example compressor code. I'm opening the Compressor in DIO 1 and Relay 1, and setting the RefNum to Compressor. In Periodic Tasks, I am doing a RefNum Get (Compressor) and feeding that into the Compressor Control Loop.

Quote:
Originally Posted by Alan Anderson
False on a DIO means the signal is being pulled low. A properly wired pressure switch will do that when the pressure is too low and it is calling for the compressor to run.

What do you see the indicator doing when you completely disconnect the pressure switch? If it still says the switch state is false, there's something very wrong. Either the hardware (or the cRIO image) is faulty, or your code isn't reading the input properly.
I'll check that today. I'll get back to you later.

Quote:
Originally Posted by Joe Ross
If you remove the DB-37 cable from the digital sidecar, are all three power LEDs brightly lit?
BATT doesn't come on. 5V and 6V is on, though.
This is our 3rd Digital Sidecar. I highly doubt all 3 are bad. The new one we got in the KOP was bad because 6V wouldn't come on. We know we are supplying 6V because it showed up on 2 other Sidecars and we checked it with a multimeter.
Reply With Quote
  #6   Spotlight this post!  
Unread 03-02-2014, 13:57
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: Weird behavior in our code

Quote:
Originally Posted by Landonh12 View Post
BATT doesn't come on. 5V and 6V is on, though.
So you have the Sidecar wired to the power distribution board at a pair of the 20/30a red/black wago connectors with a 20a breaker and it still isn't receiving power (no BATT LED)?
Once the sidecar is getting proper 12v power from the battery all three power LEDs will be brightly lit.
example - top DSC is with no 12v power, bottom is with 12v power

It's not going to work until you can get 12v into it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2014 at 14:06.
Reply With Quote
  #7   Spotlight this post!  
Unread 03-02-2014, 16:27
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Weird behavior in our code

Quote:
Originally Posted by Mark McLeod View Post
So you have the Sidecar wired to the power distribution board at a pair of the 20/30a red/black wago connectors with a 20a breaker and it still isn't receiving power (no BATT LED)?
Once the sidecar is getting proper 12v power from the battery all three power LEDs will be brightly lit.
example - top DSC is with no 12v power, bottom is with 12v power

It's not going to work until you can get 12v into it.
This is what we have now: http://m.imgur.com/Zo5pqK0

Looks like our electrical team wired it up in the wrong spot. It should come out of one of the 30A MAX ports with a 20A breaker, correct?
Reply With Quote
  #8   Spotlight this post!  
Unread 03-02-2014, 16:47
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Weird behavior in our code

Quote:
Originally Posted by Landonh12 View Post
Looks like our electrical team wired it up in the wrong spot. It should come out of one of the 30A MAX ports with a 20A breaker, correct?

USFIRST and ScreenstepsLive web pages have all the info you need to wire the bot properly.


USFIRST.ORG "Power Connectivity Diagram"
http://www.usfirst.org/sites/default...icalLayout.pdf

DSC Excerpt from above:
http://www.chiefdelphi.com/forums/at...7&d=1389920308



WPI ScreenstepsLive "Wiring the 2014 FRC Control System"
http://wpilib.screenstepslive.com/s/...control-system

DSC excerpt from above:
http://www.chiefdelphi.com/forums/at...d=13914640 67



USFIRST.ORG "Data Connectivity Diagram"
http://www.usfirst.org/sites/default...gnalLayout.pdf


Attached Thumbnails
Click image for larger version

Name:	DSC power 2.jpg
Views:	15
Size:	56.1 KB
ID:	16082  

Last edited by Ether : 03-02-2014 at 17:05. Reason: added links
Reply With Quote
  #9   Spotlight this post!  
Unread 03-02-2014, 17: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: Weird behavior in our code

Quote:
Originally Posted by Landonh12 View Post
It should come out of one of the 30A MAX ports with a 20A breaker, correct?
Correct.
You can see that on Ether's first DSC link.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2014 at 17:30.
Reply With Quote
  #10   Spotlight this post!  
Unread 03-02-2014, 19:49
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: Weird behavior in our code

Please let us know if that fixes the issue.
Reply With Quote
  #11   Spotlight this post!  
Unread 04-02-2014, 07:58
Landonh12's Avatar
Landonh12 Landonh12 is offline
270 points
AKA: Landon Haugh
FRC #0364 (Team Fusion)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Gulfport, MS
Posts: 211
Landonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud ofLandonh12 has much to be proud of
Re: Weird behavior in our code

Quote:
Originally Posted by Joe Ross View Post
Please let us know if that fixes the issue.
Yep, that fixed it. Thanks for the help!
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 21:00.

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