Go to Post Relax. Have fun. Enjoy the improvements. Build what you want to. - Rich Kressly [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 21-01-2011, 23:02
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
Dificulties developing software

I helped our team program during 2009 and we were continuously sending provisory software to cRIO and monitoring things on the code's front panel, a very quick and helpful process btw. I couldn't participate actively last year, I know a lot has changed, but frustratingly I couldn't do the same thing this year so far.

I first tried to monitor a sensor, so I put the necessary code inside the teleop VI and observed the chart in the front panel. Nothing happened. Later I realized that the competition status was stuck on "Autonomous disabled" and there was no way to get it out of there. The teleop vi was never being called. How do we select the competition status outside the competition in order to test our codes?
I'm not talking about using the driver station, remember that I am developing code and continuously changing and uploading it to monitor sensors and other variables on the front panel.
If we are to use the driver station, we have to build and deploy the code, which takes a lot of time, and won't help monitor so freely as the code's front panel does.
If you programmed in 2009, you probably know what I'm talking about.. is there a way to use the cRIO like it was done back then?

btw, all I did was with a tethered connection. If I want to do this wirelessly, again, not using the driver station, all I need to do is connect manually to the router while in AP mode?

Thanks.
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2011, 23:22
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,622
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Dificulties developing software

You need to have the driver station software up and running with the STOP button connected or overridden. There is no other way for you to run your code and have it enter into teleop mode.*

Luckily, this doesn't preclude you from the active debugging and running code that you want to do. You can still just hit the run button on the appropriate startup VI, and the code will download to memory and start running. Having the DriverStation software up and running shouldn't impact this a bit. The only way I could see it causing a problem is if you have a LOT of data going back to your driverstation.


*That is, no way without HEAVILY modifying the base framework. To the extent that I wouldn't really trust any code you've developed on it afterwards.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2011, 00:54
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: Dificulties developing software

Quote:
Originally Posted by Daniel_H View Post
If we are to use the driver station, we have to build and deploy the code, which takes a lot of time, and won't help monitor so freely as the code's front panel does.
That's wrong.

You do not have to build and deploy code in order to use the driver station. You can do exactly what you want to do and simply run the Robot Main vi, then enable the robot to let Teleop execute.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2011, 09:58
Daniel_H's Avatar
Daniel_H Daniel_H is offline
Registered User
FRC #1156 (Under Control)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Brazil
Posts: 171
Daniel_H is just really niceDaniel_H is just really niceDaniel_H is just really niceDaniel_H is just really nice
Re: Dificulties developing software

Quote:
Originally Posted by Alan Anderson View Post
That's wrong.

You do not have to build and deploy code in order to use the driver station. You can do exactly what you want to do and simply run the Robot Main vi, then enable the robot to let Teleop execute.
Once I'm communicating with cRIO through LabVIEW, the Driver Station can't communicate with it, isn't that right?
If that is true, I have to send the code, close LabVIEW (or disconnect) and open the driver station, right?

I much prefer doing my tests and measurements in LabVIEW then at the driver station, but I need the driver station to change the competition status
__________________
[<o>] gogogo [<o>]
http://undercontrol1156.com/
Reply With Quote
  #5   Spotlight this post!  
Unread 22-01-2011, 10:00
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Dificulties developing software

Quote:
Originally Posted by Daniel_H View Post
Once I'm communicating with cRIO through LabVIEW, the Driver Station can't communicate with it, isn't that right?
If that is true, I have to send the code, close LabVIEW (or disconnect) and open the driver station, right?\
That is not correct.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-01-2011, 17:57
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: Dificulties developing software

Quote:
Originally Posted by Daniel_H View Post
Once I'm communicating with cRIO through LabVIEW, the Driver Station can't communicate with it, isn't that right?
No, that is not right. The Driver Station talks to the robot whether you run the Robot Main vi interactively or deploy the compiled program to run at startup.

You do not need to close the Driver Station application before you run LabVIEW. You do not need to close LabVIEW before you run the Driver Station application. The Driver Station program should always be running if you are doing robot software development.
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 07:24.

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