LabVIEW For FRC Rio Programming


SettingsSettingsSettings
LabVIEW For FRC Rio Programming - Quiz


When you pass this quiz, you'll earn a LabVIEW For FRC RIO Programming badge.
In order to pass, you must score 85%. You may take as much time as you need, and feel free to use LabVIEW or other resources to help you answer the questions.
Please enter your information below so that we can issue the badge when you pass.


Questions and Answers
  • 1. 

    You modified the Robot Project and ran the Robot Main VI. Everything worked as expected. How do you set up the code to run automatically when your robot powers on?

    • A.

      Right click the build specification in the project and click Run as Startup

    • B.

      Save your robot project with the roboRIO connected

    • C.

      Copy your LabVIEW project files to the roboRIO using Windows Explorer

    • D.

      Select your LabVIEW project in the roboRIO Imaging Utility and click Apply

    Correct Answer
    A. Right click the build specification in the project and click Run as Startup
  • 2. 

    Which operation or sequence of operations makes your robot ready for match-play on an official field?  

    • A.

      Build and then Run as startup

    • B.

      Deploy

    • C.

      Clean, Build, and then Explore

    • D.

      Unset as startup, and then Deploy

    Correct Answer
    A. Build and then Run as startup
  • 3. 

    LabVIEW is used widely in nearly every science and engineering industry across the globe. What are some examples of industries that use LabVIEW? (Select all that apply.)

    • A.

      Automotive and Energy

    • B.

      Military/Defense and Aerospace

    • C.

      Scientific Research and Medical Research

    • D.

      Robotics and Manufacturing

    Correct Answer(s)
    A. Automotive and Energy
    B. Military/Defense and Aerospace
    C. Scientific Research and Medical Research
    D. Robotics and Manufacturing
  • 4. 

    Engineers, scientists, and researchers are doing some truly amazing things with LabVIEW. Which of the following are examples of applications that are using LabVIEW? (SELECT ALL THAT APPLY.)

    • A.

      Developing the world's first functional prototype of a semiautonomous blind driver vehicle

    • B.

      Developing an engine simulator test system to enhance the performance of gas turbine engine controllers

    • C.

      Intercepting misguided and unstable particle beams in the world's most powerful particle accelerator

    • D.

      Controlling and monitoring astronauts' heart rate monitors on the International Space Station

    Correct Answer(s)
    A. Developing the world's first functional prototype of a semiautonomous blind driver vehicle
    B. Developing an engine simulator test system to enhance the performance of gas turbine engine controllers
    C. Intercepting misguided and unstable particle beams in the world's most powerful particle accelerator
    D. Controlling and monitoring astronauts' heart rate monitors on the International Space Station
  • 5. 

    You've deployed code to your robot, but the robot is not responding to the joystick controls the way you expected. The recommended first step to debugging your LabVIEW code is to:

    • A.

      Add probes and/or breakpoints and press the run arrow on Robot Main.vi.

    • B.

      Add print statements and launch a console terminal to view them while running Teleop.vi.

    • C.

      Write to a spreadsheet file during Finish.vi to examine the data.

    • D.

      Delete the code and rewrite it.

    Correct Answer
    A. Add probes and/or breakpoints and press the run arrow on Robot Main.vi.
  • 6. 

    You want your robot to use values from a gyroscope. You are unfamiliar with the gyroscope VIs and would like to see an example of how they should be used. Where can you find such an example within the LabVIEW environment?

    • A.

      Search Find Examples under the Help menu or Find FRC Examples in the Support tab of the FRC Getting Started window

    • B.

      Open the context help for any gyroscrope VI and click the example link

    • C.

      Right click any gyroscope VI on the Block Diagram and select "show example"

    • D.

      Search the WPI Robotics Library function palette for examples

    Correct Answer
    A. Search Find Examples under the Help menu or Find FRC Examples in the Support tab of the FRC Getting Started window
  • 7. 

    You have successfully connected via USB to run and verify one of the sensor examples. What is the best way to integrate it as part of Teleop within the general robot framework?  

    • A.

      Open and store the sensor refnum in Begin.vi. Read the sensor in Teleop.vi. Close the refnum in Finish.vi.

    • B.

      Copy and paste the example code into Robot Main.vi. Store the sensor distance settings in Robot Global Data.vi. Close the refnum in Finish.vi.

    • C.

      Copy and paste the example code into Teleop.vi. Store the sensor distance settings in Robot Global Data.vi. Close the refnum in Finish.vi.

    • D.

      Open and store the sensor refnum in Begin.vi. Read the sensor in Robot Main.vi. Close the refnum in Finish.vi.

    Correct Answer
    A. Open and store the sensor refnum in Begin.vi. Read the sensor in Teleop.vi. Close the refnum in Finish.vi.
  • 8. 

    Engineers, scientists, and researchers are doing some truly amazing things with LabVIEW. Which of the following are examples of applications that are using LabVIEW? (SELECT ALL THAT APPLY.)

    • A.

      Developing and prototyping bearingless magnetic-levitation blood pumps for life support

    • B.

      Developing interplanetary robotics systems, including a ground-based demonstrator arm for the Mars rovers

    • C.

      Providing high-quality data processing in cutting edge flight test engineering education

    • D.

      Creating a cluster of autonomous robots that can simulate satellite dynamics in space

    Correct Answer(s)
    A. Developing and prototyping bearingless magnetic-levitation blood pumps for life support
    B. Developing interplanetary robotics systems, including a ground-based demonstrator arm for the Mars rovers
    C. Providing high-quality data processing in cutting edge flight test engineering education
    D. Creating a cluster of autonomous robots that can simulate satellite dynamics in space
  • 9. 

    How do you create a new FRC roboRIO Project in LabVIEW?

    • A.

      Click FRC roboRIO Project in the Getting Started Window's "Projects" tab

    • B.

      Click File and then select Create Project

    • C.

      Open the FRC roboRIO Project in the NI Example Finder

    • D.

      Download the sample project from ni.com/frc

    Correct Answer
    A. Click FRC roboRIO Project in the Getting Started Window's "Projects" tab
  • 10. 

    What VI should you modify to easily pass values or other information between VIs within the roboRIO robot project?

    • A.

      Robot Global Data.vi

    • B.

      Teleop.vi

    • C.

      Robot Main.vi

    • D.

      Periodic Tasks.vi

    Correct Answer
    A. Robot Global Data.vi
  • 11. 

    Which of the following VIs can safely contain multiple, parallel, infinite loops?

    • A.

      Periodic Tasks.vi

    • B.

      Autonomous Independent.vi

    • C.

      Teleop.vi

    • D.

      Begin.vi

    Correct Answer
    A. Periodic Tasks.vi
  • 12. 

    If you accidentally break some functionality in your code, you may want to use a previous version of your code that works. How can you save changes to the robot project and preserve the previous version?

    • A.

      Click File >> Save As >> Duplicate .lvproj file and contents

    • B.

      Click File >> Save for Previous Version

    • C.

      Click File >> Save Project

    • D.

      Click File >> Save as >> Rename

    Correct Answer
    A. Click File >> Save As >> Duplicate .lvproj file and contents
  • 13. 

    What files do you need to include when copying or moving the robot project on disk?

    • A.

      .lvproj and .vi files

    • B.

      .lvproj file

    • C.

      .lvproj, .vi, and .dll files

    • D.

      .lvproj file and vi.lib folder

    Correct Answer
    A. .lvproj and .vi files
  • 14. 

    What would you look for in the teleop code if your robot is repeating the same action and not responding to your input?

    • A.

      A loop that is blocking execution

    • B.

      A While loop with a value wired directly across the loop

    • C.

      A case structure with more than three cases

    • D.

      A For loop with an unwired Iteration Count terminal

    Correct Answer
    A. A loop that is blocking execution
  • 15. 

    You want to edit the Teleop.vi. Where should you open this VI from in order to edit it?

    • A.

      Project Explorer window

    • B.

      Windows Explorer folder

    • C.

      Your desktop

    • D.

      USB drive

    Correct Answer
    A. Project Explorer window
  • 16. 

    You accidentally typed your team number wrong while setting up your roboRIO robot project. What effect will this have on your project?

    • A.

      Your project will be pointing at the wrong target.

    • B.

      You will have to create a new roboRIO project.

    • C.

      Nothing. The team number is configured in Robot Main.

    • D.

      It won't have any effect on your project.

    Correct Answer
    A. Your project will be pointing at the wrong target.
  • 17. 

    You accidentally typed your team number incorrectly while configuring your roboRIO robot project. How would you correct the team number? Within the Project Explorer window, right-click on:

    • A.

      Target, and select 'Properties'

    • B.

      Robot Main.vi, and select 'Properties'

    • C.

      My Computer, and select 'Properties'

    • D.

      Build Specifications, and select 'Build All'

    Correct Answer
    A. Target, and select 'Properties'
  • 18. 

    Which VI should read the joystick values as the driver controls the robot?

    • A.

      Teleop.vi

    • B.

      Independent Autonomous.vi

    • C.

      Begin.vi

    • D.

      Finish.vi

    Correct Answer
    A. Teleop.vi
  • 19. 

    Your robot has hardware that must be properly shut down for safety. In which VI does this shutdown procedure belong?

    • A.

      Finish.vi

    • B.

      Begin.vi

    • C.

      Teleop.vi

    • D.

      Emergency Stop.vi

    Correct Answer
    A. Finish.vi
  • 20. 

    Your robot needs to move forward for three feet on its own in the first 15 seconds of a match. Which VI does this code belong in?

    • A.

      Autonomous Independent.VI

    • B.

      Teleop.VI

    • C.

      Begin.VI

    • D.

      Finish.VI

    Correct Answer
    A. Autonomous Independent.VI
  • 21. 

    You make some edits to your robot code and build it into an executable. How do you ensure this executable runs on the robot? You right-click FRC Robot Boot-up Deployment and select:

    • A.

      Run as startup

    • B.

      Deploy

    • C.

      Duplicate

    • D.

      Explore

    Correct Answer
    A. Run as startup
  • 22. 

    You update your robot project, run it interactively by clicking the Run Arrow in Robot Main.vi, and then reboot the roboRIO. Which code runs?

    • A.

      The code that was last set to "Run as startup" when deployed to the roboRIO

    • B.

      The latest version of code on your computer saved as a Robot Project

    • C.

      The code that was last run interactively from your computer

    • D.

      No code runs; all code is removed from the roboRIO when it is rebooted.

    Correct Answer
    A. The code that was last set to "Run as startup" when deployed to the roboRIO
  • 23. 

    You attempt to build your robot project, but you receive an error saying the Vision Development Module is not activated. Where should you enter your activation code to resolve this error?

    • A.

      NI License Manager

    • B.

      RoboRIO Imaging Tool

    • C.

      LabVIEW Settings

    • D.

      FRC Driver Station

    Correct Answer
    A. NI License Manager
  • 24. 

    How do you link a control or indicator to a terminal on the connector pane?

    • A.

      Select the terminal of the connector pane, then select the control or indicator.

    • B.

      Select the control or indicator, then select the terminal on the connector pane.

    • C.

      Right-click on the control or indicator and select "Add to Connector Pane"

    • D.

      Click and drag the control or indicator to the terminal of the connector pane.

    Correct Answer
    A. Select the terminal of the connector pane, then select the control or indicator.
  • 25. 

    What kind of input terminal to a subVI must be connected to an input in order for the VI's run arrow to be unbroken? This type of input is shown in bold below:  

    • A.

      Required input

    • B.

      Recommended input

    • C.

      Standard input

    • D.

      Defined input

    Correct Answer
    A. Required input
  • 26. 

    Which input from the following VI needs to be wired so as to not break the VI it is called from?  

    • A.

      RobotDriveDevRef

    • B.

      X axis value

    • C.

      Y axis value

    • D.

      Error in (no error)

    Correct Answer
    A. RobotDriveDevRef
  • 27. 

    You want to add another option for selection of autonomous code on the Dashboard. To do this, you need to:

    • A.

      Modify the array passed into Auto List NT Write String Array in the Begin.vi block diagram

    • B.

      Add a copy of Autonomous Independent.vi to Robot Main.vi

    • C.

      Add a case structure in the Autonomous Independent.vi block diagram

    • D.

      Modify Dashboard Options.vi with an additional control on the front panel

    Correct Answer
    A. Modify the array passed into Auto List NT Write String Array in the Begin.vi block diagram
  • 28. 

    Which of the following is the most appropriate way to save multiple versions of your project to show the order in which they were developed?

    • A.

      2018.1, 2018.2, 2018.3, 2018.4

    • B.

      10, 25, 31, 42

    • C.

      1, 2, 3, Final, Final2

    • D.

      True Robot Code, Truest Robot Code, Truest True Robot Code

    Correct Answer
    A. 2018.1, 2018.2, 2018.3, 2018.4
  • 29. 

    You want to share your Teleop.vi with a friend on another team. Their robot's motors are connected to the same PMW ports as your robot's motors. What do you need to send your friend to ensure the code runs on their robot?

    • A.

      Begin.VI, Teleop.VI, Finish.VI

    • B.

      Begin.VI, Robot Main.VI, Teleop.VI

    • C.

      Robot Main.VI, Teleop.VI

    • D.

      Teleop.VI

    Correct Answer
    A. Begin.VI, Teleop.VI, Finish.VI
  • 30. 

    What is an appropriate name for a subVI that adjusts the joystick value before it gets sent to the motor?

    • A.

      Scale_Values_Joystick.vi

    • B.

      Joystick.vi

    • C.

      SubVI1.vi

    • D.

      SubVI_for_Joystick.vi

    Correct Answer
    A. Scale_Values_Joystick.vi
  • 31. 

    Where in the Robot Project should you put any new subVIs that you create?

    • A.

      Inside the Team Code folder

    • B.

      Inside the Support Code folder

    • C.

      Under My Computer

    • D.

      Under roboRIO but outside any folders

    Correct Answer
    A. Inside the Team Code folder
  • 32. 

    What is the best file path that you should select to save your roboRIO robot project to? (In the below file paths, "..." refers to your username.)

    • A.

      C:\Users\...\Documents\LabVIEW Data\2017 Robot Project

    • B.

      C:\Users\...\Desktop\2017 Robot Project

    • C.

      C:\Users\...\2017 Robot Project

    • D.

      C:\Users\...\LabVIEW Data

    Correct Answer
    A. C:\Users\...\Documents\LabVIEW Data\2017 Robot Project
  • 33. 

    You have an omni-directional drive train on your robot. What type of default roboRIO robot project should you select?

    • A.

      Ecanum Drive with Arm

    • B.

      Arcade Drive

    • C.

      Arcade Drive with Arm

    • D.

      Omni-directional Drive

    Correct Answer
    A. Ecanum Drive with Arm
  • 34. 

    Where can you look to find instructions on setting up the roboRIO firmware?

    • A.

      LabVIEW Getting Started window > Tutorials

    • B.

      LabVIEW Help > search 'firmware'

    • C.

      LabVIEW Getting Started window > Utilities > roboRIO Imaging Tool

    • D.

      LabVIEW Help > FIRST Robotics Competition (FRC)

    Correct Answer
    A. LabVIEW Getting Started window > Tutorials
  • 35. 

    How would you represent the code below as a subVI?  

    • A.
    • B.
    • C.
    • D.

      Option 4

    Correct Answer
    A.
  • 36. 

    You add the following code to your Teleop.vi in order to control an arm with a button. What behavior will you see when you run your code?

    • A.

      The program will not run.

    • B.

      When the button is pressed, the arm motor will continuously turn at full speed.

    • C.

      The program will only read the motor value out to the arm motor once.

    • D.

      The program will get stuck in the while loop.

    Correct Answer
    A. The program will not run.
  • 37. 

    You want to maintain several versions of your Robot Project from different competition seasons. What is the best way to organize all of the code on disk?

    • A.

      Put each project with its associated VIs in a separate folder

    • B.

      Put all project files in one folder and all VIs in another folder

    • C.

      Put all project files and VIs in a single folder

    • D.

      Put each project file in an individual folder and all VIs in one folder

    Correct Answer
    A. Put each project with its associated VIs in a separate folder
  • 38. 

    You want to have multiple teammates simultaneously develop code for your robot. What is the best way to save and share code with your teammates?

    • A.

      Use Source Code Control software

    • B.

      Work from a network drive

    • C.

      Share a USB memory stick

    • D.

      Only use a single computer

    Correct Answer
    A. Use Source Code Control software
  • 39. 

    You add a loop inside your Teleop VI to run a shooter for 2 seconds. During these 2 seconds, the robot does not respond to your attempts to drive. What's the most likely reason for this behavior?

    • A.

      The joystick values are only read once per iteration. They won't be read again until the two second loop is complete.

    • B.

      Your PC is running slowly and needs more memory to run the program correctly.

    • C.

      Your motor controller has an intermittent loose connection.

    • D.

      This is an autonomous action, and your Driver Station is not set to Autonomous.

    Correct Answer
    A. The joystick values are only read once per iteration. They won't be read again until the two second loop is complete.
  • 40. 

    Which code example below will correctly display a value on the Dashboard?

    Correct Answer
    A.
  • 41. 

    What is the most efficient way to tune your robot's autonomous behavior?

    • A.

      Read a value from the Network Tables in your autonomous code, and update that value using the Dashboard.

    • B.

      Make a change to the values in Autonomous Independent.vi, and hit the Run arrow to send the code to the robot.

    • C.

      Rebuild the startup executable, and choose to Run as Startup each time you change the value.

    • D.

      Run a test to measure the diameter of your wheel and how far it traveled, and then update the value.

    Correct Answer
    A. Read a value from the Network Tables in your autonomous code, and update that value using the Dashboard.
  • 42. 

    The following code is included in the Begin VI of your Arcade Drive Robot Project by default. You edit the code to this instead: What happens if your code unexpectedly stops calling Arcade Drive.vi? Your robot will:

    • A.

      Continue moving until powered off

    • B.

      Stop moving immediately

    • C.

      Move for two seconds before stopping automatically

    • D.

      Continue moving until the computer is reconnected

    Correct Answer
    A. Continue moving until powered off
  • 43. 

    The following code runs when your robot enters autonomous mode: In what order will this code execute?

    • A.

      Arm Motor will operate in parallel with Left and Right Motors.

    • B.

      Left and Right Motors will operate first.

    • C.

      Arm Motor will operate first.

    • D.

      Variables will be sent to the dashboard first.

    Correct Answer
    A. Arm Motor will operate in parallel with Left and Right Motors.
  • 44. 

    In the following code, in which direction will your robot move if both buttons are pressed and held at the same time?

    • A.

      It is uncertain; the robot will try to turn left and right simultaneously.

    • B.

      The robot will turn left first and then right.

    • C.

      It is uncertain; the robot will try to move forward and backward simultaneously.

    • D.

      The robot will not move, and the code will give an error.

    Correct Answer
    A. It is uncertain; the robot will try to turn left and right simultaneously.
  • 45. 

    In which direction (if any) will your robot move if only Button 0 is pressed in the following code?

    • A.

      It is not certain; the robot will try to stay still and turn right simultaneously.

    • B.

      The robot will pause briefly before turning right.

    • C.

      The robot will not move, and the code will give an error.

    • D.

      It is not certain; the robot will try to move forward and backward simultaneously.

    Correct Answer
    A. It is not certain; the robot will try to stay still and turn right simultaneously.
  • 46. 

    In the following code, Joystick 0 is all the way forward and Joystick 1 is all the way in reverse. Assume the y-axis is the first axis read for each joystick. What will the robot do?

    • A.

      Spin right at full speed

    • B.

      Spin left at full speed

    • C.

      Drive forward at full speed

    • D.

      Drive reverse at full speed

    Correct Answer
    A. Spin right at full speed
  • 47. 

    You want to add a sensor to your robot and send that information back to the Driver Station. Where should you add the code to read from the sensor?

    • A.

      Periodic Tasks.vi

    • B.

      Teleop.vi

    • C.

      Robot Main.vi

    • D.

      Dashboard.vi

    Correct Answer
    A. Periodic Tasks.vi
  • 48. 

    You add the following code to your Teleop.vi in order to control an arm with a button. What behavior will you see when you run your code?

    • A.

      The program will get stuck in the while loop.

    • B.

      When the button is pressed, the arm motor will continuously turn at full speed.

    • C.

      The program will only read the motor value out to the arm motor once.

    • D.

      The program will not run.

    Correct Answer
    A. The program will get stuck in the while loop.
  • 49. 

    What will your robot do if both buttons are pressed in the following code?

    • A.

      Turn left at full speed

    • B.

      Turn right at full speed

    • C.

      Drive backward at full speed

    • D.

      Drive forward at full speed

    Correct Answer
    A. Turn left at full speed
  • 50. 

    What will your robot do if both buttons are pressed in the following code?

    • A.

      Turn right at full speed

    • B.

      Turn left at full speed

    • C.

      Drive backward at full speed

    • D.

      Drive forward at full speed

    Correct Answer
    A. Turn right at full speed

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Feb 14, 2018
    Quiz Edited by
    ProProfs Editorial Team
  • Dec 28, 2017
    Quiz Created by
Back to Top Back to top
Advertisement