Announcement

REXYGEN forum has been moved. This one is closed.
Head over to the new REXYGEN Community Forum at https://forum.rexygen.com.

Looking forward to meeting you there!
 

#1 2018-01-01 17:53:33

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Objects disappearing from HMI after variable change

If I'm going back to the tab in my browser with My REXcontrols HMI, after visiting another tab, then some components on my HMI-page are disappeared.
They will only reappear after refreshing the page. This only happens if the variable which controls the component has changed while I was visiting the other tab(s) if the value was left unchanged then everything is ok.

It seems to happen only on components with a 'group animation' where multiple selections were done....

2018-01-01-17_40_28-Group-Animation.png

...or where a 'display' component is used in combination with a 'group animation'.

2018-01-01-17_21_59-Title_20180101-1747.png


I tried different browsers (Chrome and Opera) with always the same result. (Edge from MS is not even showing the values on the 'display' components...)

Offline

#2 2018-01-02 11:29:38

jaroslav_sobota
Administrator
Registered: 2015-10-27
Posts: 535

Re: Objects disappearing from HMI after variable change

Hi scoobsalamander,
thanks for reporting this. Our developers will have a look at it and we'll get back to you.

Best regards,
Jaroslav

Offline

#3 2018-01-02 11:51:59

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: Objects disappearing from HMI after variable change

Hi Jaroslav,

In the mean while I did some more testing and it seems to be also with components with only a single animation. I have the impression that the objects I am willing to control along the Y-axis are sometimes way off on the Y-axis after the process value has changed. After refreshing the page it all turns back to normal until another change of the value. On the same HMI I have also a component which is being scaled and this is working fine. (also colour changing is working)

(FYI : I updated to the latest version just a few days ago, maybe this behaviour has something to do with it? I can't remember seeing this in the previous version(s) although this is already some time ago....

SVG file :

temp_hmi_svg.zip

Last edited by scoobsalamander (2018-01-02 11:58:32)

Offline

#4 2018-01-10 09:22:01

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: Objects disappearing from HMI after variable change

..were you guy's able to generate the same behaviour for movements along the y-axis?

Offline

#5 2018-01-11 14:01:23

osevera
REX developer
Registered: 2015-10-27
Posts: 13
Website

Re: Objects disappearing from HMI after variable change

Hello scoobsalamander,
I create test project from the SVG file you send me. Unfortunately I was not able to reproduce your behavior. I find out that the setpoint triangle had a yRange attribute set to 300. But if I want to move it along y axis upward the yRange attribute must be set to -300.

I know that sometimes some components with Group animation enable were disappearing in old Firefox, but never in Chrome. Please let me know if you can observe the behavior also with my example?

Err_Translate_X.zip

Offline

#6 2018-01-11 16:50:54

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: Objects disappearing from HMI after variable change

I tried your example and it is working fine in my browser. Then I tried the -300 setting and it is working but only after changing the value in REXcontrols....and after a refresh it is again offset....so actually just the opposite from what I noticed before.

When I decrease the width of my browser to only half the size of my monitor I get some space on both sides of the window and then I can see the disappeared triangle on the bottom of my screen.

Offline

#7 2018-01-11 17:05:53

osevera
REX developer
Registered: 2015-10-27
Posts: 13
Website

Re: Objects disappearing from HMI after variable change

The animation of the object is done via changing the transformation attribute of the SVG group. Can you check using the Developer tools in Chrome or Firefox what is the value of the transform attribute.
translateAttr.png

Offline

#8 2018-01-11 20:59:49

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: Objects disappearing from HMI after variable change

2018-01-11-20_53_43-Title.png
2018-01-11-20_51_37-2014.png

It seems that the sign is changing somehow after refreshing the page and/or refreshing the value in REXcontrols.

After refreshing the page it becomes positive and when I change the value then it becomes negative again.

Offline

#9 2018-01-12 13:03:48

osevera
REX developer
Registered: 2015-10-27
Posts: 13
Website

Re: Objects disappearing from HMI after variable change

Hello scoobsalamander,
thank you for reporting. Finally I was able to reproduce it. It is a bug. I will fix it for the next versions. I have also workaround for you.

Edit the C:\Program Files (x86)\REX Controls\REX 2.50.5.8614\HmiDesigner\libs\GENERAL\js\rex-ui-svg-general.js

//Changle line 1588
newVal = 'translate(0,' + (-tYa) + ')';
//to (remove the minus sign)
newVal = 'translate(0,' + (tYa) + ')';

Best regards
Ondra

Offline

#10 2018-01-12 14:33:35

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: Objects disappearing from HMI after variable change

Tonight I will try out this workaround. Thx for solving this issue...

Grtz,

Kris

Offline

#11 2018-01-12 21:19:41

scoobsalamander
Member
From: Belgium - Hulshout
Registered: 2015-10-27
Posts: 217

Re: Objects disappearing from HMI after variable change

It's working fine now...Thx

Offline

Board footer

Powered by FluxBB