LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Specfifc IP Address configure control box

Hello,

 

Is there any specific control to enter the IP Address in labview??

 

Please let me know.

 

Regards,

S Nagaraju

0 Kudos
Message 1 of 18
(6,798 Views)

No, in LabVIEW there is no ready-to-use control to input IP addresses.

 

But you can easily make your own (using a string input) or search for VIs/XControls in the forum. I'm pretty sure someone else already made such inputs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 18
(6,787 Views)

Dear GerdW,

 

If i use string control I am not able to limit 8-bit number for each portion of IP Address and it also accepts the characters and special characters also.

 

I just want to avoid those conditions.

 

 

Regards,

S Nagaraju

0 Kudos
Message 3 of 18
(6,769 Views)

Hi Sonti,

 

you can use en event structure to filter unwanted chars when the user enters them. You can even program some more checks to allow just regular IP addresses…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 18
(6,753 Views)
Why don't you use 4 numeric controls? That's how the address is set in Windows.
0 Kudos
Message 5 of 18
(6,735 Views)

Thank you very much  GerdW,

 

I will try this.

 

 

Regards,

S Nagaraju

0 Kudos
Message 6 of 18
(6,726 Views)

Dear Dennis,

 

We can use 4 numeric controls also, but only thing is cursor automatically move after entering 3 digits in each control.

 

Regards,

S Nagaraju

0 Kudos
Message 7 of 18
(6,718 Views)
That can be accomplished with a set focus property node in the value change event for each control.
0 Kudos
Message 8 of 18
(6,700 Views)

I use a string control and error check it like this:

 

IPcheck.png

========================
=== Engineer Ambiguously ===
========================
Message 9 of 18
(6,680 Views)

As already pointed out:


@GerdW wrote:

...or search for VIs/XControls in the forum. I'm pretty sure someone else already made such inputs…

https://lavag.org/files/file/36-pta-ip-address/

 

There are probably others too.

 

 


___________________
Try to take over the world!
0 Kudos
Message 10 of 18
(6,668 Views)