Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Java to Labview (http://www.chiefdelphi.com/forums/showthread.php?t=104343)

questionsigotem 07-03-2012 20:18

Java to Labview
 
I've never worked with labview before. What we are trying to do is, check to see if a button is pressed to drive on its own. (we created a new dashboard) Since we are using java is do we need to add something in our code to transfer the data to the driverstation and then send it back? Thanks for your help.

Brian Selle 08-03-2012 10:51

Re: Java to Labview
 
If you want your robot to respond to a button pushed on the dashboard... this is easy to do with the SmartDashboard in Java. For the Command based robot template put the code below in OI.java and a button will appear on the SmartDashboard.

InternalButton cameraLight = new InternalButton();
cameraLight.whenReleased(new CameraLightToggle());
SmartDashboard.putData("Camera Light Toggle", cameraLight);


All times are GMT -5. The time now is 09:48.

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