08-10-2023 02:11 PM
Hi, I have created virtual paired COM ports since I want to show I can write to one com port and then read on another. I believe i have everything setup correctly as I can use FoxTerm (terminal emulator) to write to one port and listen to another. Everything works as expected. However, I do the same in labview and labview can't even open the com port. it give me the"VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error."
Am I missing something here? Any help would be great. Here is my code for write and read.
08-10-2023 03:06 PM
Start a new topic. This one already has a solution and will just confuse users who read this topic later on. You'd probably get better response because many users won't respond to a new post on a topic that is fifteen years old. Don't forget to post your code there because we can't see all the hidden stuff.
08-11-2023 05:24 AM
What bilko said...
but also you are opening a COM port, writing to it and closing it and only then do you open the other port. Both ports should be open by the time you write to one.
Here's an example when i needed what you need now, but keep in mind it's for a specific purpose and might not work for you without changes. Mostly works only one way.
08-11-2023 10:42 AM
Most serial communication issues can be solved by watching this video: VIWeek 2020/Proper way to communicate over serial