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.

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 and a button will appear on the SmartDashboard.

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