Go to Post Leadership is demonstrated by initiative, examples, and spirit. Decisions are made by those who show up. The world is whatever you make of it. - Ken Leung [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 16-02-2011, 13:58
wdell wdell is offline
Registered User
AKA: William Dell
FRC #3999 (Shadetree Mechanics)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Killeen, Texas
Posts: 55
wdell has a spectacular aura aboutwdell has a spectacular aura about
Re: Analog Module?

Quote:
Originally Posted by Joe Ross View Post
See <R61>.

There is no requirement that the analog breakout be connected directly to the NI 9201 module. You could purchase or make a 25 pin ribbon cable and relocate the analog breakout while keeping the 9201 module in slot 1.
In the past we've use a ribbon cable, and relocated the analog breakout into a separate plastic box to protect both the module and the connectors. However, I don't think that is what was being asked.

According to "How to Set Up Your Robot Control System", the cRio can be set up with 9201 (analog) modules in slots one and two, 9403 (digital) modules in slots 4 and 6, and a 9472 (solenoid) module in slot 8. The document also says you have to attach the analog breakout to the module in slot one. From what I can see this is not exactly true.

Example: To create a new gyro you would normally do
Code:
Gyro spin = new Gyro(1);
Where "1" is the analog channel, the first analog pin on the analog breakout. But you can also do
Code:
Gyro spin = new Gyro(2,1);
where 2 is the second cRio slot, and 1 is the 1st channel/pin on that slot.

To me this kind of implies you can move all your analog stuff to slot two, digital stuff to six, etc.

Haven't tried it myself (we don't even have a robot yet... don't ask), but might be worth looking into.
Reply With Quote
 


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 11:34.

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