Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Solenoid Programming Help (http://www.chiefdelphi.com/forums/showthread.php?t=113902)

RoboCat2005 18-02-2013 21:12

Solenoid Programming Help
 
Alright I have looked all through the threads and find where this problem has come up, and that it all gets solved in the code but no specifics on the fix.

Our situation is that the NI-9472 solenoid, in either slot 3 or 7 of the 8 slot cRio, none of the lights come on and when the code is ran an error code of solenoid module is not present.

We are using Java, We think the code is not right and are pretty sure we just dont have it wrote properly. Can anyone help us. This is our last thing we need to test before bagging. Thanks for any and all help.

kylelanman 19-02-2013 12:54

Re: Solenoid Programming Help
 
You may be aware of this but the module number you feed in is relative to the number of Solenoid cards you have. It is not the slot number. We ran into this issue. We had a second Solenoid card in slot 4 and were getting the error. When trying to create a solenoid like this.

Code:

new Solenoid(4, 1);
In reality we had to use.

Code:

new Solenoid(2, 1);
*Note I don't have the code in front of me. It is possible the number is 0 based in which case it would 1 not 2.

Hope this helps.

Iaquinto.Joe 19-02-2013 14:38

Re: Solenoid Programming Help
 
Have you tried reimaging your crio?

jesusrambo 19-02-2013 14:56

Re: Solenoid Programming Help
 
Quote:

Originally Posted by kylelanman (Post 1236350)
*snip*

*Note I don't have the code in front of me. It is possible the number is 0 based in which case it would 1 not 2.

Hope this helps.

You're correct, it indexes at 1. The second solenoid module is 2.


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

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