Input/Output programming for Labview

I’m trying to find something in labview to read data from a numpad, because we want to use a code to override the automation that were going to be running? What labview function, (If there is one), Would allow us to do that?

What do you mean by “numpad”? Are you trying to read something connected to the robot? How is it connected?

What is sounds like is that you want to make a case structure in labview. This would be able to switch between multiple groups of code.

If you want to stop all of the automation an your robot there is an extension for the driver station called a stop button. It will stop all automation fast :smiley:

If the “numpad” you are talking about is part of your driver station laptop keyboard, then you need to make a custom dashboard that reads the keyboard input and sends the data to the robot using UDP or TCP. One of these days there may even be a NetworkTables implementation for LabVIEW that would make this even easier.

You can also use the Driverstation Virtual Digital Inputs. From our testing these are read continually during the Teleop Mode, although I’m pretty sure (at least a few years ago) this wasn’t true. In the Default Projec there is already code in the Autonomous.vi for reading this data, you can copy that into your Teleop.vi to use it there.