Go to Post There's nothing wrong with taking suggestions but be sure not to let other people tell you how your team should be run. - NickE [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-04-2010, 11:31
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Outputting Data Onto Computer Screen

Ok anyone have an idea how to do it? How draw the image from the robot sensors to the screen? Not through the dashboard but a separate program. I know that if I print something out, it only shows up on the IDE output window. So theoretically I can just put the OpenGL code on the robot, the window would pop up to the screen. But if that would work, that would be takin away processing power and memory. But the cRio does not have a video card, so it will not be able to do OpenGL... Or I can just render it softwarely.
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #2   Spotlight this post!  
Unread 12-04-2010, 11:35
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,069
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Outputting Data Onto Computer Screen

What do you mean by image from the robot sensors? Do you mean you want to generate an image from sensors on the robot?
__________________




.
  #3   Spotlight this post!  
Unread 12-04-2010, 11:38
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by Andrew Schreiber View Post
What do you mean by image from the robot sensors? Do you mean you want to generate an image from sensors on the robot?
The sensors would take in an array of data of the distances and then that can be turned into an "image". So each distance can be turned into a color, which can be easily put on the screen with OpenGL
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #4   Spotlight this post!  
Unread 12-04-2010, 11:47
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,069
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by davidthefat View Post
The sensors would take in an array of data of the distances and then that can be turned into an "image". So each distance can be turned into a color, which can be easily put on the screen with OpenGL
This seems like a job for the dashboard. IF you decide to go with another program my suggestion would be to pipe the array to standard out and then read it in from a C++/Python/Haskell/C#/Language of Choice program that then outputs the image to the screen.
__________________




.
  #5   Spotlight this post!  
Unread 12-04-2010, 12:00
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by Andrew Schreiber View Post
This seems like a job for the dashboard. IF you decide to go with another program my suggestion would be to pipe the array to standard out and then read it in from a C++/Python/Haskell/C#/Language of Choice program that then outputs the image to the screen.
Was thinking of doing that, won't that lead to memory leaks or buffer overflows since the robot and the computer are modifying the same data all at once
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #6   Spotlight this post!  
Unread 12-04-2010, 12:18
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,069
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by davidthefat View Post
Was thinking of doing that, won't that lead to memory leaks or buffer overflows since the robot and the computer are modifying the same data all at once
Why would your display program be modifying data?
__________________




.
  #7   Spotlight this post!  
Unread 12-04-2010, 12:32
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by Andrew Schreiber View Post
Why would your display program be modifying data?
So it can alter reality... LOL, yea you are right, why would it modify anything?
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #8   Spotlight this post!  
Unread 12-04-2010, 14:15
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,113
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: Outputting Data Onto Computer Screen

Quote:
Originally Posted by davidthefat View Post
How draw the image from the robot sensors to the screen? Not through the dashboard but a separate program.
I don't understand the question, but I suspect that you don't understand it either. The dashboard is a separate program, and it is exactly the right way to "draw" data on the screen.

If all you want to do is output text, the "LCD" User Messages area on the Driver Station is available.
  #9   Spotlight this post!  
Unread 12-04-2010, 14:26
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by Alan Anderson View Post
I don't understand the question, but I suspect that you don't understand it either. The dashboard is a separate program, and it is exactly the right way to "draw" data on the screen.

If all you want to do is output text, the "LCD" User Messages area on the Driver Station is available.
I am saying not outputing to the dashboard, but a custom made program
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #10   Spotlight this post!  
Unread 12-04-2010, 14:39
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,069
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by davidthefat View Post
I am saying not outputing to the dashboard, but a custom made program
The real question is WHY?
__________________




.
  #11   Spotlight this post!  
Unread 12-04-2010, 14:45
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by Andrew Schreiber View Post
The real question is WHY?
I am not familiar with LabView, No one is, I rather do it in C++ with OpenGL, I think it has more potential then LabView
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
  #12   Spotlight this post!  
Unread 12-04-2010, 14:48
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,113
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: Outputting Data Onto Computer Screen

Quote:
Originally Posted by davidthefat View Post
I am saying not outputing to the dashboard, but a custom made program
It looks like I was right. You don't fully understand what you're asking for.

"The dashboard" is just a program that receives data on a certain port. You don't have to use the one that is installed by default alongside the Driver Station application. It is perfectly reasonable to replace it with a custom program, either by replacing the default one with a custom one of the same name or by changing the Driver Station configuration file to start the one you want instead. See the forum discussion of ZomB, for example.
  #13   Spotlight this post!  
Unread 12-04-2010, 14:49
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,069
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Outputting Data Onto Computer Screen

Quote:
Originally Posted by davidthefat View Post
I am not familiar with LabView, No one is, I rather do it in C++ with OpenGL, I think it has more potential then LabView
Speaking from personal experience Labview is not incredibly hard to learn. <disregard>Additionally it would be more beneficial to you as you can use it during the competition on your Dashboard. </disregard> The alternative would be to figure out how to use OpenGL inside Labview... I have a hunch there is a way.

Edit, Im an idiot at times. :\
__________________




.
  #14   Spotlight this post!  
Unread 12-04-2010, 16:22
Tanner's Avatar
Tanner Tanner is offline
Registered User
FRC #1261 (Roblions)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Suwanee, GA
Posts: 311
Tanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to beholdTanner is a splendid one to behold
Re: Outputting Data Onto Computer Screen

Well if I am understanding ye right, you want to have a non-LabVIEW dashboard to display something (i.e. a computer generated image) on the Classmate?

As far as I know that wouldn't be legal for competition use with this year's rules, though you can certainly pipe out the dashboard data to another computer (via remote dashboard) and read the values coming in via whatever method of programming language you like (Processing sounds like fun). I haven't tried it, but it might work.

-Tanner
  #15   Spotlight this post!  
Unread 12-04-2010, 16:28
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,588
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: Outputting Data Onto Computer Screen

Quote:
Originally Posted by Tanner View Post
Well if I am understanding ye right, you want to have a non-LabVIEW dashboard to display something (i.e. a computer generated image) on the Classmate?

As far as I know that wouldn't be legal for competition use with this year's rules, though you can certainly pipe out the dashboard data to another computer (via remote dashboard) and read the values coming in via whatever method of programming language you like (Processing sounds like fun). I haven't tried it, but it might work.

-Tanner
It's specifically allowed by <R60>.
Closed Thread


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
outputting data to DS's usermessage kennypu C/C++ 26 12-02-2010 02:41
Can I download code from the RC onto my computer? Team1341TechMan Programming 2 16-10-2007 18:29
PWMs not outputting in Autonomous 937Programmers Programming 15 08-02-2007 21:25
computer LCD touch screen John Gutmann Electrical 4 14-08-2005 17:13
How do you upload an analog video onto a computer? Avarik Computer Graphics 12 30-12-2004 21:42


All times are GMT -5. The time now is 23:28.

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