Go to Post I'm intrigued by the possibility of Mayan stadium sports, minus the whole sacrificing part. - AlecMataloni [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 26-02-2009, 15:58
camper365 camper365 is offline
Registered User
FRC #1599
 
Join Date: Feb 2009
Location: Virginia
Posts: 24
camper365 is an unknown quantity at this point
Labview code not in realtime

Is is possible to run labview code on a robot without doing it in realtime.
What I want to do is make it so that you don't have to have a computer attached to the driver station to get the robot to work.
Reply With Quote
  #2   Spotlight this post!  
Unread 26-02-2009, 16:06
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,795
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: Labview code not in realtime

See if I understand what you're asking.
You want to run your robot without having your laptop computer hooked up?

In competition, the robot will never be attached to your PC if that's what you mean.

There is a special way you have to download the code to your robot to get it to "stick" and work without your PC being attached.
If this is what you mean we can explain further.

(Real-time isn't the term you're looking for here.)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 26-02-2009, 16:08
camper365 camper365 is offline
Registered User
FRC #1599
 
Join Date: Feb 2009
Location: Virginia
Posts: 24
camper365 is an unknown quantity at this point
Re: Labview code not in realtime

Quote:
Originally Posted by Mark McLeod View Post
See if I understand what you're asking.
You want to run your robot without having your laptop computer hooked up?

Yes, that's exactly what I am asking. What word should I use?
Reply With Quote
  #4   Spotlight this post!  
Unread 26-02-2009, 16:22
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,795
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: Labview code not in realtime

Directions are given in the FRC_Programming_Guide, page 5-5,
Creating a Stand-Alone FRC Application

You'll find your copy of this on your C drive at:
C:\Program Files\National Instruments\LabVIEW 8.5\manuals

In brief here's what you do...

When you open your LabVIEW project you start with the Project Explorer window (I attached a snapshot below).
On that window under "RT CompactRIO Target (10.15.99.02)"
you'll see "Build Specifications" and under that "FRC Basic Robot Deployment" all the way at the very bottom.
(It also might be "FRC Robot Boot-up Deployment" depending on which Framework you started with).


Right click on "FRC Basic Robot Deployment"
-- Choose "Build"

When that's done right click on "FRC Basic Robot Deployment" again to
-- Choose "Run as startup"

When it's all done it'll ask you if you want to reset the cRIO.
-- Choose Yes (or you can also cycle the power on your robot).

Then your PC doesn't have to be attached anymore.

-----------------
The PC is only necessary when you use the "Run" button to start everything.
That's only intended to temporarily run your program on the robot just to check out changes quickly.

P.S.
Try it. There may be one or two settings you have to make depending on how you set things up, but you'll get a message about it and we can walk you through those if necessary.

Quote:
Originally Posted by camper365 View Post
What word should I use?
Deploy to run at startup.
Real-Time just means the code can run fast enough to keep up with events in the real world. For example, turning when your joystick tells the robot to turn, not when it feels like it sometime later on.
Attached Thumbnails
Click image for larger version

Name:	ProjectExplorer.jpg
Views:	24
Size:	31.2 KB
ID:	7568  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 26-02-2009 at 16:38.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
LabVIEW annoyance. help( not a hater thread) Stuart NI LabVIEW 15 20-02-2009 11:27
custom C/C++ code in LabView? Pneumaticsman NI LabVIEW 5 14-01-2009 23:05
help me in LabView code mahmosh National Instruments LabVIEW and Data Acquisition 3 11-01-2009 00:18
Activation of LabView still not working apollorest National Instruments LabVIEW and Data Acquisition 4 22-11-2008 21:09
frc_camera not working but labview does Issues Programming 7 18-01-2006 19:23


All times are GMT -5. The time now is 10:38.

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