LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA resource name-COM ports

Is there any setting for VISA resource name so as to configure it to display a list of only COM ports and not any other serial ports like LPT or GPIO INTFC?

0 Kudos
Message 1 of 5
(5,055 Views)

Hi mnx,

 

you can use VISAFindResource to get a filtered list of VISA resource names, it's context help describes all parameters...

I use "ASRL[0-9]*::?*INSTR" to filter COM ports.

 

Best regards,
GerdW


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

Hi GerdW,

 

Thanks for quick response..Smiley Happy

 

I was planning to do something with VISA resource name as with VISA find resource I need to keep on checking dynamically if user has plugged in any USB-serial converter on the fly and that will increase code complexity a bit..Also, I want to display ports as "COMx" rather than their addresses "ARSL.."

 

0 Kudos
Message 3 of 5
(5,041 Views)

Anyways, I am planning to implement the following code:

 

 

COM.JPG

 

Just wanted to confirm if something of this sort is possible with VISA resource name settings?Smiley Wink

0 Kudos
Message 4 of 5
(5,038 Views)

There's some filtering available on the resource control. Check attached picture.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 5
(5,015 Views)