

Make sure to Save then re-run or deploy the program after making changes. If you need to create the constants, hover over the terminals of the icon to find the appropriate terminals then right-click and select Create->Constant from the menu. In the existing template their may be constants already wired up and labeled for you, simply click on the constant to change from True to False or False to True.

Motors are inverted using a boolean constant wired in to the appropriate terminal on the Robot Drive Open in Begin.VI. If you have 4 motors and one side of the drive appears to not move at all when commanded the motors may be fighting each other, try inverting one of the two motors and observing if that side of the drive now moves when commanded. If you have 4 motors in your Robot Drive and one side drives the wrong way, invert both motors on that side. If you have 2 motors in the Robot Drive, invert the side of the robot that moves in the wrong direction. If pushing the joystick directly away from you results in anything other than the robot driving forward, one or more motors needs to be inverted.
#FIRST ROBOTICS LABVIEW 2014 CODE#
To deploy a program to run every time the cRIO starts follow the next step, Deploying the program.ĭepending on the wiring and construction of your robot, it is possible that you will need to invert the direction of one or motors in your code in order to have all motors spinning the correct direction. Note that a program deployed in this manner will not remain on the cRIO after a power cycle. When you deploy a program with the Run button, the program runs on the cRIO, but you can manipulate the front panel objects of the program from the host computer.
#FIRST ROBOTICS LABVIEW 2014 DRIVER#
