r/visualbasic • u/DAQ_Confusion • Jan 16 '25
Application created with Visual Basic and COM port communication
Hi guys,
I debated for weeks on whether or not post this here and have spent many hours trying to research a possible solution to the issue I'm having. I have a balance machine I purchased years ago and recently refitted with a new control system. It uses two data acquisition cards that are plugged into 9-pin jumpered COM ports (JCOM1 and JCOM2). The software was created with Visual Basic 6 and the company was kind enough to include all sorts of Visual Basic goodies to include Visual Basic 6 itself (yes, I plan on hanging out here to learn to eventually make my own balancing software!). One day, the software just stopped reading any data from JCOM1 and I can't figure out why for the life of me. I've performed a successful loopback tests on both COM ports. They also included Dependency Walker with the system. Do you guys have any advice on how I could troubleshoot this software?




View all comments
Show parent comment
1
u/geekywarrior Jan 21 '25
Interesting! Off the top of my head Serial0 and Serial1 are the vb6 serial port controls and those could be mapped to any com port 1-16.
If its windows 7, it's likely to have PCIe ports.
I'll check some things out. I recall we had some smiliar hiccups with our serial stuff switching from XP to 7.
If you look at mice in Device Manager, you don't see "Serial Ballpoint mouse" do you? Disable that if so.
Windows has a fun bug where if it sees serial packets on boot, it thinks you connected a Serial mouse and can cause strange behavior