View Single Post
  #1   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