LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to monitor a serial port without occupy it

Solved!
Go to solution

Hello, I have a question about monitor com port data, I have to display some information in labview GUI, I already get the communication protocol from the vendor, but if I access the com port, the vendor's app won't be able to start, since I have occupied the com port.

 

Is it possible to only check the com port data but not really occupy it? I don't need to send any data, only recive and display.

 

Thanks!

0 Kudos
Message 1 of 10
(588 Views)

Hi jiang,

 


@jiangliang wrote:

Is it possible to only check the com port data but not really occupy it? I don't need to send any data, only recive and display.


No, you can only assign a COM port to a single application.

Why do you need the vendor app at all when you are in control of the device communication?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(582 Views)

Can't you communicate with their driver? Otherwise i guess you could use a sniffer like Wireshark, but it sounds messy.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 10
(572 Views)
Solution
Accepted by topic author jiangliang
Message 4 of 10
(553 Views)

The control logic is kind of complex for me to reimplement, so I have to leave the vendor's app to do it's job.

 

I eventually add an additional com port hardware and wire the RXD to it, read and display data from this com port. Not a perfect solution, but I can live with that.

 

0 Kudos
Message 5 of 10
(494 Views)

There are Serial Protocol Analyzer applications. Some are even free, although often with limited capabilities.

Just as an example: https://freeserialanalyzer.com/

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 6 of 10
(489 Views)

I really like "Device Monitoring Studio" (https://hhdsoftware.com/device-monitoring-studio). It's not free but it's very useful. That one lets you sniff active serial ports (show all data transferred) without interfering with it, which is super useful for debugging. You could also use the virtual splitter option, but for just looking at data I think a "sniffer" is the way to go.

0 Kudos
Message 7 of 10
(447 Views)

As an addition: a simple free variant of monitoring a COM interface is Docklight with com0com.

 

0 Kudos
Message 8 of 10
(323 Views)

Something else to consider in some situations would be getting a hardware tap:

 

Kyle97330_0-1741886675384.jpeg

 

Get one or two of these and you can use a PC to read the lines completely independently of the sender and receiver.  Can be handy if neither end of the communications is something you can run a program on (or install serial port emulation on).

Message 9 of 10
(293 Views)

Hi All

 

Thank you very much.

That is what I needed.

 

BR

Bee

0 Kudos
Message 10 of 10
(58 Views)