Writing to Network Tables from Dashboard

I would like to have a control in our dashboard that controls our shooter RPM for testing. I could use test mode, but that just sets motor outputs and not the desired RPM (It’s on a talon SRX w/ CTRE Mag encoder). Where in the Dashboard Main.vi should I add the control so that I can read it in teleop?

I understand how to read the measured RPM from the network tables & that the read should be placed in loop 1.

From reading the default comments, it seems like I will have to edit the code under the “Code below here does not typically need to be edited” comment.

I may be wrong, but I believe that as long as you put it somewhere where it will be updated regularly(ie: a while loop) you should be good.

If using the NT palette with reads/writes and any manipulation (e.g., like receiving raw RPM and converting it into two displays of RPM and RPS), then just add your new controls and code to Loop 1.

For straight pass through between the robot code and the Dashboard display (without any of the NT palette writes/reads or any code manipulation) you can actually drop new controls/indicators on the Front Panel anywhere in the Basic or Custom tabs and they will automatically work. (Exhibit D)
On the block diagram side of those new controls you drop in Basic or Custom (Exhibit B) drag the indicator/control that appears wherever you feel like grouping them in the white space outside of any loop.
I’d suggest dropping them just above the “not below this line” comment (Exhibit B), just to avoid confusion, but yes you can drop them next to the stack of B/Button 0, DB/String 0, etc (Exhibit C).

These Basic and Custom tabs are special because of the block diagram code just above the “not below this line” on the left that feeds “Basic” and “Custom” into the loop below the “not below” line. (Exhibit A)
That loop works to bind any controls/indicators found inside those tabs into the NT framework.
You can create and add new tabs to that bit of code on the left above the line if you wanted to have controls in them automatically bound.