Go to Post I lose track of what day it is during build season. - Gary Dillard [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-01-2010, 19:15
linkhyrule5 linkhyrule5 is offline
Registered User
FRC #1072
 
Join Date: Oct 2009
Location: California
Posts: 12
linkhyrule5 is an unknown quantity at this point
LabVIEW code deploying instead of running

Heya all!

I'm trying to test my code by running it on my own computer. Unfortunately, it insists on deploying to a nonexistent cRIO. I've tried all the menu options I could find, and I couldn't find a way to stop this. Does anyone know how to turn it off?
Reply With Quote
  #2   Spotlight this post!  
Unread 07-01-2010, 20:43
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Thumbs up Re: LabVIEW code deploying instead of running

you are operating in a FRC robot project try opening a blank vi then copying your code there
Reply With Quote
  #3   Spotlight this post!  
Unread 07-01-2010, 20:48
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: LabVIEW code deploying instead of running

See this thread for more info on testing code without a cRIO:

http://www.chiefdelphi.com/forums/sh...t=labview+test
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)

Last edited by Vikesrock : 07-01-2010 at 21:16.
Reply With Quote
  #4   Spotlight this post!  
Unread 07-01-2010, 20:55
bladetech932's Avatar
bladetech932 bladetech932 is offline
Programmer of awesome
AKA: Jon
FRC #0932 (Circuit Chargers)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2009
Location: Tulsa
Posts: 242
bladetech932 is on a distinguished road
Thumbs up Re: LabVIEW code deploying instead of running

if you are trying to test FRC code then you have to replace inputs with controls or constants and replace the outputs with indicators
Reply With Quote
  #5   Spotlight this post!  
Unread 08-01-2010, 13:03
BLAQmx's Avatar
BLAQmx BLAQmx is offline
Software Engineer
no team (National Instruments)
Team Role: Engineer
 
Join Date: Sep 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 100
BLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of light
Re: LabVIEW code deploying instead of running

In your LabVIEW project move the VI you are trying to run from under the cRIO Tree to under My Computer. This will change the context in which the VI runs. In the bottom left corner of your VI your should see if it is targeted to the cRIO or My Computer.

Note: If the VI is open when you move its location in the project you will have to close and reopen the VI before the change take effect.

Also, you're VI won't work if you have attempting you use hardware resources on the cRIO when in the My Computer context.
__________________
NI FIRST Community: Where to go for LabVIEW, Wind River, cRIO-FRC, and NXT support.
Reply With Quote
  #6   Spotlight this post!  
Unread 09-01-2010, 23:05
Team843 Team843 is offline
Registered User
FRC #0843
 
Join Date: Jan 2010
Location: Oakville, ON, Canada
Posts: 2
Team843 is an unknown quantity at this point
Re: LabVIEW code deploying instead of running

You can replace the I/Os with controls n indicators (so that you can control and see your program) and then open the main application instance (so that it wont try and deploy when u run it)

that way u can easily test and simulate the program without having to change your programming architecture

Last edited by Team843 : 09-01-2010 at 23:07.
Reply With Quote
  #7   Spotlight this post!  
Unread 10-01-2010, 14:57
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: LabVIEW code deploying instead of running

My advice would be to keep the I/O calls at the higher levels, and call into subVIs passing in the values and possibly passing out values. Doing this means that at the lower levels, you can drag the "logic only" subVIs up to the host and unit test them easily by typing in values, setting break points, etc. Then you drag them back to the cRIO portion of the project.

Greg McKaskle
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
Issue deploying Code rudun Java 5 18-01-2010 21:24
Having trouble with Deploying code Hatefulhippo Programming 2 15-02-2009 14:02
Proper procedure for deploying Labview code? domoarigato NI LabVIEW 8 03-02-2009 06:52
Problems running Default LabView Code Version 3.0 seg9585 Programming 6 01-02-2009 17:23
Problem deploying/running default code blaxbb FRC Control System 0 10-01-2009 11:59


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

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