Author Topic: Screen Shot of Program using only BasicLabels  (Read 14986 times)

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Screen Shot of Program using only BasicLabels
« on: March 14, 2013, 03:02:17 PM »
I did this more or less for a demo to show what can be done with just a BasicLabel and background image.

billfloyd806

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Screen Shot of Program using only BasicLabels
« Reply #1 on: April 10, 2013, 02:00:33 PM »
I'm just starting to use this software. How do I make a multiple screens for example I have a coating system with 15 tanks. I'd like 15 different screens, which the operator would access from a main menu? Also, I've seen some great graphics, how do you add your own custom graphics.

Thanks in advance.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Screen Shot of Program using only BasicLabels
« Reply #2 on: April 14, 2013, 06:26:46 AM »
To add a screen, right click AdvancedHMI in the Solution Explorer and select Add New Windows Form.

Most of my graphics are drawn in Adobe Illustrator and exported as PNG files. The animation can get a bit involved because it generally requires a bit of code to do.

leesmith1985

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Screen Shot of Program using only BasicLabels
« Reply #3 on: July 10, 2013, 05:35:23 PM »
Hi Archie,

Even using simply basic labels with a nice PNG background the HMI looks great.  Any chance you can provide the full source to this rather than just a screenshot?

I have two specific questions as I am a total newbie to Advanced HMI:

1.  How can I perform some processing on the data returned from the PLC before displaying it in a basic label?  I can see the general idea is to allow the user to avoid any programming and simply assign each control to a tag in the PLC.  However, when this is not sufficient, what is your suggested approach.  For example, I have a tag that returns a timestamp in Unix format (number of elapsed seconds since 1/1/1970).  Before displaying the raw integer value in a basic label, I'd like to do some processing and come up with a readable date time string to present on the HMI.

2.  Do you have a full manual of all the existing controls and examples of usage?  The quick start guide is good but it only gets you so far.  Also, an overview of the architecture would be hugely beneficial i.e. how the drivers and controls interact (the subscription model) etc.

For your information, I am a C# developer with a solid grasp of the .NET framework, but I obviously don't know much about your application specifically.  I have all the basics working now whereby I have registered a driver and have a lot of digital panel meters, gauges, momentary buttons and switches working perfectly as they are interacting directly with tag data in a one to one fashion.  I now want to be able to take it that step further and utilise additional presentation logic while still being able to use your very nice controls OR create my own controls to suit my needs.

Thanks in advance, Lee.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Screen Shot of Program using only BasicLabels
« Reply #4 on: July 10, 2013, 07:07:36 PM »
Lee

The best approach to achieving some pre-processing is to modify the BasicLabel.vb code. In the subscribing section of the code, you will find PollDataReturned**** subroutines. That is where the data that comes back from the driver is pushed into the corresponding properties. You can also pre-process in the Text Set property. I have actually done something very similar on the particular job this screen shot came from. I added a property named "ShowInTimeFormat", then in the Text Property Set routine I check if that property is true. If so, I format the value before it is written to the Text property.

There are other methods of doing this that I recommend to non-programmers that are easier, but not nearly as clean. For example, you can add a BasicLabel, set the forecolor to the same as the form background in order to hide the label. Then capture the TextChanged event to get the value and send it to another Label in the format you want.

Just a note, these techniques will change in version 3.5 which is due to be released this weekend. In version 3.5, there are OnValueChanged events and also a DataSubscriber component that lets you hook into data in the PLC without writing any code and creating an event handler to process the value as it comes back.

As for manuals, the only thing we are currently making available are the ones listed in the expansion pack section of the web site. As time goes on we will make more available. Until then, the detailed software architecture is only explained in our training classes.

Matt619

  • Newbie
  • *
  • Posts: 1
    • View Profile
Re: Screen Shot of Program using only BasicLabels
« Reply #5 on: October 24, 2013, 01:11:02 AM »
which the operator would access from a main menu? Also, I've seen some great graphics, how do you add your own custom graphics.
Guaranteed pass4sure  exam preparation . good luck

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Screen Shot of Program using only BasicLabels
« Reply #6 on: October 24, 2013, 12:07:47 PM »
which the operator would access from a main menu? Also, I've seen some great graphics, how do you add your own custom graphics.
This project had an image created in Adobe Illustrator which was exported as a PNG, then used as the BackgoundImage of the form.

singh_schneider

  • Newbie
  • *
  • Posts: 10
  • Schneider Electric Automation
    • View Profile
Re: Screen Shot of Program using only BasicLabels
« Reply #7 on: October 14, 2014, 02:21:46 AM »
I am trying to use AdvancedHMI in C# 2012 express.can anyone suggest me how to use this VB solution
in an C# project?
As my 1st attempt i tried to convert the graphic controls (tank , pipe etc) into dll by making a class library project and building it , but it gave me too many errors , i did referenced all the dlls available inside the project
My 2nd attempt was to add a C# project inside AdvancedHMI VB solution. I added reference to the two projects and referenced both dlls kept in support folders. I brought me communication controls but graphics controls are missing.
Pls take a look at the attached snap.
I am also wondering how this guy has done it with C# 2010 Express ??
http://www.youtube.com/watch?v=V-9Uxth3Xqo
Sachin Singh

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Screen Shot of Program using only BasicLabels
« Reply #8 on: October 14, 2014, 07:46:16 AM »
The next release of version 3.80 has been modified to make it easier to add a C# project to the solution.

singh_schneider

  • Newbie
  • *
  • Posts: 10
  • Schneider Electric Automation
    • View Profile
Re: Screen Shot of Program using only BasicLabels
« Reply #9 on: October 15, 2014, 12:29:43 AM »
Hey Archie, i am have searched for AdvancedHMI 3.80 but could not find it. Is there a way i could get it ??
Sachin Singh

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Screen Shot of Program using only BasicLabels
« Reply #10 on: October 15, 2014, 06:13:19 AM »
i have searched for AdvancedHMI 3.80 but could not find it. Is there a way i could get it ??
It is  not released yet. Still going through testing.

singh_schneider

  • Newbie
  • *
  • Posts: 10
  • Schneider Electric Automation
    • View Profile
Re: Screen Shot of Program using only BasicLabels
« Reply #11 on: October 15, 2014, 07:39:09 AM »
If AdvancedHMI could be used win C# without much hassle, it would certainly add to its popularity. Its a sensible effort thats being made..
Sachin Singh