Thread: Java Help
View Single Post
  #4   Spotlight this post!  
Unread 10-01-2012, 20:15
BradenWatling BradenWatling is offline
Registered User
no team
 
Join Date: Mar 2011
Rookie Year: 2009
Location: Toronto, ON
Posts: 8
BradenWatling is an unknown quantity at this point
Re: Java Help

We are having a similar issue: we are unable to get inputs or set outputs through the cRIO. However, we are not getting the "Digital module 1 is not present" error message. You can use code like the following to detect module presence:

Code:
            for(int i = 0; i < 2; ++i) {
                System.out.println("digital module " + i + ": " + ModulePresence.getModulePresence(ModulePresence.ModuleType.kDigital, i));
                System.out.println("analog module " + i + ": " + ModulePresence.getModulePresence(ModulePresence.ModuleType.kAnalog, i));
                System.out.println("solenoid module " + i + ": " + ModulePresence.getModulePresence(ModulePresence.ModuleType.kSolenoid, i));
            }
We *are* seeing this error message as well:
[cRIO] DIO LoopTiming: 260, expecting: 261
[cRIO] DIO LoopTiming: 260, expecting: 261
Reply With Quote