This feels like a bug, because I can't believe that this is an intended behaviour. ![]() However the Arduino board only receives these serial messages if the serial monitor of Arduino's IDE was first opened and closed. The line Set CPort Is what causes the error to pop up: Sub ComPortTesting () Dim CPort As MSComm Set CPort New MSComm. VBA RS232 Class - serial port I/O with modCOMM Microsoft Blog (URL 1) recommends replacing MSCOMM32. ![]() I'm trying to have an Arduino Uno board receive messages from a piece of code written in VBA, using the board's serial port via a USB connection.īoth pieces of code function correctly : I have successfully sent messages from VBA and received them on the Arduino board, triggering an output from the board. These are the lines of code that create the error (omitting the remainder of the subroutine).
0 Comments
Leave a Reply. |