LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple way of checking multiple VISA resource name controls for a duplicate

Hi All
 
I have an app where in a configuration section the user has the ability to specify a com port for each of 17 devices.
 
Before they exit the config I wish to prevent any duplicated com port numbers by checking each of the 17 VISA resource name controls against each other for a match.
 
Does anyone know of a simple method or built in function that could achieve this.
 
Thanks in advance!
 
 
0 Kudos
Message 1 of 3
(2,791 Views)
This is how I did it in part of a program I wrote.  I made an array of the VISA resource names, then looped through and searched for each one.  If the name was found, not blank, and not the current element, then there is a conflict.
0 Kudos
Message 2 of 3
(2,788 Views)

This is similar to what I am trying to do, except I want to isolate the error.

What I am trying to do is compare 48 serial numbers in an array, find out if there is an empty string, or duplicate and note the location in the array so I can highlight the appropriate cell in the user interface.

I was using the same basic concept below, with the addition of  a shift register to which I increment when a fault match is found and input that back into the start index of the search array.

How can I get the just the array location of the duplicate or blank space out of the loop.

help

0 Kudos
Message 3 of 3
(2,610 Views)