From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering VISA based on NI MAX name

Solved!
Go to solution

I'm creating an application in which users enter various serial devices during configuration; ideally the application will filter out the ability to, say, insert an actuator serial device where a sensor serial device was expected. As part of the solution, I've configured NI MAX on each user's computer to reliably assign a human readable name to the VISA resource, eg "FlowSensor" instead of "COM10". This also prevents the change of USB ports from affecting the usability of the application, as NI MAX names are the same no matter which port the device is plugged into.

 

I'm aware of these resources already, they are useful, but do not answer my question:

http://zone.ni.com/reference/en-XX/help/371361N-01/lvinstio/visa_find_resource/

http://www.ni.com/example/54542/en/

 

I'd like to create a regular expression based filter that lets me show only certain NI MAX names in a dropdown list (through, eg, a listbox). Thus far, I haven't found where the VISA control gets the NI MAX names from, as the "Resource Name" property and "Interface Description" properties both do not show it.

 

Alternatively, if there's a property or set of properties that uniquely identify an instrument regardless of computer/USB port, I could craft a solution based on that, though I've looked at the following with no luck:

 

Thanks for your help!

 

 

 

 

0 Kudos
Message 1 of 2
(2,156 Views)
Solution
Accepted by topic author ijustlovemath

Looking for something like this?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(2,132 Views)