Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

VISA Find resource function regular expression

$
0
0

Hi guys,

 

I've been trying to get which Serial port is a GPS receiver connected to using the VISA Find Resource Function with no luck. The idea is to use a regular expression similar to

 

ASRL?*INSTR{VI_ATTR_ASRL_BAUD == 9600}

 

but instead of looking for baud rate, I want to search the value

 

ASRL3 (COM3 - GNSS Receiver)

 

as seen in MAX/VISA Test Panel. The attribute name is VI_ATTR_INTF_INST_NAME.

 

Something like ASRL?*INSTR{VI_ATTR_INTF_INST_NAME == ASRL? (COM? - GNSS Receiver)} should work, but it's not.

 

How should I write the expression?

 

Thanks! :)


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>