Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   0 = 1, but 1 = 1 as well? (http://www.chiefdelphi.com/forums/showthread.php?t=83645)

Egg 3141592654 26-02-2010 12:56

0 = 1, but 1 = 1 as well?
 
1 Attachment(s)
so a day before the robot shipped i went to do a final diagnostic on the robot to make sure that everything that was plugged in worked. Our team has 3 solenoids labeled in labview 1, 2, 3 respectively (see picture if needed). I know that 1 = 0 and 2 = 1 etc. however, lately 1 would trigger 1 on the cRio (not 0), and 2 would trigger 2 (not 1). I have neither an idea on what to do, nor an idea of how to fix this.

PS, when debugging, does light on = true or false? I assume that on = true.

Alan Anderson 26-02-2010 14:25

Re: 0 = 1, but 1 = 1 as well?
 
I don't see the "0" you're talking about.

For that matter, I don't see the "1" or "2" or "3" -- your solenoids are registered with the names "S1" and "S2" and "S3". Can you ask your question with details that match the code you're using? It would also help to see the part of the code that isn't doing what you want it to.

I don't know what debugging light you are talking about either.

kavisiegel 26-02-2010 15:22

Re: 0 = 1, but 1 = 1 as well?
 
Quote:

Originally Posted by Egg 3141592654 (Post 928957)
so a day before the robot shipped i went to do a final diagnostic on the robot to make sure that everything that was plugged in worked. Our team has 3 solenoids labeled in labview 1, 2, 3 respectively (see picture if needed). I know that 1 = 0 and 2 = 1 etc. however, lately 1 would trigger 1 on the cRio (not 0), and 2 would trigger 2 (not 1). I have neither an idea on what to do, nor an idea of how to fix this.

PS, when debugging, does light on = true or false? I assume that on = true.

There shouldn't be a solenoid zero. The solenoid numbers in LabVIEW are directly allocated to the labeled slots in the cRIO Pneumatics Bumper.. which is 1-8.

Most of the time, counting starts at zero, but in this specific case... one is one, and two is two... etc.

Also, yes, true means it's on or open.

Egg 3141592654 26-02-2010 15:55

Re: 0 = 1, but 1 = 1 as well?
 
O.K., 1 = 1 in this case. Thank You


All times are GMT -5. The time now is 04:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi