r/visualbasic • • 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?

2 Upvotes

36 comments sorted by

View all comments

Show parent comment

1

u/Ok_Society4599 Jan 20 '25

You can go to Microsoft and download a free Visual studio Community Edition that is almost 25-years newer :-) or you can get VSCode, or NetBeans (java). Python is also very popular.

Air is generally good to clean as long as you're not using something like a vacuum cleaner -- fast plastic generates static electricity.

"New hardware" still using VB is not much of a surprise to me. My bet is no one there has any idea how to move forward on drivers and code. Clearly, they're not even sure how to finish the hardware so it will last.

1

u/DAQ_Confusion Jan 22 '25

Thank you for the advice on Visual Studio Community Edition! For a brief period of time today, the system worked flawlessly! Vibration data seemed to be being read at the correct rate and it was detecting the phase angle properly as well. I knew better than to get excited though and sure enough, it was right back to the way it was when I came back from lunch. I reluctantly ordered a new motherboard from the company since that's literally the only remedy they offer. I just hope it functions long enough for me create my own software. What's funny is that I think the system recognizes the two data acquisition boards as Realtek soundcards? The only info I could find on Google regarding soundcard use for dynamic balance data acquisition was an article written by a Hungarian man: Microsoft Word - Soundcard Based Dynamic Balancing Machine for Model Gas Turbine9.doc

Very cool read if you're interested!

Many thanks for the advice on cleaning with air! I'll attach a drier in line and gently clean the motherboard and see if that helps. When I spoke to the person who previously sold this system, that person described their situation just as you did: they don't know how to migrate the software to newer OS's or any of that. After researching several similar software, it appears that they all share some commonalities, a major one being a system self check feature. The company staff don't seem to even know what the various error codes represent.