Click here to Skip to main content
15,897,704 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Answere: Changing default value of a property of a control (DataGridView). Pin
Simon_Whale12-Jan-12 3:41
Simon_Whale12-Jan-12 3:41 
QuestionRe: e: Changing default value of a property of a control (DataGridView). Pin
priyamtheone14-Jan-12 3:27
priyamtheone14-Jan-12 3:27 
AnswerRe: Changing default value of a property of a control (DataGridView). Pin
Wayne Gaylard12-Jan-12 3:47
professionalWayne Gaylard12-Jan-12 3:47 
QuestionDirectShowLib Adjust Camera Brightness Pin
ggoutam711-Jan-12 17:31
ggoutam711-Jan-12 17:31 
QuestionVB2010 Serial Port Tutorial? Pin
JDBravo11-Jan-12 9:19
JDBravo11-Jan-12 9:19 
Answercheck this article out Pin
David Mujica11-Jan-12 10:02
David Mujica11-Jan-12 10:02 
GeneralRe: check this article out Pin
JDBravo11-Jan-12 10:11
JDBravo11-Jan-12 10:11 
AnswerRe: VB2010 Serial Port Tutorial? Pin
Luc Pattyn11-Jan-12 11:02
sitebuilderLuc Pattyn11-Jan-12 11:02 
Hi,

I've done maybe a hundred serial port applications over the years, and I can tell you all kinds of things can go wrong:
1. using wrong port
2. bad cable
3. null modem needed/not needed
4. voltage levels not appropriate
5. control lines not set properly
6. settings (baud, databits, polarity, stopbits) not matched
7. and then all kinds of software mistakes.

Trust me, you will make some of the above mistakes before everything eventually gets right. Therefore, I strongly suggest you work step-by-step and start with the easiest set-up:
1. start with ASCII text, no handshaking, and a modest setup (9600Bd, 8 databits, no parity, 2 stopbits)
2. let the most trustworthy party initially be the receiver (reason: sending is much easier than receiving)
3. observability: have the receiver show what it receives (e.g. use lowest N bits of the incoming char to set N LEDs)
4. use as much pre-existing stuff as possible on one side (e.g. use HyperTerminal on a PC to get started)
5. once the sender is programmable, make it repeat almost the same transmission regularly (send "ABCxyz" every second,
where xyz is a number between 000 and 999)

If this works, you most likely have avoided/solved most of the above problems already. Then slowly move towards your final setup. The tricky parts will show when you need high bandwidth AND good latency all at the same time, forcing you to use asynchronous operations, overlapping operations, etc. If you must debug protocols, make sure to provide good logging: log all incoming and outgoing messages into a single file.

You may think all this is a waste of time, and aim for the final setup right away. You will probably learn soon a step-by-step approach will reach the finish line much sooner, even if it means you have to modify or even scrap some code in the process.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: VB2010 Serial Port Tutorial? Pin
JDBravo11-Jan-12 11:48
JDBravo11-Jan-12 11:48 
AnswerRe: VB2010 Serial Port Tutorial? Pin
Luc Pattyn11-Jan-12 12:09
sitebuilderLuc Pattyn11-Jan-12 12:09 
GeneralRe: VB2010 Serial Port Tutorial? Pin
JDBravo12-Jan-12 4:15
JDBravo12-Jan-12 4:15 
GeneralRe: VB2010 Serial Port Tutorial? Pin
JDBravo12-Jan-12 6:19
JDBravo12-Jan-12 6:19 
GeneralRe: VB2010 Serial Port Tutorial? Pin
Simon_Whale12-Jan-12 6:26
Simon_Whale12-Jan-12 6:26 
GeneralRe: VB2010 Serial Port Tutorial? Pin
JDBravo12-Jan-12 6:38
JDBravo12-Jan-12 6:38 
AnswerRe: VB2010 Serial Port Tutorial? Pin
Luc Pattyn12-Jan-12 6:30
sitebuilderLuc Pattyn12-Jan-12 6:30 
GeneralRe: VB2010 Serial Port Tutorial? Pin
JDBravo12-Jan-12 6:46
JDBravo12-Jan-12 6:46 
GeneralRe: VB2010 Serial Port Tutorial? Pin
Luc Pattyn12-Jan-12 6:57
sitebuilderLuc Pattyn12-Jan-12 6:57 
GeneralRe: VB2010 Serial Port Tutorial? Pin
JDBravo12-Jan-12 7:17
JDBravo12-Jan-12 7:17 
GeneralRe: VB2010 Serial Port Tutorial? Pin
JDBravo13-Jan-12 6:11
JDBravo13-Jan-12 6:11 
AnswerRe: VB2010 Serial Port Tutorial? Pin
Luc Pattyn13-Jan-12 6:58
sitebuilderLuc Pattyn13-Jan-12 6:58 
AnswerRe: VB2010 Serial Port Tutorial? Pin
JDBravo13-Jan-12 10:39
JDBravo13-Jan-12 10:39 
AnswerRe: VB2010 Serial Port Tutorial? Pin
Luc Pattyn13-Jan-12 13:51
sitebuilderLuc Pattyn13-Jan-12 13:51 
Questionvb.net access controls by name Pin
alejx9-Jan-12 16:10
alejx9-Jan-12 16:10 
AnswerRe: vb.net access controls by name Pin
Luc Pattyn9-Jan-12 16:28
sitebuilderLuc Pattyn9-Jan-12 16:28 
AnswerRe: vb.net access controls by name Pin
Abhinav S9-Jan-12 21:28
Abhinav S9-Jan-12 21:28 

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.