REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. sadilekivan
    3. Posts
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 20
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by sadilekivan

    • Disabling rexlang compile warnings

      Hello,

      In one of my codes I'm getting a warning on not using a variable even though I kinda do, what #pragma should I use to disable getting this warning

      Warning compiling file '../.rexlang/database.c' (line 29): variable 'dateInterval' is assigned but not used

      I tried #pragma warning(disable: 4189) but thats no good.

      Thanks in advance!

      posted in REXYGEN Studio
      S
      sadilekivan
    • RE: Any easy way to add a custom .js file to manage components in the HMI

      @cechurat

      I wanted to add that it just works on the correct size sometimes, so I'm still glad and waiting for the fixes in the future version.

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • RE: Any easy way to add a custom .js file to manage components in the HMI

      @cechurat

      Thanks, I have adjusted the page size, and it worked great.

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • Best way to send commands over Ethernet to a 2Dcode (QRcode) reader

      Hello,

      The current project I am working on uses a 2Dcode (QRcode) reader. This reader is connected over a switch to the RPI and has a static IP address. Connecting to it with its assigned software is no problem. There is a basic terminal which I can send commands over to read the code and get the data back.

      Now I'm trying to send a command from the RPI with the Rexygen system and I'm quite lost on what to use. Is there a block that manages ethernet communication or should I move this logic into a python script and just exchange the data with that?

      Thank you.

      posted in Communication (RS232
      S
      sadilekivan
    • RE: HMI group animation not hiding/refreshing from the start when used with X, expression type

      @cechurat

      Thanks for the responce, to fix this bug is it enough to update Rexygen studio with HMI designer or do I have to update the Rexygen core as well?

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • RE: Permanently setting REXYGEN clock

      @jaroslav_sobota

      Hello,

      Selecting the HW clock seems to fix the problem, I did try this as my first solution because it was obvious to try and get the time from the Real-time circuit, but I could swear it had some issues. Must have been some other mistake I fixed along the way.

      Anyway, everything works as intended, thanks for the swift support with the command, it proved the time was set correctly just read from the wrong source.

      posted in Monarco HAT
      S
      sadilekivan
    • HMI group animation not hiding/refreshing from the start when used with X, expression type

      Hello,

      I have a simple static string displayed on a certain screen.

      Since it doesn't change I didn't want to implement a value into the Rexygen studio. So I simply set its behaviour to a group animation of opacity with being max on 1 and min on 0. Then I connected {Ω_screen} == 5 as its connection string with the X type.

      When I start on screen 1 and it doesn't hide/refresh the element until I use screen 5 at least once, then it works fine.

      Thanks in advance for any and all input.

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • RE: Permanently setting REXYGEN clock

      @jaroslav_sobota
      Hello,

      The device wont be connected to the internet in its operation and the customer would like to set the time manually.

      Here is the output after a fresh restart:

      Local time: Sat 2020-03-14 16:26:24 GMT
                 Universal time: Sat 2020-03-14 16:26:24 UTC
                       RTC time: Thu 2020-03-19 10:38:38
                      Time zone: Europe/London (GMT, +0000)
      System clock synchronized: no
                    NTP service: active
                RTC in local TZ: no
      

      Here is the output after I set the time with the Rexygen DATETIME block:

      Local time: Thu 2020-03-19 10:30:03 GMT
                 Universal time: Thu 2020-03-19 10:30:03 UTC
                       RTC time: Thu 2020-03-19 10:30:03
                      Time zone: Europe/London (GMT, +0000)
      System clock synchronized: no
                    NTP service: active
                RTC in local TZ: no
      

      It seems that the RTC time is preserved which is neat, its just not offered in the rexygen selection as far as I looked.

      posted in Monarco HAT
      S
      sadilekivan
    • Permanently setting REXYGEN clock

      I have achieved setting the time easily with DATETIME block by using the block inputs and using the OS clock as output. The problem is this setting doesn't persist over shutting and starting of the device. It goes back to the REXYGEN clock (which is about 4 days late).

      I have read the documentation and I tried to sync these two times. Apparently it takes a while but even after further testing with another DATETIME block to sync the REXYGEN clock to the OS clock it doesn't seem to work as intended.

      Any suggestions?

      posted in Monarco HAT
      S
      sadilekivan
    • Centering a HMI string

      I am displaying an informational message on the HMI screen that is fitted into a rectangle and Id like to center it.

      I already have an idea of solving it by prefixing and suffixing it with nonbreakable spaces with a block in the Rexygen studio with a total fixed length but this all seems too much for just centering a string on the web.

      Any way to simply do it on the webpage/HMI?

      Thanks in advance.

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • RE: Any easy way to add a custom .js file to manage components in the HMI

      @cechurat

      Thanks for the advice with the virtual keyboard it works wonderfully. I rechecked yes the bug consistently happens on my raspberry screen and on my PC screen. I also rechecked the older projects and both raspberry and PC screens are loaded with the exact correct positions.

      Here is a full directory of my project:
      0_1583359112176_MotorConnector.zip

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • RE: Any easy way to add a custom .js file to manage components in the HMI

      @sadilekivan And while being close to refreshing HMI, can I set the virtual keyboard to be enabled from start?

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • RE: Any easy way to add a custom .js file to manage components in the HMI

      @jaroslav_sobota

      I tried to use the JS custom example you sent, but after a while got back to just the HMI designer when I found out about the relation operators for the expression type connection. I don't know how I missed that before. Anyways thanks.

      I do have a follow-up question, all the components are offset in the HMI to the center by a few pixels until the page is refreshed or any element used. This doesn't happen on my previous HMI projects and only occurs if the element has a set hide_by data point. Any way to automatically refresh the HMI right after it starts?

      0_1583058966098_rexhmibug.zip

      Although it is just a tiny detail, if the solutions complicated I'd ignore this inconvenience.

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • RE: Any easy way to add a custom .js file to manage components in the HMI

      @jaroslav_sobota

      I am trying to keep All of the HMI elements and its settings in the HMI designer and continue on using it, I was just wondering if it's possible to add a side .js control the hide() feature of those elements. Sort of combining these two.

      For now I'm using elements in a hidden layer and their aliases to manage hide_by parameters of all other visible elements.

      My goal is to play around in JS to hopefully get aliases of all the elements in HMI, based on some prefix or suffix hide and unhide them. Ideally, then I could just add an element in the HMI designer and change its name to something like 3_$T and then it would automatically be hidden or not hidden depending on a value in the REXCORE.

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • Any easy way to add a custom .js file to manage components in the HMI

      Hello,

      I've been recently trying to rework the way I manage multiple screens and whilst reading the documentation I found the reference to the REX HMI library. There is a lot of useful functions and I was wondering if I could implement automatic hiding of certain components depending on the alias they have by using the get() or $i() method.

      Correct me if I'm wrong if it is even supported to use the .hide() method on most of the components because I haven't managed to try to get it working yet. But if it is as it seems, my question shortly is how could I point to a custom .js script from the generated HMI in a consistent way upon recompiles.

      Also as a side note is there any known way to tell chromium to not ask for updates or translations of a site, it kind of throws off the kiosk look of a machine.

      Thanks in advance for any and all responses!

      posted in REXYGEN HMI Designer
      S
      sadilekivan
    • RE: Cannot compile in the new version of Rexygen Studio 2.50.8

      @ondrej_severa
      I have compiled the index.hmi.svg and there is no index.html. It manages to compile some files but it doesn't create any .html

      posted in Bug reports
      S
      sadilekivan
    • RE: Cannot compile in the new version of Rexygen Studio 2.50.8

      @ondrej_severa

      1. The project compiles fine without the HMI.

      2. I am unsure if the HMI compiles right in the designer since I don't get a message if it was successful. A little window only flashes and disappears. But since I don't get an explicit error message I assume it does export fine. My path was set to "hmi/index.html", I changed it to "../hmi/index.html" with no effect

      3. About the versions:

      • version: 2.50.8-10446
      • PyQt version: 5.9
      • Qt version: 5.9.7
      • SIP version: 4.19.13
      1. My laptop and Desktop are both running Windows 10 Pro.

      Hope these answers will give some insight, thanks in advance for the help.

      posted in Bug reports
      S
      sadilekivan
    • RE: Cannot compile in the new version of Rexygen Studio 2.50.8

      @jaroslav_sobota
      Thanks for the swift username change.

      Unfortunately deleting the already existing "hmi" folder did no effect. I tried launching the Studio as an administrator with also no effect. The odd problem still persists.

      Any other advice? Also made sure again the files are right, I can compile them fine on my desktop. I've tried different files on my laptop and those cannot be compiled as well. I'd be sure there is something wrong with the files but I've reinstalled and cleaned the paths three times, so I think that part should be alright.

      Is it possible that the registry could cause this? I've also noticed I have a few extra python versions on my laptop since I experimented with micropython, but uninstalling them before fully installing REXYGEN had also no effect.

      posted in Bug reports
      S
      sadilekivan
    • Cannot compile in the new version of Rexygen Studio 2.50.8

      Hello,

      I've recently updated both my laptop and desktop with the new version of Rexygen Studio. My desktop seems to be doing fine, but for whatever reason, my laptop does not want to compile any projects since then. I've tried reinstalling it multiple times and also tried uninstalling any dependencies it might have to then try to do a new Full installation. So far that didn't work, so I turn to here. My suspect is that I messed something somewhere when uninstalling the older version.

      I have tried to compile the exact same files on my desktop and they worked fine.

      Here's the output of a failed compilation:

      Processing project file C:\Users\Ivan\Documents\Rexygen\test_unit\test_unit_exec.mdl
      
      Generating RexHMI ...
        Source: C:\Users\Ivan\Documents\Rexygen\test_unit\hmisrc
        Destination: C:\Users\Ivan\Documents\Rexygen\test_unit\hmi
        Info: Processing index.hmi.svg file ...
        Error: Generating SVG file index.html failed!
        Error: "GenRexHMI.py "C:\Users\Ivan\Documents\Rexygen\test_unit\hmisrc" "C:\Users\Ivan\Documents\Rexygen\test_unit\hmi" "--clean" "--copy"" finished with error code 1
      Error: Generation of RexHMI failed: 1
      

      Also as a quick other question, I was wondering if it's possible to change my username to something like @sadilekivan, as I thought I'd be able to do that while registering but either I skipped it or did not get the chance to do it because I was just reporting my old profile.

      Thanks in advance, Ivan.

      posted in Bug reports
      S
      sadilekivan