Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Windriver deploying code issue (http://www.chiefdelphi.com/forums/showthread.php?t=102581)

agentace 11-02-2012 17:49

Windriver deploying code issue
 
This is my first year using Windriver on our robot. We are having issues deploying code. We can deploy the code and reboot without any problems, and the driver station sees code, but it will not do anything. I have tried both the simple and iterative robot examples and the Jaguars do not change color when we move the joysticks. I also tried the Driver Station LCD text example, but it does not work either. The cRIO is imaged to the v43 image. I appreciate any help.

Supernovapsy 11-02-2012 18:19

Re: Windriver deploying code issue
 
Yeah, this is strange. You are giving the jaguars commands without them responding. The only thing I can think of are the port numbers. Are you sure the ports for the jaguars correspond with the ones given in the code?

agentace 11-02-2012 18:27

Re: Windriver deploying code issue
 
The PWM ports are correct in the code, but I am running the default example code. We are also using the older cRIO (8 slots). Is it possible that it is looking at the wrong card and not reading the digital sidecar? If it is, where do I change the card slot? Sorry, I am new to C++...

Supernovapsy 11-02-2012 18:34

Re: Windriver deploying code issue
 
I don't think there is any problems with the default example code; however, the fact that you're using the 8-slot might be the problem. I can think of two fixes:

1. Quick fix
When a jaguar is declared, there is the option of putting in the module number for it. The module number should go from 1-8 on the cRIO. When you're declaring the jaguar objects, try doing this: Jaguar blah(module number, port number).

2. The other way is to change the cRIO to the 4-slot one, which is the new one. The reason I think you might have to do this is because the image might only be designed for the 4-slot (I'm not sure about this).

Zero_Viscosity 11-02-2012 19:13

Re: Windriver deploying code issue
 
I was having a similar issue earlier. I ended up having to rearrange the cards in the cRIO. You can tell if they are in the wrong slot by going to the imaging tool, and looking a the cRIO diagram. If anything is red, change the slot.

Alan Anderson 12-02-2012 11:19

Re: Windriver deploying code issue
 
Quote:

Originally Posted by agentace (Post 1124522)
The PWM ports are correct in the code, but I am running the default example code. We are also using the older cRIO (8 slots). Is it possible that it is looking at the wrong card and not reading the digital sidecar? If it is, where do I change the card slot? Sorry, I am new to C++...

Slot 1 must contain an NI 9201 analog module.
Slot 2 must contain an NI 9403 digital module.
Slot 3 may contain an NI 9472 solenoid module.
Slot 4 is empty.
Slot 5 may contain a second analog module.
Slot 6 may contain a second digital module.
Slot 7 may contain a second solenoid module.
Slot 8 is empty.

Also keep in mind that the first module of each kind (in slots 1-3) is always called "Module 1" in the code, and the second module of each kind is called "Module 2".

agentace 12-02-2012 12:51

Re: Windriver deploying code issue
 
Quote:

Originally Posted by Alan Anderson (Post 1124923)
Slot 1 must contain an NI 9201 analog module.
Slot 2 must contain an NI 9403 digital module.
Slot 3 may contain an NI 9472 solenoid module.
Slot 4 is empty.
Slot 5 may contain a second analog module.
Slot 6 may contain a second digital module.
Slot 7 may contain a second solenoid module.
Slot 8 is empty.

Also keep in mind that the first module of each kind (in slots 1-3) is always called "Module 1" in the code, and the second module of each kind is called "Module 2".

Thank you! That fixed everything. I was so used to the Digital Card being in slot 4, I guess it makes sense that they changed it.


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

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