Click here to Skip to main content
15,851,319 members
Home / Discussions / C#
   

C#

 
GeneralRe: REF AND OUT VARIABLES Pin
Ghydo21-Oct-09 4:04
Ghydo21-Oct-09 4:04 
GeneralRe: REF AND OUT VARIABLES Pin
musefan21-Oct-09 4:08
musefan21-Oct-09 4:08 
GeneralRe: REF AND OUT VARIABLES Pin
Saksida Bojan21-Oct-09 7:12
Saksida Bojan21-Oct-09 7:12 
GeneralRe: REF AND OUT VARIABLES Pin
Luc Pattyn21-Oct-09 5:12
sitebuilderLuc Pattyn21-Oct-09 5:12 
Question.NET SerialPort Pin
hairy_hats21-Oct-09 2:54
hairy_hats21-Oct-09 2:54 
AnswerRe: .NET SerialPort Pin
Luc Pattyn21-Oct-09 3:22
sitebuilderLuc Pattyn21-Oct-09 3:22 
GeneralRe: .NET SerialPort Pin
hairy_hats21-Oct-09 3:55
hairy_hats21-Oct-09 3:55 
GeneralRe: .NET SerialPort Pin
Luc Pattyn21-Oct-09 4:50
sitebuilderLuc Pattyn21-Oct-09 4:50 
Hi,

1.
if the 400msec is from sending a command to getting a result, that would include:
- the output time; I would expect this simply is around N msec for N characters; it could be more on a USB-to-serial cable, as again data would be packetized probably based on a timeout;
- the reaction time; I don't know what your peripheral is, it needs to collect the command characters, interpret them, come up with an answer and send it; a tiny microcontroller (or poor software) might spend quite some time here; and if it is a meter of some kind, maybe it first has to perform its measurement, then report.
- only now can the PC start processing input. As I said earlier, that too would get packetized by the cable.

2.
if the main thread sends and waits, maybe it would be better to have it send and receive, without DataReceived event.

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages

Local announcement (Antwerp region): Lange Wapper? 59.24% waren verstandig genoeg om NEEN te stemmen; bye bye viaduct.


QuestionTimer and closing console Pin
abbd21-Oct-09 2:52
abbd21-Oct-09 2:52 
AnswerRe: Timer and closing console Pin
Alan N21-Oct-09 3:00
Alan N21-Oct-09 3:00 
GeneralRe: Timer and closing console Pin
abbd21-Oct-09 3:07
abbd21-Oct-09 3:07 
GeneralRe: Timer and closing console Pin
J4amieC21-Oct-09 3:17
J4amieC21-Oct-09 3:17 
GeneralRe: Timer and closing console Pin
abbd21-Oct-09 3:20
abbd21-Oct-09 3:20 
GeneralRe: Timer and closing console Pin
Mirko198021-Oct-09 3:36
Mirko198021-Oct-09 3:36 
GeneralRe: Timer and closing console Pin
Alan N21-Oct-09 3:21
Alan N21-Oct-09 3:21 
GeneralRe: Timer and closing console Pin
abbd21-Oct-09 3:31
abbd21-Oct-09 3:31 
AnswerRe: Timer and closing console Pin
Luc Pattyn21-Oct-09 3:25
sitebuilderLuc Pattyn21-Oct-09 3:25 
QuestionCheckedListBox how to catch a event. Pin
JollyMansArt21-Oct-09 2:30
JollyMansArt21-Oct-09 2:30 
AnswerRe: CheckedListBox how to catch a event. Pin
stancrm21-Oct-09 2:33
stancrm21-Oct-09 2:33 
GeneralRe: CheckedListBox how to catch a event. Pin
JollyMansArt21-Oct-09 3:54
JollyMansArt21-Oct-09 3:54 
Questionsocket programming Pin
3bood.ghzawi21-Oct-09 1:41
3bood.ghzawi21-Oct-09 1:41 
AnswerRe: socket programming Pin
Eddy Vluggen21-Oct-09 2:00
professionalEddy Vluggen21-Oct-09 2:00 
AnswerRe: socket programming Pin
HimanshuJoshi21-Oct-09 3:10
HimanshuJoshi21-Oct-09 3:10 
QuestionNavigating through records. Pin
Minotaur-Mortal21-Oct-09 1:21
Minotaur-Mortal21-Oct-09 1:21 
AnswerRe: Navigating through records. Pin
Eduard Keilholz21-Oct-09 2:39
Eduard Keilholz21-Oct-09 2:39 

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.