Author Topic: ping IP from AHMI  (Read 2038 times)

Darrell

  • Full Member
  • ***
  • Posts: 198
  • Electrician / PLC Technician
    • View Profile
ping IP from AHMI
« on: December 12, 2016, 07:43:21 PM »
is there  simple way to ping an IP from a button in AHMI , Ive seen spread sheets where you enter and IP and it opens ping.exe and returns the info to the spreed sheet

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: ping IP from AHMI
« Reply #1 on: December 12, 2016, 08:11:47 PM »
Add a button to the form, double click the button and add this code:

        Dim pinger As New System.Net.NetworkInformation.Ping
        Dim result As System.Net.NetworkInformation.PingReply = pinger.Send(System.Net.IPAddress.Parse("192.168.0.101"))

        MsgBox(result.Status.ToString)

Godra

  • Hero Member
  • *****
  • Posts: 1447
    • View Profile
Re: ping IP from AHMI
« Reply #2 on: December 16, 2016, 09:13:23 PM »
You might also try this new control:

http://advancedhmi.com/forum/index.php?topic=1562.0