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! :)