Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   RUNNING CODE WITHOUT BUILDING (http://www.chiefdelphi.com/forums/showthread.php?t=101699)

dcarswell 01-02-2012 12:42

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.

MotorHead 01-02-2012 12:51

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.

dcarswell 01-02-2012 12:54

Re: RUNNING CODE WITHOUT BUILDING
 
Okay, thank you.

Mark McLeod 01-02-2012 12:55

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.

dcarswell 01-02-2012 13:04

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.

SuperS_5 02-02-2012 00:17

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.


All times are GMT -5. The time now is 11:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi