View Single Post
  #2   Spotlight this post!  
Unread 06-02-2011, 23:09
kinganu123 kinganu123 is offline
Registered User
FRC #1747
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Piscataway, NJ
Posts: 243
kinganu123 is on a distinguished road
Re: Reading input from NetConsole

Not sure how you'd send it to the cRIO, but in order to read input from the keyboard, you'd do the following
Code:
import java.util.Scanner;
main{
Scanner scn = new Scanner(System.in);
System.out.println("Enter command:");
string command = scn.nextLine();//or it might be scn.nextString()
//Send command to cRIO
}
__________________
Reply With Quote