[Module] TrendGadget - Module (all OS)

Hier könnt Ihr gute, von Euch geschriebene Codes posten. Sie müssen auf jeden Fall funktionieren und sollten möglichst effizient, elegant und beispielhaft oder einfach nur cool sein.
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

[Module] TrendGadget - Module (all OS)

Beitrag von Thorsten1867 »

TrendGadget - Module (all OS / 64Bit / DPI)

Protokollierte Daten im Zeitverlauf anzeigen.

Bild

Code: Alles auswählen

; Trend::AddItem()             - similar to AddGadgetItem()
; Trend::AttachPopupMenu()     - attachs a popup menu to the chart
; Trend::DisableReDraw()       - disable/enable redrawing
; Trend::DisplayValues()       - display all values from start value to end value
; Trend::EventColor()          - returns the color after the event
; Trend::EventIndex()          - returns the item index after the event
; Trend::EventLabel()          - returns the item label after the event
; Trend::EventValue()          - returns the item DataY after the event
; Trend::Gadget()              - create a new gadget
; Trend::GetErrorMessage()     - get error message [DE/FR/ES/UK]
; Trend::GetItemColor()        - returns the color of the item
; Trend::GetItemLabel()        - get the label of the item
; Trend::GetItemState()        - similar to GetGadgetItemState()
; Trend::GetItemText()         - similar to GetGadgetItemText()
; Trend::GetLabelState()       - similar to GetGadgetItemState(), but 'label' instead of 'position'
; Trend::GetLabelColor()       - returns the color of the item
; Trend::RemoveItem()          - similar to RemoveGadgetItem()
; Trend::RemoveLabel()         - similar to RemoveGadgetItem(), but 'label' instead of 'position'
; Trend::SetAttribute()        - similar to SetGadgetAttribute()
; Trend::SetAutoResizeFlags()  - [#MoveX|#MoveY|#ResizeWidth|#ResizeHeight]
; Trend::SetColor()            - similar to SetGadgetColor()
; Trend::SetFlags()            - set flags for Trend customization
; Trend::SetFont()             - similar to SetGadgetFont()
; Trend::SetItemState()        - similar to SetGadgetItemState()
; Trend::SetItemText()         - similar to SetGadgetItemText()
; Trend::SetLabelState()       - similar to SetGadgetItemState(), but 'label' instead of 'position'
; Trend::SetMargins()          - define top, left, right and bottom margin
; Trend::SetMask()             - define mask for FormatDate()
; Trend::ToolTipText()         - defines the text for tooltips (#Value$ / #Label$ / #Serie$)
; Trend::UpdatePopupText()     - updates the menu item text before the popup menu is displayed
Download: TrendModule.pbi
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
mk-soft
Beiträge: 3695
Registriert: 24.11.2004 13:12
Wohnort: Germany

Re: [Module] TrendGadget - Module (all OS)

Beitrag von mk-soft »

Echt Super Arbeit :allright:

Bin jetzt erst dazu gekommen mir es anzuschauen :cry:
Schön wäre es wenn man mehre Linie (Trends) anzeigen könnte.

Vielen Dank :wink:
Alles ist möglich, fragt sich nur wie...
Projekte ThreadToGUI / EventDesigner V3 / OOP-BaseClass-Modul
Downloads auf MyWebspace / OneDrive
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] TrendGadget - Module (all OS)

Beitrag von Thorsten1867 »

mk-soft hat geschrieben:Schön wäre es wenn man mehre Linie (Trends) anzeigen könnte.
In welchem Zusammenhang stehen die Linien bzw. wie werden die unterschiedlichen Daten erfasst?
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Benutzeravatar
mk-soft
Beiträge: 3695
Registriert: 24.11.2004 13:12
Wohnort: Germany

Re: [Module] TrendGadget - Module (all OS)

Beitrag von mk-soft »

Es können beliebige Daten sein. z.B Aussen-Temperatur, Innen-Temperatur, Heizkreis, Energie-Bedarf, Luftdruck.
Meisten reicht es zwei Datenskalen für Y-Achse zu haben.
Der Zeitstempel von wann der Messwert ist aber weiterhin beliebig.
Alles ist möglich, fragt sich nur wie...
Projekte ThreadToGUI / EventDesigner V3 / OOP-BaseClass-Modul
Downloads auf MyWebspace / OneDrive
Benutzeravatar
Thorsten1867
Beiträge: 1359
Registriert: 04.02.2005 15:40
Computerausstattung: [Windows 10 x64] [PB V5.7x]
Wohnort: Kaufbeuren
Kontaktdaten:

Re: [Module] TrendGadget - Module (all OS)

Beitrag von Thorsten1867 »

Habe ich das richtig verstanden, dass beide Kurven unterschiedliche Zeiten haben können und die einzigen Fixpunkte die Start- und die Endzeit sind?
Download of PureBasic - Module
Download of PureBasic - Programmes

[Windows 11 x64] [PB V6]

Bild
Derren
Beiträge: 557
Registriert: 23.07.2011 02:08

Re: [Module] TrendGadget - Module (all OS)

Beitrag von Derren »

Bild

Hier mal eine Excel-Version (die X-Achse wird von Excel automatisch beschrieben. Wie man sieht, nicht immer sinnvoll).

Messpunkte können jederzeit "rein kommen". Je nach Typ und Konfiguration des Sensors, daher müssen sich die Punkte an beliebiger Stelle auf dem Zeitstrahl anzeigen lassen.

Ich habe auch mal die von mk-soft angesprochene zweite Y-Achse für einen Regentonnenfüllstand verwendet.
Signatur und so
Antworten