08-06-2018 02:30 PM - edited 08-06-2018 02:31 PM
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!
Solved! Go to Solution.
08-06-2018 03:34 PM - edited 08-06-2018 03:35 PM
Looking for something like this?