LabVIEW Development Best Practices Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

IP Validation

Dear All Engineers,

You can validate user input IP address using the attached VI.

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
Comments
Active Participant mini09
Active Participant

Can I`ve in LV11

Active Participant LuI
Active Participant

Well,

in a limited way one can.

But your intention is ambiguous IMHO. It only accepts IP adresses in dot notation (1.2.3.4) on my system. If I provide a valid machine name ('pc1234') that can be resolved here, it returns 'Invalid'. Allthough the 'String to IP'-node returns a valid IP adress, but the 'IP to String'-node changes that to an IP in dot notation. And even if one changes that nodes control 'dot notation?' to false, it returns the complete machine name including the domain name (pc1234.mydomain.local) etc., which is not completely EQUAL to what was typed in. 

You should deside what you want to achieve, e.g. test for a well-defined adress or for an adress that could be resolved or whatever.

Just my € 0.02!

Greetings from Germany!

--

LuI

Contributors