|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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...
|
|
#3
|
|||||
|
|||||
|
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
|
||||
|
||||
|
use fstream to a com port...?
you lost me /me goes to check website |
|
#5
|
||||||
|
||||||
|
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... |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
||||||
|
||||||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |