Go to Post Celebrate your failures as well as your successes. - Taylor [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 19-02-2013, 23:45
rzoeller rzoeller is offline
MN GOFIRST Recruitment Officer
AKA: Ryan Zoeller
FRC #2169 (RI3D 'Snow Problem; KING TeC)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2007
Location: Savage, MN
Posts: 111
rzoeller is a jewel in the roughrzoeller is a jewel in the roughrzoeller is a jewel in the rough
Different behavior in code when deployed vs run live

Hi all,
We are experiencing a difference in code behavior between when it is run live compared to being hard-deployed to the robot and then rebooting. We are running a shooter off of a PID loop in periodic tasks with feedback from a hall effect sensor. It runs perfectly when running from Robot Main, but when it is built and then deployed followed by a reboot it will initialize for one second and then stop. If we reinitialize autonomous, the shooter will run.

Thanks for any and all help.
__________________
Ri3D - 'Snow Problem Programmer
MN GOFIRST Recruitment Officer
FRC 2169 Alumni
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2013, 00:09
Blackphantom91's Avatar
Blackphantom91 Blackphantom91 is offline
Mentor + 4 = Stuck For Life
AKA: Malcolm Stirckland
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Kansas City
Posts: 232
Blackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura about
Re: Different behavior in code when deployed vs run live

You may not be calling the values correctly inside of the loop. Also are you saving the values as default after the build and deploy?
__________________
[img*]http://i.imgur.com/Os2oTET.jpg[/img*]
Reply With Quote
  #3   Spotlight this post!  
Unread 20-02-2013, 00:19
rzoeller rzoeller is offline
MN GOFIRST Recruitment Officer
AKA: Ryan Zoeller
FRC #2169 (RI3D 'Snow Problem; KING TeC)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2007
Location: Savage, MN
Posts: 111
rzoeller is a jewel in the roughrzoeller is a jewel in the roughrzoeller is a jewel in the rough
Re: Different behavior in code when deployed vs run live

We set a global variable in autonomous which is read in by a loop in periodic tasks. This value is constant between the autonomous runs.

For your next question the values we are changing are constants not controls, so they are saved directly to disk and built from there.
__________________
Ri3D - 'Snow Problem Programmer
MN GOFIRST Recruitment Officer
FRC 2169 Alumni
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2013, 00:27
Blackphantom91's Avatar
Blackphantom91 Blackphantom91 is offline
Mentor + 4 = Stuck For Life
AKA: Malcolm Stirckland
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Kansas City
Posts: 232
Blackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura aboutBlackphantom91 has a spectacular aura about
Re: Different behavior in code when deployed vs run live

well if you could do a print screen of your code I can further help you with your situation.

When writing global variables you have to make sure the values in auto are written at the start of the VI then read them as needed.

Since they are all constant you should be seeing no difference in the PID. You can also run indicators to see exactly what is going on.
__________________
[img*]http://i.imgur.com/Os2oTET.jpg[/img*]
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:52.

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