|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Deploying code in debug vs run as startup
Our team has used LabVIEW for many years and there are some things that I'm sure labview is capable of but we're not doing that would make life better.
For instance whenever we build the project and run as startup it takes only a few seconds to deploy but loading debug code to the robot takes roughly ten minutes (when running robot main). Why is there such a difference between these two methods of deploying the same code? Is there anyway to make deploying faster? I also noticed that when we run robot main to deploy the code in debug mode every vi.lib is deploying as well. Why do all these need to deploy as well if they're not changing? Is it so I can debug them the same way I debug the code we wrote? Can I choose to not debug them and make the code deploy faster? When we build the code before running as start up how much compiler optimization is actually happening? Will any of these optimizations (if there are any) ever produce a noticeable difference in how the code runs? When we deploy code in debug mode we always run robot main and deploy everything. If I just wanted to deploy a few .vis could I just run them? What kind of problems might I encounter? I know there is an easy way to test this but I haven't had an opportunity since I had the question. I know there's a lot of questions here and anyone shedding some light on even some of them would be wonderful. |
|
#2
|
||||
|
||||
|
Re: Deploying code in debug vs run as startup
Quote:
Quote:
Quote:
Quote:
|
|
#3
|
|||||
|
|||||
|
Re: Deploying code in debug vs run as startup
First of all thank you all for your responses to my myriad questions. Although I have a few follow up questions.
Quote:
Quote:
Quote:
The method you describe seems to be very similar to the method Doug described in the post above. Could you explain the differences some more? |
|
#4
|
|||
|
|||
|
Re: Deploying code in debug vs run as startup
Doug and I work together. We came up with these at roughly the same time. The only difference is whether you have the code open when you begin. I found it to be a bit faster to have it open, connect, then close it. The most important aspect is to connect so that the startup will be aborted then reload the Robot Main code before pressing run.
Greg McKaskle |
|
#5
|
||||
|
||||
|
Re: Deploying code in debug vs run as startup
Quote:
1. Close Robot Main.vi (but not the project). 2. In the project, right-click on RT CompactRIO Target and choose Connect. 3. Click OK at the Conflict Resolution dialog. 4. Once connected, reopen and run Robot Main.vi. |
|
#6
|
|||
|
|||
|
Re: Deploying code in debug vs run as startup
A slightly faster way of working around the bug is to leave the VIs open, then connect, say OK in the dialog, close the VIs, open RobotMain, and then run it.
This is equivalent to unsetting the startup app before doing a debug session. This is more permanent though, and you will want to be sure to make a startup app before you go to a competition. Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|