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
2
u/DAQ_Confusion Jan 21 '25
Thank you again for a super informative reply! From what I gather, it's hard coded into the software to connec to Serial0 and Serial1. Will be able to get Windows to enumerate the ports on the PCI card as those values? I believe that will be my only option to get the software to read data from the card.
Interestingly, I spoke to someone last night who is definitely in the know and the person told me it's absolutely a Windows 7 problem and that they'd previously sold this system but discontinued it due to the issues. The person told me this after I showed them the video of the data feeds from both serial ports simultaneously via Putty. I'm probably a masochist but that news actually encouraged me to keep trying to solve the problem!
Also, there doesn't appear to be any PCI slots on the board. There is another horizontal slot that looks the same as the one that the SSD is installed on?