Go to Post Just so you don't spend too much time on non-clues ... now you can all go back to the real one! :D - 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 16-02-2011, 11:33
TNaylor TNaylor is offline
Registered User
FRC #3777 (Team Robocalypse)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Arlingon, Ohio
Posts: 8
TNaylor is an unknown quantity at this point
Solenoid Breakout works when "run" but not at startup

I have my photo sensors powered from the solenoid breakout board. I wrote the code (in LabVIEW) such that they are set to "ON" all the time (in Teleop). Using the Developer account, I can run the code from LabVIEW and the solenoid outputs work properly; they are on (in Teleop, enabled). However, when I deploy the code to the cRIO and set it to run at startup, the solenoid channels do not turn on (in Teleop, code enabled). All other changes that I make in the code work the same either run from LabVIEW or deployed, but not the solenoids.

I'm going from memory, but here are the steps I use to deploy the code. I right click on RobotMain.vi, and click on Deploy. Once that finishes, I right click on the build specifications and click on set as startup. Once that finishes, the robot reboots. Once it's up and running, I get all 3 green lights and enable the robot.

Any ideas what could be the difference from running the code directly from LabVIEW and deploying it? If it helps, I am using the new v27 cRIO image.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2011, 11:50
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: Solenoid Breakout works when "run" but not at startup

To permanently put your code on the robot:
  1. Right click on the build specification and choose "Build"
  2. Right click on the build specification and choose "Run as startup"
It sounds like you keep running an older version of the code that's stored on the robot.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2011, 11:12
TNaylor TNaylor is offline
Registered User
FRC #3777 (Team Robocalypse)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Arlingon, Ohio
Posts: 8
TNaylor is an unknown quantity at this point
Re: Solenoid Breakout works when "run" but not at startup

I will double check that.

That was my initial thought, but it appears that other changes I've made to the code work. I'll look over it tonight and update with what I find.

Thanks!
Reply With Quote
  #4   Spotlight this post!  
Unread 18-02-2011, 11:05
TNaylor TNaylor is offline
Registered User
FRC #3777 (Team Robocalypse)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Arlingon, Ohio
Posts: 8
TNaylor is an unknown quantity at this point
Re: Solenoid Breakout works when "run" but not at startup

Well, that did it! Apparently, I was mistaken in thinking that other code I added had worked. It's a strange concept to think that you have to rebuild code before deploying it (inject sarcasm here). Whoops!

Thanks for your help.
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 20:31.

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