LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to share a serial port?

Solved!
Go to solution

Hello,

 

I create a dll which manage serial ports. When I use it with only one process, I'm able to communicate on the serial port.

But I would like use a second process which communicate on the same serial port through the same dll. I know it's impossible to open it twice, my dll manage it.

The problem is I can't read or write with the second proccess on the port even if it's already open in the same dll.

Is it a way to share serial port without use specific software like this one (http://www.eltima.com/fr/products/serialshare/) ?

 

Thank you

 

Ludo

Ludo
Test Bench Engineer
0 Kudos
Message 1 of 4
(5,205 Views)
Solution
Accepted by lmoinard

I don't think you can call dll from two different applications and expect it to work. When it is called from second application it creates another stack and hence another copy of dll which is trying to access same serial port which is already opened by first copy of dll.

Have you looked at this? 32bit version is free.

 

http://www.eterlogic.com/Products.VSPE.html

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
Message 2 of 4
(5,156 Views)

Thanks for your help test_man.

 

It would be my solution.

Ludo
Test Bench Engineer
0 Kudos
Message 3 of 4
(5,127 Views)

test_man

 

I have tried using VSPE to split an existing com port (FTDI USB-serial cable) and I'm not getting any data events from InstallCommCallback(). The splitter port seems to open without any errors.

 

Have you actually tried this? if so, any pointers to what I might be misconfiguring? I've tried a number of terminal emulators and they all connect to the splitter port and receive data just fine.

 

CVI 2013

Windows 7 Pro SP1 64 bit

0 Kudos
Message 4 of 4
(3,165 Views)