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 7
(180 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 7
(174 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 7
(164 Views)
Solution
Accepted by topic author jiangliang
Message 4 of 7
(145 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 7
(86 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 7
(81 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 7
(39 Views)