Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Help with WindRiver pneumatics code (http://www.chiefdelphi.com/forums/showthread.php?t=91949)

byteit101 23-03-2011 15:18

Re: Help with WindRiver pneumatics code
 
Quote:

Originally Posted by mutantblond (Post 1043874)
we're initializing s1(8,1), s1(8,2). i'm still puzzled about how this works when we've got the solenoid valves connected to pins 7 and 8.

the constructor takes two arguments, (modulePort, breakoutPort)
modulePort is the number of the module in the crio's 8 bays. It should be 8.
breakoutPort is the pin number on the breakout board on the module. It should be 7 and 8 according to what I think you are saying.

If you want to wire to 7 and 8, use s1(8,7), s1(8,8)
if you want to use s1(8,1), s1(8,2), wire to breakout pins 1 and 2


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

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