Author Topic: Advanced HMI on Linux?  (Read 17998 times)

KanHaz

  • Newbie
  • *
  • Posts: 19
    • View Profile
Advanced HMI on Linux?
« on: January 06, 2015, 03:18:53 PM »
Has anyone tried to run Advanced HMI on Linux? I didn't find anything when I looked it up. I know Linux has a program called Wine that will allow it to run Windows executables on it so I thought it was a possibility. If anyone has tried please let me know how it went.

Thanks.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Advanced HMI on Linux?
« Reply #1 on: January 06, 2015, 03:51:19 PM »
I have done some limited testing on Linux with 3 packages installed:

Mono-Complete
Mono-Winforms
Mono-Basic

Once they are installed, I have been able to compile AdvancedHMI with Visual Studio on Windows, copy the files to the Linux machine, then at the command prompt type

mono AdvancedHMI.exe


More testing will continue to ensure further compatibility.

KanHaz

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: Advanced HMI on Linux?
« Reply #2 on: January 08, 2015, 03:32:44 PM »
When you tested this what files did you copy? I have only copied the .exe in the past so I want to make sure I'm not missing anything.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Advanced HMI on Linux?
« Reply #3 on: January 08, 2015, 03:40:11 PM »
I copied everything in the debug (or release) directory except the OPC files. I did find that if you use the MessageDisplayByValue, it references the speech library which is not part of Mono, so I also copied the speech DLL from the GAC directory on my PC

Noe

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Advanced HMI on Linux?
« Reply #4 on: January 08, 2015, 04:59:01 PM »
These are excelent news Archie, but what distros are you pointing at? Do you think not-x86 processors would be possible someday? I am thinking in thing like Raspberry Pi and making extremely cheap HMIs! But for that it would not require a very high tech specs from the system I guess...

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Advanced HMI on Linux?
« Reply #5 on: January 08, 2015, 05:28:05 PM »
I have been doing my testing on a BeagleBone black with an arm processor and Linux Debian. This should work just as well on a Pi. But I will say that getting everything with Mono to work is no small task. The Mono packages are not built for these processors so it all has to be compiled from source which takes 8-10 hours.

jsorah

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Advanced HMI on Linux?
« Reply #6 on: January 29, 2015, 05:24:16 PM »
Archie, did you have to do any soft links to DLL's in your solution when using mono?

I was having issues (Incomplete Solution error) running my project until I executed this in either the AdvancedHMI/bin/Debug or AdvancedHMI/bin/Release directory on the linux machine:

Code: [Select]
ln -s MfgControl.AdvancedHMI.Controls.dll ".\\Mfgcontrol.AdvancedHMI.controls.dll"
ln -s AdvancedHMIControls.dll ".\\AdvancedHMIControls.dll"


** I also want to note this is on CentOS 7 **

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Advanced HMI on Linux?
« Reply #7 on: January 29, 2015, 06:36:44 PM »
I ran my tests on Debian. I had to install mono, mono-winforms, and gdiplus libraries. The copy everything from the bin directory, except the OPC files, to the Linux machine. To run the program , at a prompt:

mono AdvancedHMI.exe

If you have difficult problems, this will give you more details on startup:

MONO_LOG_LEVEL=debug mono AdvancedHMI.exe

Noe

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Advanced HMI on Linux?
« Reply #8 on: February 02, 2015, 07:12:43 PM »
Great news for those who want to build extra cheap HMI's and do not want to mess with Linux (nor have the time): Raspberry Pi model 2 will run a free version of Windows 10. Hopefully AHMI will be able to run on the new quad core device without any special fix or patch, and smoothly!

http://www.theverge.com/2015/2/2/7962179/raspberry-pi-windows-10

http://www.raspberrypi.org/raspberry-pi-2-on-sale/

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Advanced HMI on Linux?
« Reply #9 on: February 02, 2015, 07:55:28 PM »
Great news for those who want to build extra cheap HMI's and do not want to mess with Linux (nor have the time): Raspberry Pi model 2 will run a free version of Windows 10. Hopefully AHMI will be able to run on the new quad core device without any special fix or patch, and smoothly!

http://www.theverge.com/2015/2/2/7962179/raspberry-pi-windows-10

http://www.raspberrypi.org/raspberry-pi-2-on-sale/
This is really cool and good news. It will give the Beagleboard a run. But is there a touch screen to couple to it that will be able to beat the cost of a Beaglebone Black with a 7" 4D Systems touch screen at $55+$89=$144


After a quick search I see that SainSmart makes a 7" touch screen for $72. If that works with the Pi2 and Windows 10 has a driver for it, you can't beat the $35+72=$107 for a touch screen HMI.
« Last Edit: February 02, 2015, 07:58:49 PM by Archie »

Noe

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Advanced HMI on Linux?
« Reply #10 on: February 02, 2015, 09:04:05 PM »
They have planned to release one this year:

http://techcrunch.com/2014/10/21/pi-pads/

No idea about price, but so far its low hardware prices can't be beat, but most important, community and development have been more active on RPi than beagleboard. Not only hobbyism, also industrial.
« Last Edit: February 02, 2015, 09:08:44 PM by Sprungmonkey »

Noe

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Advanced HMI on Linux?
« Reply #11 on: February 02, 2015, 10:45:19 PM »
Also, depends on what you plan to use about its hardware. If you just want to use it as a HMI, I would go for RPi. If you want to use it also for control, Beaglebone has lot more I/O support, by far.

Windows is the advantage that I see for RPi, as for final user it will be always a way to stay in the comfort zone and just see it like "any other PC".


Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Advanced HMI on Linux?
« Reply #12 on: February 03, 2015, 03:17:20 AM »
I'm interested to see how the Pi2 compares in speed to the B+.The boot time for the B+ is painfully slow. The Beaglebone Black is much faster. I 100% agree that being able to run Windows gives a huge advantage and you don't have to worry about incompatibilities with Mono on Linux.


Noe

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Advanced HMI on Linux?
« Reply #13 on: February 03, 2015, 10:16:15 AM »
Hopefully AHMI will run with no hassle in Windows 10.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Advanced HMI on Linux?
« Reply #14 on: February 03, 2015, 10:35:48 AM »
Reading a little further into it I see they mention running "universal apps". In other words, apps based on WPF/XAML, so my suspicion is that AdvancedHMI will not run on this version of Windows since it is a winforms app
« Last Edit: February 03, 2015, 12:57:51 PM by Archie »