Uploaded by Diego Alvarez

Class #10 Homework - modified

advertisement
Class #10 Homework
Lecture:
- Re-entrant execution
o Re-entrant VIs.pdf
- Diagram Disable structure
- Hand out joystick controller(s)
Homework:
(1) Create a robot project replicating the exact “Tank No Joystick” robot program that’s
described in the video “FRC LabVIEW Robot Simulator Tutorial” from the last class. Note
that you should start developing your code from the basic simulator code provided in class.
Verify that your program runs as-expected. Note that you should use the following
sequence to launch the simulator properly:
a. Launch the FRC Driver Station
b. Launch LabVIEW and load the simulator project. From the project screen, open the
“Robot Main.vi” which is located under the Target folder. At the very bottom of the
front panel, right click on target area and select My Computer as the new target (ie.,
your PC is now the target instead of the RoboRIO). Wait for the simulator code to
load.
c. Click on the run arrow at the top left of the front panel in order to launch the
simulator.
d. On the left side of the Dashboard screen, select “Camera” from the drop-down
menu.
e. On the left side of the Driver Station screen, press the “Enable” button for Teleop.
(2) When you’re done using the simulator, click on “Close” at the bottom right corner of the
simulator screen. Prior to restarting the simulator each time, you MUST close the driver’s
station. Also, DO NOT SAVE any of your robot software when closing the software since the
modifications made by LabVIEW when you changed the target from to the PC must NOT be
saved along with your original program. In addition, you must exit LabVIEW and re-launch
it again.
(3) Bring your physical joystick controller to class next week.
1
Download