Go to Post You mean i can do something with the Kinect other than put large dents in wall with a robot? Rad.. - rachelholladay [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2012, 10:42
Peragore's Avatar
Peragore Peragore is offline
CEO of Black Magic
AKA: Philip Mulford
FRC #3373 (Team Robohawk)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: US
Posts: 50
Peragore is an unknown quantity at this point
cRIO Reading wrong ports

We're having a problem coding in WindRiver. All of our Relays are functional when we assign them to the first module, but do not function when assigned to the second module. We have the digital sidecar (with relays) plugged into module 2. Why is this happening? We could probably go through and assign the different relays ports until we got it right, but we'd like a good reason why this is happening, or a way to fix it without guess work.
Thanks for your help,

Team 3373
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;
  #2   Spotlight this post!  
Unread 05-02-2012, 12:16
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 992
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: cRIO Reading wrong ports

I'm a little confused about what you are seeing.

1) If you assign the relays to module 1 and the Digital Sidecar is in slot 2, everything works. That is the correct behavior.
2) If you assign the relays to module 2, they don't work.
a) Are you running a 4-slot or 8-slot cRIO?
b) If a 4-slot is your 2nd Digital Module in slot 4? If an 8-slot is your 2nd digital module in slot 6?

I think what is going on is you are confused about the new way of addressing the modules. The modules are no longer addressed by slot number, they are addressed by type. Analog module 1 is in Slot 1, Digital Module 1 is in Slot 2 and Solenoid Module 1 is in Slot 3.
  #3   Spotlight this post!  
Unread 05-02-2012, 13:58
Peragore's Avatar
Peragore Peragore is offline
CEO of Black Magic
AKA: Philip Mulford
FRC #3373 (Team Robohawk)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: US
Posts: 50
Peragore is an unknown quantity at this point
Re: cRIO Reading wrong ports

Thanks! What we figured out was that the jaguars and servo's go to different modules even though they both on the digital sidecar, which we assumed would make both two.

So as you said, it was a little bit of confusion over the new way of adressing modules.
__________________


Code:
 
while (life){
  frcObsession = true;
  obs.ProgramAndObsess();
}
if (!life) life = true;
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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