Click here to Skip to main content
16,011,849 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: A Question about Menus Pin
BobInNJ7-Jan-09 9:14
BobInNJ7-Jan-09 9:14 
QuestionGPIB to serial stream pass through Pin
Michael Lutkenhouse7-Jan-09 5:54
Michael Lutkenhouse7-Jan-09 5:54 
GeneralRe: GPIB to serial stream pass through Pin
Luc Pattyn7-Jan-09 6:41
sitebuilderLuc Pattyn7-Jan-09 6:41 
GeneralRe: GPIB to serial stream pass through Pin
Michael Lutkenhouse7-Jan-09 7:15
Michael Lutkenhouse7-Jan-09 7:15 
GeneralRe: GPIB to serial stream pass through Pin
Luc Pattyn7-Jan-09 7:35
sitebuilderLuc Pattyn7-Jan-09 7:35 
GeneralRe: GPIB to serial stream pass through Pin
Michael Lutkenhouse7-Jan-09 7:46
Michael Lutkenhouse7-Jan-09 7:46 
GeneralRe: GPIB to serial stream pass through Pin
Luc Pattyn7-Jan-09 8:18
sitebuilderLuc Pattyn7-Jan-09 8:18 
AnswerRe: GPIB to serial stream pass through Pin
Iain Clarke, Warrior Programmer7-Jan-09 22:40
Iain Clarke, Warrior Programmer7-Jan-09 22:40 
The ever classic Flounder has a page on serial I/O I suggest you read.
http://www.flounder.com/serial.htm[^]
The clever parts are largely to do with serial reading, but I've used the same techniques to read from USB ADC devices in the past. As has been said in other replies, once your happy you're reading chunks at a time into a RAM buffer, spitting them out on the serial port is the easy part.

The niggles I can see:
Setting up the COM port. Then DCB structure has always been a black art. But I recently came across BuildCommDCB which looks like a handy utility function.
Buffer size for reading from the USB/GPIB device. If you can read in larger chunks, then the PC load will be lighter. But you risk getting a partial chunk, waiting an age, then getting enough data to fill up the rest of the buffer. Depending on how the NI device driver presents itself, you may be able to ask for a large buffer with a small timeout which will help. I do that with FTDI's USB devices. And they seem to popup in all sorts of places.

Iain.

Codeproject MVP for C++, I can't believe it's for my lounge posts...

QuestionTrouble using namespace System Pin
linkfitz7-Jan-09 5:24
linkfitz7-Jan-09 5:24 
AnswerRe: Trouble using namespace System Pin
Stuart Dootson7-Jan-09 5:28
professionalStuart Dootson7-Jan-09 5:28 
AnswerRe: Trouble using namespace System Pin
BobInNJ7-Jan-09 6:23
BobInNJ7-Jan-09 6:23 
AnswerRe: Trouble using namespace System Pin
Jijo.Raj7-Jan-09 6:57
Jijo.Raj7-Jan-09 6:57 
GeneralRe: Trouble using namespace System Pin
linkfitz7-Jan-09 8:31
linkfitz7-Jan-09 8:31 
GeneralRe: Trouble using namespace System Pin
Jijo.Raj7-Jan-09 9:17
Jijo.Raj7-Jan-09 9:17 
QuestionAudio Line in Pin
surger17-Jan-09 4:56
surger17-Jan-09 4:56 
AnswerRe: Audio Line in Pin
Code-o-mat7-Jan-09 5:18
Code-o-mat7-Jan-09 5:18 
AnswerRe: Audio Line in Pin
Stuart Dootson7-Jan-09 5:33
professionalStuart Dootson7-Jan-09 5:33 
Question.vssscc file and Visual Source Safe Pin
Like2Byte7-Jan-09 4:23
Like2Byte7-Jan-09 4:23 
QuestionNeed help for numericupdown Pin
sai567-Jan-09 4:18
sai567-Jan-09 4:18 
AnswerRe: Need help for numericupdown Pin
Iain Clarke, Warrior Programmer7-Jan-09 22:59
Iain Clarke, Warrior Programmer7-Jan-09 22:59 
QuestionConcept/example for virtual list Pin
nobaq7-Jan-09 4:10
nobaq7-Jan-09 4:10 
AnswerRe: Concept/example for virtual list Pin
Stuart Dootson7-Jan-09 4:34
professionalStuart Dootson7-Jan-09 4:34 
GeneralRe: Concept/example for virtual list Pin
nobaq7-Jan-09 5:35
nobaq7-Jan-09 5:35 
GeneralRe: Concept/example for virtual list Pin
nobaq7-Jan-09 6:04
nobaq7-Jan-09 6:04 
GeneralRe: Concept/example for virtual list Pin
Stuart Dootson7-Jan-09 8:44
professionalStuart Dootson7-Jan-09 8:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.