LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you format or force a format on a string control for an ip address? dot octal notation?

I am newish to labview and need to put some user formatting including making sure the user inputs dot octal notation for and ip address
Scott Saxton
Motorola
0 Kudos
Message 1 of 7
(3,332 Views)

I'd drop four numerics (I32) (u8)* and right-click choose Display Format >>> Octal.

 

Ben

 

* Thank you Phillip!

Message Edited by Ben on 02-24-2009 01:43 PM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 7
(3,330 Views)
For an IP address, I think it would be four U8 controls... Smiley Wink

Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Message 3 of 7
(3,324 Views)
How about this IP address Xcontrol in the LAVA Code Repository?
0 Kudos
Message 4 of 7
(3,314 Views)

I mean to say octet notation.

 

Also I want to keep a single string control...and just format it with xxx.xxx.xxx.xxx

Scott Saxton
Motorola
0 Kudos
Message 5 of 7
(3,313 Views)

The XControl linked by nathand is about as close as you are going to get without writing it yourself.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 7
(3,301 Views)
If you're on Windows and feel like using a .NET control, you can use this.
Message 7 of 7
(3,290 Views)