Author Topic: Raspberry PI with Mono Issue | MessageDisplayByBit/Value  (Read 2002 times)

CCMark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« on: January 07, 2019, 08:10:16 AM »
I have a quick question about running AdvancedHMI projects on a Raspberry PI commute module 3.  My applications runs correctly except for the MessageDisplayByBit and MessageDisplayByValue items on the project.  I have put the recommended library from Windows in the AdvancedHMI/BIN/Debug folder as suggested by Archie but now it just has a blank [not showing anything] where the values need to be.   

Has anyone run into this that could lend me a hand to get this off the ground?  Am I missing another .dll from windows?

bachphi

  • Hero Member
  • *****
  • Posts: 673
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #1 on: January 07, 2019, 06:27:44 PM »
Is the Raspberry PI commute module 3 different from the Pi 3b+?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

CCMark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #2 on: January 08, 2019, 08:58:08 AM »
Not really as far as functionality.  The commute module was manufactured for embedded applications and has more GPIO pins available for development.

bachphi

  • Hero Member
  • *****
  • Posts: 673
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #3 on: January 08, 2019, 12:16:18 PM »
Have you tried the 6 standards steps on your PC to see if it's working first?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

CCMark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #4 on: January 08, 2019, 05:08:53 PM »
 ;) Yes the Windows 10 PC runs the application as expected without a hangup.

bachphi

  • Hero Member
  • *****
  • Posts: 673
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #5 on: January 08, 2019, 05:57:44 PM »
What type of PLC & communication ?  You stated that your app runs correctly except ...., can you elaborate on that?
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

CCMark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #6 on: January 08, 2019, 06:03:14 PM »
I am communicating to a AB Controllogix processor. “As expected” means that all the labels and tags / functionality of the application works correctly.  Do you have any suggestions for Mono vs Window drivers?

bachphi

  • Hero Member
  • *****
  • Posts: 673
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #7 on: January 08, 2019, 07:17:10 PM »
I assume you did install mono complete & vbnc,  and if other AAHMI controls are working fine on mono, then I would try manually toggle the bit/value.
===================================================
This is NOT alt.read.my.mind.
No such thing is sh^t-for-brains unless you are posting to alt.read.my.mind.
===================================================

CCMark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #8 on: January 08, 2019, 07:27:40 PM »
Your assumptions are correct and have tried your suggestions without any luck. It would be nice to resolve this for this particular application.  It is an NEC V404 display with the raspberry commute module built in the display. This would eliminate the need for a Micro windows PC.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5323
    • View Profile
    • AdvancedHMI
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #9 on: January 09, 2019, 09:00:54 AM »
I never actually deployed a real application on a Pi so I am just throwing darts in the dark. But is your MesageDisplay set for AutoSize? My thought is that Mono does not handle the changing text property, so maybe AutoSize set to False and make the label large enough to handle the longest message,
« Last Edit: January 23, 2019, 07:52:59 AM by Archie »

CCMark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #10 on: January 09, 2019, 09:03:44 AM »
Archie it actually is. I will try changing that and post results. 

Thank you

Ok I had tried the Autosize = false without any change.  Are their any other idiosyncrasies with mono?
« Last Edit: January 09, 2019, 10:50:16 AM by CCMark »

CCMark

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #11 on: January 23, 2019, 07:47:05 AM »
I ended up going with a small form factor PC that runs windows 10 and all is well.

abouhaa

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Raspberry PI with Mono Issue | MessageDisplayByBit/Value
« Reply #12 on: January 23, 2019, 08:41:33 AM »
I ran the AdvancedHMI on a Linux mint Cinnamon, on Raspberry Pi 3 B+ and on a Compute module 3. Compute Module 3 is nothing but a raspberry pi designed to be a little more industrial grade(no sd card hoping won't fall from the slot or dust getting inside to the contacts) Anwyays I had success running AdvHMI on all with no problem. One thing I noticed though is that forecolor or border color for example is set to "ControlText" by default in VS. In windows that translates to black (or something like black) but when you run the app using mono on linux, "ControlText" is some other color close to whitish grey. Make sure to set the text of your messages in your "messagedisplay" to custom and select pure "Black" and that the background is something very different(Black would be perfect for a test). This has fixed a few of my issues.. It could be yours...