LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a Control's List of Options

Hello. I have what looks like a simple problem. Here in this image I have shown a control with its selection window pulled down to reveal the options available. 

What I want to do is access this list, then I want to read them.

I want to compare the IP addresses shown to one I'm looking for. 

When I find a match, then I know the hardware I need to select. 

I want to select the control's value to pass along to an indicator for this sub-vi.

 

Is this possible with LabVIEW?

 

Thank you, Richard V

 

0 Kudos
Message 1 of 4
(2,404 Views)

Does;

 

Measurement I/O >>> System Configuration >>> Find Systems.vi

 

Help?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 4
(2,384 Views)

Hello Ben. Thank you, but no, this doesn't help. The control I'm using is in the Realtime-RT Utilities-System Configuration.

 

I see the same Find Systems.vi there too. I also saw the Find Hardware.vi, which is what I think I want.

 

I can't find any examples. The Help information isn't very helpful, but I'm trying to make sense of it.

 

Thank you, Richard V

0 Kudos
Message 3 of 4
(2,382 Views)

Hey Richard,

 

So you want to compare a search term to your list and use a Boolean as the result of the comparison. You should be able to do that using a String Control (or constant if it won't change), and the Equal? VI to compare it. The output will be whether or not they're equal.

 

If you use the aforementioned Find Systems VI, it should output a 1-D array of Strings of found systems that you can step through and compare to your search term.

 

To do that, you could just index the array and compare it element by element. Does that make sense?

 

As for examples, we have all of our examples listed in our example finder found under Help -> Find Examples. Was that what you meant?

 

Let me know if this helps or if I can clear anything up.


Thanks!

Timothy D.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,329 Views)