Hey there, i’m having trouble with compiling code onto the crio. When I go to deploy the robot main vi with the modified code, it compiles correctly, but when I go into the driver station to test my new code, none of my changes are there. Say, if I change the pwm mapping on my joystick code, or switch the usb port name for the joystick, it seemingly reverts to the original code where that change hadn’t occurred. Is there something i’m missing when i’m deploying code? This is my second year with labVIEW, and I don’t recall ever having this problem before. Many thanks in advance.
I know it sounds stupid for me to ask this, but did you re-build your code? You need to do this every time you make a change and want to run as startup
Your use of terminology is a little unclear. It sounds like you’re trying to Deploy the Robot Main vi instead of telling LabVIEW either to Run it or to Build the project then Run As Startup. There is basically never a reason to use the Deploy menu option.
Can you tell us, step by step, what you are doing? Try not to assume that we know what you mean by “go into the driver station” or “deploying code”. Instead, describe the menu choices and mouse clicks so we can follow along and perhaps identify where your procedure is going wrong.
When I finish altering my code, I exit out of the vi and go to the main lvproject explorer screen. I then go down to the Robot Main.vi and right click to select the deploy option. After the code appears to compile into the crio properly (this is assuming i am connected to the crio) I restart the crio, then launch the dashboard. Within the dashbord after I connect to the crio, I launch teleop mode, however when teleop is activated, i see no changes within the code. Even if I delete code that previously worked within the program,
it still runs on the crio, and no altered code appears to work within the program.
I hope this explained abit more clearly the trouble i’m having.
That does explain things clearly and highlights the issue.
The step where you press “Deploy” is incorrect. What you should be doing instead is a two-step process: 1) clicking “Build”, then waiting for the dialog box when the build is complete. 2) Clicking Run as Startup from the same menu
When the cRIO starts up, it will run only a .rtexe file that’s been set to Run As Startup. That file is created when you Build the project.
The very bottom item in the project view contains the deployment options. That’s where you find the place to right-click and do the Build and Run As Startup.