01-04-2018 11:49 AM - edited 01-04-2018 11:54 AM
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
01-04-2018 12:52 PM
Does;
Measurement I/O >>> System Configuration >>> Find Systems.vi
Help?
Ben
01-04-2018 01:02 PM
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
01-05-2018 11:38 AM
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!