Visual Basic – Serial communication

With this script you can send data to a serial port:

Needed:

  • Listbox

First in the FORM LOAD section load the connected comports to the listbox:

Create a function for easy serial comport writing (using the comport selected in the listbox):

to write to the serial port use:

SendSerialData("MyString")