Click here to Skip to main content
15,897,226 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# GUI Controlling An External Device Pin
OriginalGriff28-Nov-12 23:05
mveOriginalGriff28-Nov-12 23:05 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 5:33
C-P-User-329-Nov-12 5:33 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 5:47
mveOriginalGriff29-Nov-12 5:47 
I hope you have a fast UART! You're going to need at least 164K baud just to transfer the 16Kb packets in one second, let alone process them!
I would not use a fixed packet size - too much overhead. If at all possible, I would want to reduce the amount of data flying around - if you are using a UART you are probably RS232 or RS485, and the reliability drops as a function of both distance and transmission speed. The more data you throw at high speed (for the medium) the more chance of data errors/ retries. (If you are using USB then the TX speed can be pretty huge before it becomes a problem)

I would probably start looking at two threads - one to handle the raw data comms and extract the data blocks, then queue them up for the display thread. That way, the UI can continue in it's own merry way while blocks are stacking up for it.
If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 6:18
C-P-User-329-Nov-12 6:18 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 5:57
C-P-User-329-Nov-12 5:57 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 6:17
mveOriginalGriff29-Nov-12 6:17 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 6:27
C-P-User-329-Nov-12 6:27 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 8:09
mveOriginalGriff29-Nov-12 8:09 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 9:27
C-P-User-329-Nov-12 9:27 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 20:22
mveOriginalGriff29-Nov-12 20:22 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-330-Nov-12 4:38
C-P-User-330-Nov-12 4:38 
GeneralRe: C# GUI Controlling An External Device Pin
C-P-User-329-Nov-12 6:58
C-P-User-329-Nov-12 6:58 
GeneralRe: C# GUI Controlling An External Device Pin
OriginalGriff29-Nov-12 8:04
mveOriginalGriff29-Nov-12 8:04 
QuestionC++ to C# Translation Pin
GenJerDan28-Nov-12 10:37
GenJerDan28-Nov-12 10:37 
AnswerRe: C++ to C# Translation Pin
Garth J Lancaster28-Nov-12 12:22
professionalGarth J Lancaster28-Nov-12 12:22 
GeneralRe: C++ to C# Translation Pin
GenJerDan28-Nov-12 14:14
GenJerDan28-Nov-12 14:14 
AnswerRe: C++ to C# Translation Pin
Espen Harlinn28-Nov-12 12:39
professionalEspen Harlinn28-Nov-12 12:39 
GeneralRe: C++ to C# Translation Pin
GenJerDan28-Nov-12 14:11
GenJerDan28-Nov-12 14:11 
GeneralRe: C++ to C# Translation Pin
Espen Harlinn28-Nov-12 22:00
professionalEspen Harlinn28-Nov-12 22:00 
AnswerRe: C++ to C# Translation Pin
V.28-Nov-12 21:39
professionalV.28-Nov-12 21:39 
AnswerRe: C++ to C# Translation Pin
David Knechtges29-Nov-12 2:55
David Knechtges29-Nov-12 2:55 
QuestionSave data from Unbound C# DataGridView to Sql Server and then Bind Pin
ahmed_one28-Nov-12 0:59
ahmed_one28-Nov-12 0:59 
QuestionError: Interfaces cannot contain fields Pin
Joni_7827-Nov-12 23:43
Joni_7827-Nov-12 23:43 
AnswerRe: Error: Interfaces cannot contain fields Pin
Richard MacCutchan27-Nov-12 23:51
mveRichard MacCutchan27-Nov-12 23:51 
GeneralRe: Error: Interfaces cannot contain fields Pin
Joni_7828-Nov-12 0:03
Joni_7828-Nov-12 0:03 

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.