You should only open a port once, best at the beginning of the application as others have already posted. We take weather readings all day long, every 15 seconds and never close the ports until we exit.
There are other communication programs with more capabilities such as up to 256 ports...
We fixed it with this code. Using EXECSCRPT as advised above. This works pretty well by allowing easily updated text files to control parts of the program. We can customize the program for certain customers quickly and not worry about how it acts on others.
Create the Object oForm then...
As Olaf stated just use USB to Serial adapters, they are cheap, and easy to use. Once installed they create a virtual serial device using the USB.
I use several manufacturers, sewelldirect, radio shack, and others.
$10 - 12 each when ordered in bulk.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.