Ok recently I deleted my old teleop cold and pasted in some new stuff. I deleted EVERYTHING from the old teleop vi and then copied and pasted the new code. The Match Info, Call Context, and LED toggle rate (ms) were copied and pasted into teleop as well. Now in Main vi there are broken wires because it says I have connected two wires of different types. How do I fix this? I have the old code and have tried copying and pasting back into teleop but nothing changes in Main. When I hover my house over the Teleop vi in Main I see no terminals for the wires to be wired into. So I need to know how to fix this because I can no longer build any code because of the broken wires and I don’t think I should just delete the wires and try to load again because then I will lose the working code in the robot and frustrate people around me.
I think you have no choice but to delete and replace the wires one by one, a word of advice, copy don’t delete in the future, and also if you are close with everything else in the program, i recomend taking some time and copying it by hand next time(I actually had to do that myself last night when some global data went missing).
How would I replace the Match info, Call Context, and Led toggle rate parts of the vi?
See what happens if you replace them with the ones original to the c rio project template that they give us. If you already tried that, i am not sure what to tell you.
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.
ohhhhhh, i don’t think i understood what you meant before, because what Mr McLeod is saying is right. you just did not reconnect the wires.