Go to Post "When you lose you don't say anything. When you win you say even less." - Clinton Bolinger [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 01-02-2012, 12:42
dcarswell's Avatar
dcarswell dcarswell is offline
FRC Mentor/Old Dominion University
AKA: DeAndre Carswell
FRC #3359 (Royal Robotics)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2006
Location: Portsmouth, VA
Posts: 36
dcarswell is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2012, 12:51
MotorHead's Avatar
MotorHead MotorHead is offline
Programming Mentor
AKA: Jeff Beltramo
FRC #1922 (OZ-Ram)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Concord, NH
Posts: 68
MotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to beholdMotorHead is a splendid one to behold
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.
__________________
Jeff Beltramo
Team #1922
Concord, New Hampshire

Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2012, 12:54
dcarswell's Avatar
dcarswell dcarswell is offline
FRC Mentor/Old Dominion University
AKA: DeAndre Carswell
FRC #3359 (Royal Robotics)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2006
Location: Portsmouth, VA
Posts: 36
dcarswell is an unknown quantity at this point
Re: RUNNING CODE WITHOUT BUILDING

Okay, thank you.
Reply With Quote
  #4   Spotlight this post!  
Unread 01-02-2012, 12:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 01-02-2012 at 12:58.
Reply With Quote
  #5   Spotlight this post!  
Unread 01-02-2012, 13:04
dcarswell's Avatar
dcarswell dcarswell is offline
FRC Mentor/Old Dominion University
AKA: DeAndre Carswell
FRC #3359 (Royal Robotics)
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2006
Location: Portsmouth, VA
Posts: 36
dcarswell is an unknown quantity at this point
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2012, 00:17
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
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.
__________________
Mike B
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:26.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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