Displaying pie charts / bar charts in zenon based on variable values

Displaying pie charts / bar charts in zenon based on variable values

Situation:
How to show pie charts / bar charts in zenon Runtime based on variable values?
Using zenon <= 6.50 it is possible displaying charts / bar charts using the IPA (Industrial Performance Analyser) based on alarms
Possibilities displaying charts / bar charts in zenon for variable values:
- Using the MSCHART.OCX control from Microsoft Excel as ActiveX-Object
- Some redumentary possiblities via VBA (draw objects)
- Using .NET functionalities (VB.NET/C#) -> see CopaData Demo-Project

Remedy:
If an Internet-connection is available a set of diagrams can be displayed with the help of the Google Chart API
-> a .png graphic is returned which can be displayed in a HTML picture
http://chart.apis.google.com/chart?chs=250x100&chd=t:60,40&cht=p3&chl=Hello|World
Demo-Project:
- dynamic variable selection via "Runtime Lasso" or via "Right-Double-Click" on the elements
- Display of the chosen variables in a pie chart (2D, 3D) or bar chart in different colours
- additional analysis of alarms, CEL-entries or Trend of the chosen variables
------------------------------------------------------------
Situation:
Wie können Variablenwerte in der zenon Runtime in einem Tortendiagramm/Balkendiagramm dargestellt werden?
Mit zenon <= 6.50 SP0 können im IPA (Industrial Performance Analyser) Auswertungen über Alarme in Form von Tortendiagramm/Balkendiagramm dargestellt werden
Möglichkeiten für Variablewerte:
- Einbindung des MSCHART.OCX von Microsoft Excel als ActiveX-Objekt in zenon (Ansteuerung über VBA)
- Behelfsmäßige Darstellung von Tortendiagrammen per VBA (Objekte zeichnen)
- Einbinung von .NET Funktionalitäten (VB.NET/C#) -> siehe CopaData Demo-Projekt

Abhilfe:
Besteht eine Internet-Verbindung so kann per Google Chart API Werte in verschiedenen Diagrammen dargestellt werden
-> es wird eine .png Graphik zurückgegeben welche z.B. in einem HTML Fenster angezeigt werden kann:
http://chart.apis.google.com/chart?chs=250x100&chd=t:60,40&cht=p3&chl=Hello|World

Demo-Projekt:
- dynamische Variablenauswahl per "Runtime Lasso" oder per "Rechts-Doppel-Klick" auf die Elemente
- Anzeige der Variablenwerte in Tortendiagramm (2D, 3D) oder Balkendiagramm in unterschiedlichen Farben
- zusätzliche Auswertung von Alarmen, CEL-Einträgen oder Trend der selektierten Variablen

This is a migrated post! Originally posted on 02.03.2010 by user herberto. Please be aware that information can be outdated.

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com