Hello Stepan,
There is a XYChart component in the CHARTS library in the HMI Designer. It shows several points (lines) stored in the internal buffer. So, the trail is represented by several historical points.
Posts made by ondrej_severa
-
RE: Animation object leaving a trail
-
RE: 3D visualization
@stepan-ozana Currently, this feature is highly experimental and requires large involvement of the development team. So it in not available for public use.
-
RE: Redirecting HMI from studio
@tcele
You are almost done. The last step is to create new file in HMI Designer save it tohmisrc
dir and name itservis.hmi.svg
. You can design new screen in this file. -
RE: Redirecting HMI from studio
@tcele
I have created a minimal working example and find out there is a little typo in my example source code// indexOf if(itm.getValue() && window.location.href.indexOf('servis.html') == -1 ){
After the fix, code is working fine for me. See the attachment.
BR
Ondrej
tcele.zip -
RE: Redirecting HMI from studio
@tcele
Are you sure, that your custom.js is included during the build? Please addalert('I am here')
to your code and test if the alert occurs. I was told that you want to open this screen, whenever some operator switches some digital input. That's why my code requestsservis
data point and wait until the read value is non-zero. There is no need for a Button or Slider.If you want you can send me the source for your HMI and I can check it for you.
Best regards
Ondrej -
RE: Redirecting HMI from studio
@tcele
This behavior indicates that you are requesting too many datapoints and thus the read request is timeout. I suggest opening the SERVICE page on a different web page. You can do it by adding redirect request to custom javascript.- Create
CUSTOM
andCUSTOM/js
folder in yourhmisrc
folder. - Create
custom.js
file in theCUSTOM/js
folder - Open your page in HMI Designer, open HMI Configuration and in the HTML Export tab check Expert mode. Add two rows in the Library Path with GENERAL and CUSTOM texts. This will tell the HMI builder to include components from GENERAL library and your CUSTOM foilder. That how you append the
custom.js
file to your project - Edit the
custom.js
file with following content:
REX.HMI.init = function(){ let servis= REX.HMI.get('<name of the alias defined in HMI Designer>'); //or let servis= // REX.HMI.add({alias:"servis",cstring:"task.block:parameter"}'alias defined in HMI Designer>'); // Add new item // Subsribe to onChange event servis.on('change',(itm)=>{ // If true and not in the page redirect current page to servis page // The check for href is not necessary if only on used in index.html page if(itm.getValue() && window.location.href.indexof('servis.html') == -1 ){ window.location.href = '/hmi/servis.html'; // or open new tab // window.open('/hmi/servis.html','blank_'); } else{ // do nothing } }); };
- Create
-
RE: Color of HMI component with 'Group Animation' not correct.
@apollo I am glad that it is working.
-
RE: Color of HMI component with 'Group Animation' not correct.
@apollo Yes, I know this is inconvenient. We are aware of this limitation and will are planning to change it in the future.
Kind regards
Ondrej -
RE: Color of HMI component with 'Group Animation' not correct.
Hello @apollo,
Thecolor
function in the Group animation component does color interpolation between the given colors. So this allows you to fluently change color eg. from cold to hot. This interpolation is done if the value of the data point for the color is not on the low or high limit.
I check your SVGs but I am not able to tell if this is your case.Best regards
Ondrej -
RE: picture as background
Dear Scoobsalamander,
your background must be available in the www folder of the webserver. You have two possible options for how to upload your picture to the webserver.-
Copy your background to the
hmisrc
folder in your project. Then point your CSS tobackground-image: url("/hmi/background.jpg");
The disadvantage of this approach is that you will upload your background every time you compile the project. -
Use WinSCP or a similar tool to upload your background to the target. The location must be in the webserver root or below. The root of the webserver is in
/rex/www
folder. So upload your background to '/rex/www/bacground.jpg' and change your CSS tobackground-image: url("/background.jpg");
Best regards
Ondrej -
-
RE: HTML dropdown menu color animation
Hello Kris,
you have to subscribe for reading the alarms (some boolean signals I guess) on the main page or on every page. This depends on your project structure.
I don't know what kind of HMI you are using (WebBuDi, HMI Designer, or custom) but basically, you have to add<script> REX.HMI.init = function(){ REX.HMI.addItem({alias:"ALARMS", cstring:"task.alarm_block_or_subsytem:parameter"}).on('change',function(itm){ let index = itm.getValue(); /* HERE you have to pick the <li> or other element of you menu*/ let elem = // Some jQuery or document.queryselector magic elem.style.backgroundColor = 'red'; }) } </script>
If you are using HMI Designer, you can follow the example
0301-10_Custom_HMI_Component
or you can read Chapter 5 of the HMI manual
BR
Ondrej -
RE: $ sign missing in Group animation (HMI designer)
Hello,
thank you for pointing this out. It will be fixed in the next release. It was a small typo.
Best regards
Ondrej -
RE: Replacing typed characters for "***" while typing a password
Yes this feature is already included in your pre-release version. Just use HMI Designer and use Input component. You have to change
format
topassword
.
Best regards
Ondrej -
RE: Replacing typed characters for "***" while typing a password
Hi Peter,
the feature is now available in pre-release version 2.50.10-r5. Do you want to try it out or better wait for public release version?
Regards, Ondrej
-
RE: Replacing typed characters for "***" while typing a password
Hello Peter,
so far this feature is not available yet, but it will be soon. Just little recommendation. If you are about to use passwords in your HMI I strongly recommend to switch from HTTP to HTTPS protocol.
Just visit the https//: 127.0.0.1:8009 (mind the different port) and your communication between web browser and REGYGEN web server will be encrypted.Best regards,
Ondrej -
RE: dygraphOptions dateWindows
Hello Peter,
we are using dateWindow function during trend refresh. Thus every time we get a new data the time widow is adjusted. So you are not able to use this attribute for custom default zoom. I suggest to follow the @cechurat recommendation and create a 3 hour trend.Best regards,
Ondrej -
RE: Cannot compile in the new version of Rexygen Studio 2.50.8
Hello @sadilekivan ,
this issue was caused by unknown bug in the hashing algorithm during the HMI build process. This will be fixed in next version of our software. Thank you for the bug report.Best regards
Ondrej -
RE: Cannot compile in the new version of Rexygen Studio 2.50.8
It seems that configuration of the HMI Designer is OK. Please check if HMI can be generated from the HMI Designer.
- Delete the
hmi
directory - Open your
index.hmi.svg
- Generate the HMI using Ctrl+H
- Check if
hmi
directory withindex.html
file was generated
If this passed the problem is in the utility which calls the HMI Designer generator during compilation process in the Studio. I must prepare some better version of the script which will give us the detailed information about the error you receive.
- Delete the
-
RE: Cannot compile in the new version of Rexygen Studio 2.50.8
Hello @sadilekivan ,
I have a few questions. Can you check them for me.- Are you able to compile the project without HMI on you laptop? Just uncheck the
GenerateRexHMI
in theHMI
block. And compile it again. - Are you able to build the HMI using HMI Designer?
- Open the
index.hmi.svg
file in the REXYGEN HMI Designer tool. - Open REXYGEN HMI Configuration using CTRL+E shortcutn with no selection
- In HTML export tab check
Expert mode
and changeOutput filename
parameter to../hmi/index.html
- Close the dialog using OK button
- Then press Ctrl+H for HMI generation from the HMI Designer.
-
In HMI Designer check the python version and version of the libraries using Exensions -> REXYGEN HMI -> Version Info
-
What is you Windows version?
Thank you for your input,
Best regards
Ondrej - Are you able to compile the project without HMI on you laptop? Just uncheck the