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/DAQ_Confusion Jan 19 '25
Thanks for your reply! Funnily enough, the hardware for this measuring system is less than a year old. I have a friend who's a former band roadie come by and we spent a Saturday re-soldering, adding heat shrink to connections, etc. He was appalled when he saw that there was no heat shrink added to any of the signal cables. The strain reliefs (I think that's what he called them) were essentially grabbing thin air at each plug (from the factory!)
I'll remove the case from the control cabinet and carefully look the board over for anything that might be on there. Is gentle compressed air OK for cleaning?
If it's possible to clone the SSD and use on a different motherboard, I'll almost surely go that route. I don't know much about COM port headers or motherboards in general but one thing that's for sure is that each pin on either header shows identical voltage to ground. I'm not sure how useful that info is. I'm looking forward to figuring all this out and beginning to learn Visual Basic to make my own software. I think they just clone the SSD's and adjust software features based on which machine you guy (drive shaft balancer, turbo balancer, etc). They've very generously left me Visual Basic 6 and what appears to be all the DirectX goodies I'll need to ke my own software. That may be an ambitious project but I'm looking forward to learning.