I'm tasked with opening, writing, reading the response and then closing the com port. So in order
Open Com Port 1 baud rate 9600 8,N,1 or 8 none and 1
Write out a string to an instrument "#AddressReading" + return character
Wait for and gradually read the response
Close the com port to use it again in a couple of mintues
I'm using a 32-bit win OS and I've tried a couple of different methods-
https://gist.github.com/heiswayi/f47dfd8dc38955322bef
which involves integrating the win32.dll and I wasn't able to figure out how to call win32 in VBA excel
What is the best way to access a serial port from VBA?
this just caused excel to crash every time I tried to modify and run the code...not sure again if this is related to the sleep function or not.
The other thing I found was a bunch of SDK's the cost way out of my budget libraries for VBA serial communication.