Go to Post If only all this food for thought happening in this thread could somehow be funneled into solving world hunger... - artdutra04 [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 01-05-2002, 15:54
Matt_Gray Matt_Gray is offline
Registered User
#0226 (TEC CREW)
 
Join Date: Feb 2002
Location: Troy, MI
Posts: 2
Matt_Gray is an unknown quantity at this point
Send a message via AIM to Matt_Gray Send a message via Yahoo to Matt_Gray
C++ and Dashboard

Hey... does anyone know how to write a segment in C++ (if it helps I use the Bourland compiler) to input information from the dashboard output to a communitcations port on the back
  #2   Spotlight this post!  
Unread 01-05-2002, 17:40
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
If i knew i'd tell you. unfortunately, i'm still trying to figure this out myself. maybe after ap tests i'll find something...
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #3   Spotlight this post!  
Unread 01-05-2002, 22:14
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Alright, I suppose I'll bring out my Dashboard viewer yet again. It's written in C/C++ and runs under Windows. It does read data in from the serial port. In short, the way to access a COM Port (aka serial port) is to simply use ReadFile/WriteFile on it. There's a bit more too it but you can find all of it in the Dashboard Viewer.

I haven't played with it too much in several years as I haven't had too much use for it. It does include the full source code. It can be found here: http://www.bcpl.net/~mleese/dashboard.html

I hope you find it useful. Feel free to contact me if you have any questions.

Matt
  #4   Spotlight this post!  
Unread 01-05-2002, 22:37
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
use fstream to a com port...?

you lost me

/me goes to check website
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #5   Spotlight this post!  
Unread 30-05-2002, 10:10
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
clarification...I hope

Basically, the way you do serial communications in Windows is to pretend that the serial port is a file. Then, you can use the standard Windows read and write operations to get data from and to the serial port. I don't know if this works with standard C fstream objects though. As soon as I'm done with my research paper, I'll write up a white paper on both.

BTW, what exactly do you mean by segment? Are you talking about a function? It's just that the word "segment" has a very specific meaning in assembly, and I'm hoping this isn't what you're talking about...
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #6   Spotlight this post!  
Unread 30-05-2002, 12:15
Greg McCoy's Avatar
Greg McCoy Greg McCoy is offline
boiler up!
FRC #3940 (CyberTooth)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Kokomo, IN
Posts: 484
Greg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond reputeGreg McCoy has a reputation beyond repute
Send a message via AIM to Greg McCoy
Thumbs up Re: clarification...I hope

Quote:
Originally posted by rbayer
I'll write up a white paper on both.
I think that would be very helpful to many programmers. I think a white paper on this would be awesome.
  #7   Spotlight this post!  
Unread 04-06-2002, 00:50
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
I think that would be very helpful to many programmers. I think a white paper on this would be awesome.
It's up now, so go check it out and tell me what you think.
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
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
Custom dashboard program available. Interest? archiver 2001 4 24-06-2002 00:45
Dashboard Decoder Release Version 1.0 Now Available! archiver 2000 1 23-06-2002 22:50
Dashboard Protocol Library archiver 2000 9 23-06-2002 22:24
New Innovation FIRST control system and the dashboard archiver 2000 0 23-06-2002 22:15
Dashboard Viewer Khalicl13 Technical Discussion 8 15-06-2001 23:36


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

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