Seite 1 von 2

#1 Sichtbarkeit von Variableninhalten im Display

Verfasst: Mo 20. Okt 2014, 17:24
von Xtof
Hallo,

im angehängten Bild sieht man die Konfiguration der Variablen "MEM.EventList.Line10" unter dem Karteireiter "Display" und wie diese im Vollansichts Display (auf einem Browser) als "Text" angezeigt wird.
Es wird nur der Defaulttext der Variablen gezeigt, nicht der aktuelle Variablenwert. Sieht man sich das ganze auf einem Apple-Device an, steht an der Stelle der Variablenwert korrekt drin.
Ebenfalls lassen sich bei mir die Kontrollelemente auf dem iDevice bedienen, im Browser funktionieren dagegen nur die Seitenumschaltungen zwischen den einzelnen Screens.

Wieso sind diese Ansichten unterschiedlich?
[img]1[/img]
[img]2[/img]
[edit]Bild sichtbar gemacht[/edit]
Xtof

#2 RE: Sichtbarkeit von Variableninhalten im Display

Verfasst: Mo 20. Okt 2014, 18:55
von Nils
Hallo Xtof,
probier mal zur Anzeige eines Wertes das Element "Wert" zu verwenden ;)
Das was du genommen hast sieht aus wie das Element "Text"

Oben links im Fenster "Struktur" kannst du gut sehen, welche Typen du verwendet hast - das hilft mir ab und an auch weiter!

#3 RE: Sichtbarkeit von Variableninhalten im Display

Verfasst: Mo 20. Okt 2014, 21:41
von Xtof
Danke Nils,

aber bei den anzuzeigenden Werten handelt es sich um echte Texte, z.B: "Garagentor geöffnet", die in LUA generiert werden.
Erstelle ich als Kontrollelement einen "Wert" statt einen "Text", wird nur "0.0" angezeigt. Und dies sowohl im Browser, als auch im "querformat" Remote auf dem iOS.

Tatsächlich funktionieren diese Texte auf einem iOS Device, aber nicht per Display von einem verbundenem Rechner im Browser.
Ähnlich ist es bei LOGIC-Befehlen auf einem Kontrollfeld "Schalter": Im iOS löst einer der abgebildeten Schalter die Funktion aus: C.LOGIC=deleteEvents()
Im verbundenen Browser bewirkt die gleiche Schaltfläche aber keinen Funktionsaufruf, obwohl das Kontrollelement beim Drücken seinen "Style" ändert.

Grüße

Xtof

#4 RE: Sichtbarkeit von Variableninhalten im Display

Verfasst: Mo 20. Okt 2014, 22:53
von Beleuchtfix
Hi Christof, bei mir sieht es genauso aus, und die Variable wird richtig angezeigt. Also Textelement ist schon richtig. Ich habe nichts im "Text" Feld eingetragen, aber das sollte nichts ändern. Ich würde noch einmal Flash neu installieren, außerdem Browser Cache löschen.

Viel Erfolg
Florian

#5 RE: Sichtbarkeit von Variableninhalten im Display

Verfasst: Di 21. Okt 2014, 09:42
von Xtof
Hallo Florian,

Flash ist aktuell, Cache geleert, aber das macht keinen Unterschied.

Es bleiben zwei Probleme:

1) Anzeige im Remote (auf iOS Device) und Display (Firefox und IE mit aktuellem Flash und geleertem Cash) sind unterschiedlich, wobei der Rechner im lokalen Netzwerk, in dem auch Domiq hängt wiederum etwas anderes anzeigt, als von extern.

2) Funktionen im LUA lassen sich über Schalter im Display nur starten, wenn sie auf dem iOS Device betätigt werden (siehe Screenshot). Wenn ich den Schalter vom Display (also über Flash) aus betätige, wird z.B.: die Funktion C.LOGIC=deleteEvents() nicht ausgelöst. Dies ist auch im lokalen Netzwerk so.

Wieso verhalten sich die Screens auf den beiden Platformen unterschiedlich?
[img]1[/img]
Grüße

Xtof
[edit]Bild sichtbar gemacht[/edit]

#6 RE: Sichtbarkeit von Variableninhalten im Display

Verfasst: Di 21. Okt 2014, 09:51
von DOMIQ-Support
I don't see this going because C.LOGIC=somefunction() in the Command field is a wrong command and it won't work. There should be LOGIC=somefunction()
And regarding variables: why do you enter identifier in the Text field instead of the Channel field?

#7 RE: Sichtbarkeit von Variableninhalten im Display

Verfasst: Di 21. Okt 2014, 12:04
von Xtof
Hello Piotr,

replacing C.LOGIC=deleteEvents() by LOGIC=deleteEvents() made no difference. Both versions work nicely on iOS devices (Remote) but do not work on my browsers visualisation.

[zitat]why do you enter identifier in the Text field instead of the Channel field?[/zitat]
I used this as a reference during the creation phase of my screens only to remember what will be displayed and to adjust font size etc. I expected them to be overwritten by the values of the variable named in the "Channel"-property during runtime. As you can see, the field for "Channel" holds the variable name of the variable whose value I need to display.
Anyhow I followed Florians and your suggestion to remove the "Text"-property of the "Text"-Control and only put the channel name in (see "Text_Channel.jpg") which also made no difference.
During visualisation this field will remain blank on my Firefox and IE Browsers but works (displays the value of the MEM variable) on iOS-Devices (Remote).

I updated Flash and cleared browser caches before.

Simply spoken my goal is to display textual events in my visualisation which are created by some LUA functions. These texts are put into MEM variables like MEM.EventList.Line1. My expectation was that I can trigger the LUA functions on any device and that the MEM variables will be displayed on any device. To my surprise this happens on iOS devices but not on visualisations running on external computers.

However the texts seem to be partially displayed on a local computers browser being connected to the same network as the BASE but the functions are not triggered here as well.

Best regards

Xtof

#8 RE: Sichtbarkeit von Variableninhalten im Display

Verfasst: Di 21. Okt 2014, 14:05
von DOMIQ-Support
I need to be sure because you wrote: "but not on visualisations running on external computers." Are those computers connected to the same local network as Base module or you are editing Base remotely?

#9 RE: Sichtbarkeit von Variableninhalten im Display

Verfasst: Di 21. Okt 2014, 16:13
von Xtof
Hello Piotr,

I do both, editing the Display from a remote computer. I also run the visualisation on a remote computer.

I can switch between screens but can not trigger LOGIC or display values on a remote computer.
On my iOS device I can see the values even if I am not connected to a local network.
Isn't that possible on a browser, too? It should be because all the data I want to display is available on the "Status/Zustand" tab in the editing environment. I see all the values in there.

One positive feedback:
replacing C.LOGIC=deleteEvents() by LOGIC=deleteEvents() helped on the local computer visualisation (the one which is in the same local network as the base).

Xtof

#10 RE: Sichtbarkeit von Variableninhalten im Display

Verfasst: Di 21. Okt 2014, 17:37
von Beleuchtfix
Jetzt verstehe ich auch richtig dein Problem, ich denke, dass es ein Freigabe-Problem ist. Remote und Browser arbeiten auf komplett unterschiedlichen Wegen, deshalb kann das IPhone funktionieren, während es im Browser nicht geht. Zum Steuern muss der Port 4224 freigegeben sein, der ist allerdings vollkommen ungesichert, von einer direkt Nutzung wird da abgeraten. Du solltest eine VPN Verbindung aufbauen und dann kannst du gefahrlos von außen steuern. Zum testen einfach mal 4224 ans Bas weiterleiten.

Viel Erfolg
Florian