When you deleted everything, you also deleted all the Inputs they represented that Teleop.vi starts out with.
You can put them back pretty easily, but you have to know what goes where.
You add inputs (and outputs) to a vi from its' front panel.
- Open the Teleop front panel
- In the upper-right corner you'll see the Teleop icon, right-click and choose "Show Connector"
- You'll get a white box filled with tinier boxes, each one representing a possible input or output node
- Click on one of the tiny boxes, then click on the element or cluster on the front panel that needs to be associated with it.
- For instance, the bottom-most, left-most box should be associated with the error input cluster.
After you've added the required inputs back in, then go to Robot Main.vi and you will see the Teleop icon grayed out.
- Right-click and choose "Relink SubVI"
- Then you will be able to rewire the missing connections if they don't automatically reattach themselves
You can also create a new robot project, copy the Teleop.vi into your current project folder, replacing the corrupted one that's already there.
Then when you delete just avoid deleting the Error cluster, the Match Info, and the Call Context.