Group Details

administrators

  • RE: Redirecting HMI from studio

    @tcele said in Redirecting HMI from studio:

    There is one last flaw that I would like to work out. The chromium instance allows the user to use gestures and go back and forth in the history of pages. In some cases get to a restricted page this way.
    I googled vigorously to solve this issue, but so far to no avail. Any advice on this topic?

    Hi Ivan,
    I wasn't successful in finding any suitable solution as well. Have a look at xinput command which might help you to disable all the gestures at Linux level. I didn't tried it myself however if you find any working solution our team and the community will be happy to hear about it.

    Cheers,
    Tomas

    posted in REXYGEN Studio
  • RE: Redirecting HMI from studio

    @tcele
    You are almost done. The last step is to create new file in HMI Designer save it to hmisrc dir and name it servis.hmi.svg. You can design new screen in this file.

    posted in REXYGEN Studio
  • 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

    posted in REXYGEN Studio
  • RE: Redirecting HMI from studio

    @tcele
    Are you sure, that your custom.js is included during the build? Please add alert('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 requests servis 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

    posted in REXYGEN Studio
  • 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.

    1. Create CUSTOM and CUSTOM/js folder in your hmisrc folder.
    2. Create custom.js file in the CUSTOM/js folder
    3. 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
    4. 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
        }
    });
    };
    
    posted in REXYGEN Studio
  • RE: Redirecting HMI from studio

    @tcele Hello Ivan,

    thank you for your post. I would suggest to solve this request by means of REXYGEN HMI Designer. Just introduce another layer which will hide/show (Group Animation -> Opacity) according to the key switch digital signal.

    Kind Regards,
    Tomas

    posted in REXYGEN Studio
  • The new tool - Device Web Management (DWM) is officially released

    Hello,
    we have prepared a new web application that will make it easier to work with Debian devices. Device Web Management is a supplementary web application for REXYGEN-powered devices. The application lets user to setup a handful of various features whose configuration would otherwise be accessible only through the command line interface of the underlying operating system.

    obrázek_2021-06-30_100603.png

    All necessary information should be in the User guide.

    Cheers,
    Jan

    posted in Development tools
  • Raspberry Pi OS image with REXYGEN for Monarco HAT

    Hello,
    we started to generate our own Raspberry Pi OS image, where REXYGEN and our new tool Device Web Management is already pre-installed. The image is dedicated for the Raspberry Pi with Monarco HAT (Monarco driver is installed). It is therefore no longer necessary to install REXYGEN on the Monarco HAT manually or using scripts.

    The procedure for downloading the image and installing it is described in the Getting Started on Monarco HAT manual. You can also find here a list of all changes compared to the official Raspberry Pi OS image.

    The image will always be generated and published on this link once in a while. We hope it will make it easier for you to work with Monarco HAT and REXYGEN. If you encounter any problem, do not hesitate to contact us here on the forum or on our support.

    Cheers,
    Jan

    posted in Monarco HAT
  • RE: JSON string parsing issue

    @mkrupicka Hello Michal,

    thank you for your post. You are right - the behaviour of PJSOCT function block is not as one would expect. However it is also caused by format of "id" item - since the value is written without quotation marks it represents number by the definition.

    I would use different approach:

    • search the string for substring "id"
    • offset the position (I presume that the message structure is given)
    • extract substring (I presume that the ID length is given)

    cfc11698-ac5b-4527-bb9a-989303ca4380-image.png

    If you need any help just let me know.

    Kind regards,
    Tomas

    posted in REXYGEN Studio
  • RE: HMI with multiple pages

    @mikeyh

    @mikeyh said in HMI with multiple pages:

    Also when ever I place an object down to use as a link it creates a button in the HMI config, is this right?

    Not sure exactly what you mean. You can turn a rectangle into "link button" as written at the beginning of this post.

    What link do you see when you stop above the rectangle with the link on active HMI page? Do you see e.g. YOUR_IP_ADDRESS/hmi/designer-rig1.html?

    Can you share your source files?

    Cheers,
    Tomas

    posted in REXYGEN HMI Designer