07-07-2014 07:08 AM
Hello i posted a post before and now i have come a little bit further in my project. I now have a program that you write a ip in and the program shows what instrument it is if the ip is connected and answer. What i have to do is to read a list of ip addresses and for those ip's that are connected i put them in a list and for those that are not connected i will ignore.
Form the list of the connected instruments i just made i then want to be able to choose one of the ip's that i want to check what instrument it is. I now wonder how i can search trough a list of ip's and then put them in to a list so i can click on them to choose them?
07-07-2014 07:10 AM
07-07-2014 11:45 PM - edited 07-08-2014 12:14 AM
When you say IPs do you mean IP addresses? If so, they are simple strings so you would store you list in an array of strings.
To allow people to select one, you can put this array of strings into a single column listbox and use an event structure to tell when the user double-clicks of one of the items.
Or selects an item and clicks an OK button.
Or either.
Mike...
07-09-2014 02:21 AM
Thanks for the help i now solved the problems i had. What i now try to do is to search trough all ip's with a for lop and now i want to put all ip's that respond in a combobox (or similar) and those who no respond i want to ignore. Since i get an error when an instrument doesent respond i want to use that sort out all ip's. Anyone that have any idea how i could do this?
07-09-2014 04:19 AM - edited 07-09-2014 04:19 AM
Oh i misseed your answer. Yes i mean IP addresses. Thats exactly what i try to do now. I ping all IP addresses and those who respond i want to put in some kind of drop-down menu or list. My problem now is that i dont know how to continously put strings in arrays/lists?
07-09-2014 04:32 AM
07-09-2014 04:37 AM
Yeah i guess im totally new to LV. What array function do you use i middle of the picture?
07-09-2014 04:38 AM - edited 07-09-2014 04:39 AM
Hi qweewq,
that's a SNIPPET - and I used BuildArray…
When you are "totally new" to LabVIEW you should start by going through all those FREE online courses on NI.com and study all those example VIs coming with LabVIEW…
07-09-2014 04:39 AM
Great i will try this. Thanks!
07-09-2014 04:41 AM
What is that pink box called array in you picture?