|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
RUNNING CODE WITHOUT BUILDING
Is there a way to run the code in Labview from the Block Diagram screen, without building and compiling the entire project every time. Should the driver station be open ? I clicked the white arrow at the top, but nothing is giving.
|
|
#2
|
||||
|
||||
|
Re: RUNNING CODE WITHOUT BUILDING
If the vi is part of the realtime target, you should be able to hit the run button without building and deploying. This runs the program and you can interact with any panels. If you reboot the crio, the program is gone.
I keep the driver station open just to verify I have communication and the program is in fact running, but it is not req'd unless you are doing things within telop or autonomous, then you need the driver station to set those modes and enable the robot. |
|
#3
|
||||
|
||||
|
Re: RUNNING CODE WITHOUT BUILDING
Okay, thank you.
|
|
#4
|
|||||
|
|||||
|
Re: RUNNING CODE WITHOUT BUILDING
You will need to use the White Arrow only from the Robot Main.vi, rather than from the individual vi's such as Teleop.
Robot Main calls everything else, so Begin gets called to open devices and Teleop gets called when the Driver Station is put into Enabled/Teleop mode. Trying to use the White Arrow in Teleop, first doesn't have any devices open, and second will only execute a single time, since Teleop is normally called from a loop in Robot Main. You can open any of the vi windows while the program is running in debug and see what's getting updated in each block diagram and on each front panel. Last edited by Mark McLeod : 01-02-2012 at 12:58. |
|
#5
|
||||
|
||||
|
Re: RUNNING CODE WITHOUT BUILDING
Okay thanks Mark, that's what the problem was. We were trying to run the teleop.vi, instead of the robotmain.vi. This solution fixed our problem. It is greatly appreciated.
|
|
#6
|
||||
|
||||
|
Re: RUNNING CODE WITHOUT BUILDING
Just a tip: each front panel open requires cpu and bandwidth to update from the cRIO. The more front panels, the more resources simply updating the screen consumes. If this becomes a problem, simply save and close your subVIs.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|