Visual Basic Serial COM Port Tutorial (Visual Studio 2010) - Part 3

preview_player
Показать описание
download the source code:
Рекомендации по теме
Комментарии
Автор

Check out our new podcast on work, life, money, and everything in between for the working professionals!

KelvinLeUT
Автор

Excellent tutorial, just learning vb and I've been using RS232 for years but now to ramp up the learning curve to combine RS232 in a usable vb program

heberhart
Автор

Liked the tutorial, Thanks Kelvin. I'm not new to VB but I am new to visual studio. Would you happen to have a tutorial on this very same thing except reading/writing to a USB device.

RickFlyFish
Автор

UART would be much easier. Just get a usb-serial converter on ebay.
Then you can use the USB as a COM port for controlling the robot. That was what I used for my RC car.

KelvinLeUT
Автор

If you have two usb-serial converters you can communicate between any two physical devices with COM ports. But this is serial com port communication and not USB.

KelvinLeUT
Автор

This is awesome. But is it possible to program something to determine the COM port and baud rate automatically? Maybe not Baud rate. But if I want to just be able to load the software on different computers how could my program determine the COM port of my STM automatically? It makes me think, how does for example my computer automatically determine the baud and COM port of my printer?

linkmaster
Автор

So is there any way to do USB communication using VB? Or is it a must to have the USB-serial converters? Im doing an assignment which involves controlling of a robot's movement from a computer. So I intend to use VB to communicate with a micro-controller via USB or UART.

Thank so much, please help this fellow vietnamese out :P Im an absolute beginner in VB and programming in general.

huanhoang
Автор

i have a paid project on to send text on vfd customer display from ms access vba.

sissokom.prodev
Автор

you mean you want to flush the data buffer?
there is a method to easily flush the serial port buffer
just check it out on the microsoft documentation

KelvinLeUT
Автор

Hay Kevin I need you help! I want to set up school grades in like if a student got between 0 to 49 marks he is "Fail" if he got 50 to 69 he is "Pass". 70 to 89 he is " Good". If 90 to 100 he is "Distinction".... How can I do

Jackkhan
Автор

Hello Kelvin.. still got some problems to receive sth. My outputTextBox doesn´t show anything, even during running the program the COM is shown.. What could be my mistake ? THX for your nice tutorial !!!

chaluf
Автор

hello Kelvin,

Can your piece of code used to facilitate USB communication between two computers? How can I select a physical serial COM port that can be used for USB communication. Do you have any idea. Thanks for your help!

huanhoang
Автор

do you have same example with delphi7, too?i need so much about modbus in delphi7.Thanks

verniytur
Автор

Hi
Thanks for your nice tutorial. I use it to catch data from a gps device.
BUT, how to empty the TEXT, which is continuously filled with the gps data. After a moment its lenghth is too long.
Thanks if you can provide the answer.

michelguiraud
Автор

not sure what you mean

object.text = "string" instead of appendtext?

KelvinLeUT
Автор

hello kelvin. can you make a tutorial on how VB 2008 can read strings from a microprocessor?

kristofferjannotario
Автор

Help me! send text file to com port (VB6) thanks ^^

levantoan_wp