LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ip address string control

I need to obtain a series of IP addresses from a user and my first thought was to pop open a dialog box and allow the user to enter the values into a string control.
I'd like to have the control show the entered IP address in the form 128.0.0.5. with the dots showing for clarity. I can't figure any way to preset the dots at strict positions that won't change. Is this  too much effort for too little results or should I maybe use four string controls or even four numeric controls?
Thanks for any suggestions.

0 Kudos
Message 1 of 4
(4,674 Views)

I think using 4 numeric controls is the simplest and you can also assure that a valid number is entered. I dropped 4 U8 controls on a decoration and place a period between each one as shown below. I didn;t play around that much but you could make it look exactly like the IP Address selection in windows for a NIC.

Message Edited by Dennis Knutson on 10-24-2007 10:09 PM

0 Kudos
Message 2 of 4
(4,657 Views)
If you are using LabVIEW 8.2 you could try the following XControl

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 3 of 4
(4,642 Views)
Thanks for thehelp, guys. four numerical controls does seem to be the easiest way.
That X control is real intersesting. I've never looked into these controls before. 
I'm wary of using code that may not be easily maintained or changed by some other programmer down the chain, but I'm certainly going to look into this.
Thanks again

0 Kudos
Message 4 of 4
(4,614 Views)