Author Topic: Changing The IP Address of the driver  (Read 3149 times)

lyndons

  • Newbie
  • *
  • Posts: 5
    • View Profile
Changing The IP Address of the driver
« on: May 21, 2016, 12:23:51 PM »
Hi
I have installed the latest version of adv hmi onto two different machines, both windows 7. When I add the ethernetIPfor SLCmicro driver, I cannot change the IP address from 192.168.0.10, which seems to be the default. Is this correct? I get the error in the attached picture -

Cheers

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: Changing The IP Address of the driver
« Reply #1 on: May 21, 2016, 12:32:55 PM »
What controls do you have on the MainForm?

Godra

  • Hero Member
  • *****
  • Posts: 1446
    • View Profile
Re: Changing The IP Address of the driver
« Reply #2 on: May 21, 2016, 04:44:36 PM »
I did get the same error once.

From what I recall, it was sufficient to close VS, re-download AHMI and start with fresh solution.

lyndons

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Changing The IP Address of the driver
« Reply #3 on: May 21, 2016, 08:09:13 PM »
What controls do you have on the MainForm?


I have none on one machine and 3 x panel meters on another. Two of the panel meters are talking nicely to a
modbus tcp device. The third panel meter is linked to the ethernetIP driver.

Both machines have the same error and both have VS2015 installed.

Godra

  • Hero Member
  • *****
  • Posts: 1446
    • View Profile
Re: Changing The IP Address of the driver
« Reply #4 on: May 21, 2016, 11:07:49 PM »
I just tried both v399e ad v399f and am getting the same error.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: Changing The IP Address of the driver
« Reply #5 on: May 21, 2016, 11:44:27 PM »
Try this test and let me know the results:

- In Solution Explorer, right click the AdvancedHMI project and select Add->Class
- Give it the name Test
- Add the code , so the new file looks like this:
Code: [Select]
Public Class Test
    Inherits Control

    Public Property IPAddress As String
        Get
            Return Process.GetCurrentProcess().ProcessName
        End Get
        Set(value As String)

        End Set
    End Property
End Class
- Build the Project
- Open MainForm.vb
- In the ToolBox, you will see Test
- Add a Test to the form
- Look in the Properties Window and see what it shows for IPAddress
- Let me know what that value shows

lyndons

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Changing The IP Address of the driver
« Reply #6 on: May 22, 2016, 03:37:59 AM »
Hi Archie
I have tried the test class and offer the following image.
Many Thanks
Lyndon Smith

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: Changing The IP Address of the driver
« Reply #7 on: May 22, 2016, 06:59:58 AM »
I see what is causing the error. You are running an express version. Can you install VS2013 Community Edition:

https://channel9.msdn.com/Events/Visual-Studio/Connect-event-2014/040


lyndons

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Changing The IP Address of the driver
« Reply #8 on: May 22, 2016, 09:52:52 AM »
Hi Archie
I can do that and will. May I ask what the difference is and where the problem lies? Also how do we use an ini file with a driver?
Cheers
Lyndon

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: Changing The IP Address of the driver
« Reply #9 on: May 22, 2016, 10:09:19 AM »
The Express versions were Microsoft's first versions made available for free. They limited them to a single language, stripped out many features, and renamed the executable. The AdvancedHMI drivers have a problem with this.

There is a walk-through for using the INI files, you can find here:

http://advancedhmi.com/forum/index.php?topic=781.msg3782#msg3782

Currently this only works on the AB drivers.

lyndons

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Changing The IP Address of the driver
« Reply #10 on: May 22, 2016, 06:09:32 PM »
All good now, thanks Archie.