Go to Post #TeamFrank - Libby K [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-03-2012, 22:08
Nicandy's Avatar
Nicandy Nicandy is offline
Registered User
AKA: Nicole/Andy
FRC #3580 (Marinerds)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cape Coral
Posts: 23
Nicandy is an unknown quantity at this point
crio not running new code

Hey there, i'm having trouble with compiling code onto the crio. When I go to deploy the robot main vi with the modified code, it compiles correctly, but when I go into the driver station to test my new code, none of my changes are there. Say, if I change the pwm mapping on my joystick code, or switch the usb port name for the joystick, it seemingly reverts to the original code where that change hadn't occurred. Is there something i'm missing when i'm deploying code? This is my second year with labVIEW, and I don't recall ever having this problem before. Many thanks in advance.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-03-2012, 07:56
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: crio not running new code

I know it sounds stupid for me to ask this, but did you re-build your code? You need to do this every time you make a change and want to run as startup
Reply With Quote
  #3   Spotlight this post!  
Unread 02-03-2012, 08:01
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: crio not running new code

Your use of terminology is a little unclear. It sounds like you're trying to Deploy the Robot Main vi instead of telling LabVIEW either to Run it or to Build the project then Run As Startup. There is basically never a reason to use the Deploy menu option.

Can you tell us, step by step, what you are doing? Try not to assume that we know what you mean by "go into the driver station" or "deploying code". Instead, describe the menu choices and mouse clicks so we can follow along and perhaps identify where your procedure is going wrong.
Reply With Quote
  #4   Spotlight this post!  
Unread 05-03-2012, 13:57
Nicandy's Avatar
Nicandy Nicandy is offline
Registered User
AKA: Nicole/Andy
FRC #3580 (Marinerds)
Team Role: Engineer
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cape Coral
Posts: 23
Nicandy is an unknown quantity at this point
Re: crio not running new code

When I finish altering my code, I exit out of the vi and go to the main lvproject explorer screen. I then go down to the Robot Main.vi and right click to select the deploy option. After the code appears to compile into the crio properly (this is assuming i am connected to the crio) I restart the crio, then launch the dashboard. Within the dashbord after I connect to the crio, I launch teleop mode, however when teleop is activated, i see no changes within the code. Even if I delete code that previously worked within the program,
it still runs on the crio, and no altered code appears to work within the program.
I hope this explained abit more clearly the trouble i'm having.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-03-2012, 14:04
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: crio not running new code

That does explain things clearly and highlights the issue.

The step where you press "Deploy" is incorrect. What you should be doing instead is a two-step process: 1) clicking "Build", then waiting for the dialog box when the build is complete. 2) Clicking Run as Startup from the same menu
Reply With Quote
  #6   Spotlight this post!  
Unread 05-03-2012, 16:44
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: crio not running new code

When the cRIO starts up, it will run only a .rtexe file that's been set to Run As Startup. That file is created when you Build the project.

The very bottom item in the project view contains the deployment options. That's where you find the place to right-click and do the Build and Run As Startup.
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 11:16.

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