REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • J

      PT100 thermocouple ADC conversion UniPi

      General
      • • • Jarek
      5
      1
      Votes
      5
      Posts
      356
      Views

      cechuratC

      @jarek If the UniPi you are using have RS485 bus it will work.

    • M

      Run Linux command

      REXYGEN Studio
      • • • MikeyH
      5
      0
      Votes
      5
      Posts
      276
      Views

      M

      @cechurat Hi Tomas,

      No problem, and thank you for your help as always.

      Cheers,
      Mike

    • S

      REST API communication example

      Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
      • • • stepan.ozana
      5
      0
      Votes
      5
      Posts
      232
      Views

      J

      @stepan-ozana
      Thank you for confirmation. I will update the example. Unfortunately, quite large changes occur across Matlab versions, and there are situations where a script from older versions stops working in newer ones.

      Cheers,
      Jan

    • S

      Issue with the SAT block

      REXYGEN Studio
      • • • stepan.ozana
      5
      0
      Votes
      5
      Posts
      205
      Views

      S

      @Jan-Reitinger Thanks for explanation! I promise I will study the documentation in more details next time. However, still I have some remarks here.

      Regarding SAT documentation:
      "The maximal rate at which the active limits may vary is given by time constants tp (positive slope) and tn (negative slope)."
      This statement is ambigous for me.
      If we say maximal rate of the signal is affected by some parameter rate_max, then from technical point of view, higher
      rate_max means higher allowable rate (1st derivative), thus indicating being close to immediate changes of the signal.
      So if rate_max reaches infinity, immediate changes are allowed.

      Then we should say the maximal rate at which the active limits may vary is given by INVERSE OF time constants tp,
      and rate_max = 1/tp, meaning that the meaning of logic in choice of parameters tp and tn is actually inverse.

      This is actually declared in the documentation of RLIM block as the steepest rise per second, and should be also repeated for for documentation of SAT to keep documentation consistent.

      I tried series connection of CNR and RLIM, and changing CNR on the fly. If tp=0.1, then maximal slope is 10, and the new value of CNR is
      reached in 0.1s, following linear ramp signal. This is OK, and similar functionality works for SAT block.

      Also, reading "time constants tp and tn" may indicate presence of some dynamics like first-order system 1/(tp*s+1) or 1/(tn*s+1), because this technical term is ususally used
      when talking about dynamic systems. It would be much better to simply use "parameters tp and tn" instead to make things clear.

    • cechuratC

      REXLANG include file

      REXYGEN Studio
      • rexlang • • cechurat
      4
      0
      Votes
      4
      Posts
      1.4k
      Views

      R

      @relaxc Hello,

      C code has certain limitations in the REXLANG block. A detailed description of the block is available here: https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/REXLANG.html#x274-27300015. Examples for using the REXLANG block are available in the installation. By default on the C:\Program Files\REX Controls\REXYGEN 2.50.10.13491\Examples\0203_Function_Blocks_REXLANG path. Compilation takes place only when translating the whole project in Rexygen Studio. Unfortunately, .so or .dll files are not supported in REXLANG . In REXYGEN, it is possible to call standard C language scripts with linked .so or .dll files. Scripts can be executed using the EPC block (documentation here). If you can use Python instead of C, take a look at the Python block (documentation here).

      Cheers,
      Jan

    • C

      SPI communication in REXLANG

      Communication (RS232, RS485, I2C, SPI, UDP, TCP, ...)
      • • • contactform
      4
      0
      Votes
      4
      Posts
      1.6k
      Views

      jaroslav_sobotaJ

      Hi,

      In this case you just use spi_bufTx[0] = 0;

      If you wanted e.g. SPI_MODE = 2 and LSBFIRST, you would use

      spi_bufTx[0] = 2 | 8;

      In other words, the first 2 bits define mode, the 3rd bit defines CS behavior, the 4th defines LSB etc.

      CS signal is controlled by operating system. You can only change its behavior by the 3rd bit as mentioned above.

      As for the delay function, I have turned it into a separate topic.

      Best regards,
      Jaroslav

    • G

      Links on the site

      General discussion
      • • • Geocipo
      4
      0
      Votes
      4
      Posts
      1.2k
      Views

      jaroslav_sobotaJ

      Hi Geocipo,
      I've added the link to the Support section of the main menu at www.rexygen.com.

      Thanks for reporting this.

      Kind regards,
      Jaroslav

    • C

      Measuring water flow with UniPi

      REXYGEN Studio
      • • • contactform
      4
      0
      Votes
      4
      Posts
      1.1k
      Views

      jaroslav_sobotaJ

      @enovikoff said in Measuring water flow with UniPi:

      after searching fruitlessly for a Pi HAT that included a counter

      What about the Monarco HAT? It has 2 high-speed counters onboard...

      c4629344-c4c5-48a8-a65e-7e00fd14755d-obrazek.png

      Jaroslav

    • R

      Wago Modbus - Port name + Address > 65535

      Modbus RTU
      • wago modbus rtu • • rluteijn
      4
      0
      Votes
      4
      Posts
      1.7k
      Views

      jaroslav_sobotaJ

      Hi Richard,
      there are various "simplifications", using various offsets to distinguish between the four tables of data. For Holding registers, the most typical is offset of 40000, but as you already noticed, this is no standard.

      Best regards,
      Jaroslav

    • M

      1-WIRE Temp sensor unstable reading

      1-Wire
      • • • MikeyH
      4
      0
      Votes
      4
      Posts
      1.5k
      Views

      M

      An update to the above. I'm now very sure I had a bad batch of sensors, it turns out I'm not alone. Over people have seen the same thing having bought sensors from certain websites.

      Be careful when buying 1-Wire sensors as it seems there are cheaper, not so reliable ones flooding the market.

      Cheers

      Mike

    • R

      Strange behaviour with CNDR block

      Bug reports, Feature requests
      • • • rluteijn
      4
      0
      Votes
      4
      Posts
      1.3k
      Views

      cechuratC

      Hi Richard,

      sorry, my mistake. You are right - both arrays have 11 items.
      But still the size need to comply with parameter n. Once you change it to 11 it should do the trick.

      Please, let me know.

      Cheers, Tomas

    • S

      HMI not working with RPi+touchscreen

      REXYGEN Studio
      • • • stepan.ozana
      4
      0
      Votes
      4
      Posts
      1.4k
      Views

      cechuratC

      Thank you for update. If you encounter any strange behaviour again, please, let us know.
      Good luck with your project!

      Cheers, Tomas

    • S

      Writing once a single value to a register

      Modbus TCP
      • • • Scoobsalamander
      4
      0
      Votes
      4
      Posts
      1.9k
      Views

      cechuratC

      Hi Scoobsalamander,

      glad I could help. You are right, I didn't take to count the timing. Good luck with your project!

      Cheers, Tomas

    • H

      RexCore crash, just after upload

      Bug reports, Feature requests
      • • • hubert
      4
      0
      Votes
      4
      Posts
      1.3k
      Views

      cechuratC

      Hi Hubert,

      the issue was that Level1 in EXEC block is not connected. It is assumed that the Levels are connected one by one. I reconnected "tsdb_task" from Level2 to Level1 and it work now. See screenshot:

      0_1562145809789_Levels.PNG

      Our developers will fix this issue.

      Thank you for reporting this.

      Regards, Tomas

    • M

      Watchdog

      Monarco HAT
      • • • MikeyH
      4
      0
      Votes
      4
      Posts
      1.2k
      Views

      M

      Hi Jaroslav,

      That’s awesome, I will try this out during the week.

      I’ll let you now how it goes.

      Cheers

      Mike

    • S

      REXLANG in 2.10.8 vs. 2.50.9

      Bug reports, Feature requests
      • • • stepan.ozana
      4
      0
      Votes
      4
      Posts
      966
      Views

      jaroslav_sobotaJ

      Hi Stepan,
      thanks for reporting and explaining this. Since version 2.10.8 is outdated and there is no problem in the current version 2.50.9, we're not going to fix this. Please apply a workaround as you suggested. Thanks for understanding.

      Kind regards
      Jaroslav

    • S

      Connection between REXYGEN and Matlab

      General
      • • • stepan.ozana
      4
      0
      Votes
      4
      Posts
      949
      Views

      jaroslav_sobotaJ

      Glad I could help!

      Best regards
      Jaroslav

    • S

      MVD block for 3-way valve actuator

      REXYGEN Studio
      • • • Scoobsalamander
      4
      0
      Votes
      4
      Posts
      852
      Views

      jaroslav_sobotaJ

      Hi Kris,
      you are right, it is necessary to force the valve to fully closed position once in a while. The SRTF function block is not the best one for your needs. I'd go for the ATMT state machine or simply use an ISSW switch to send logic 1 to the DN (CLOSE) input.

      Jaroslav

    • B

      Monarco HAT AO reading In Node-red

      General discussion
      • • • bigmanvstrashman
      4
      0
      Votes
      4
      Posts
      905
      Views

      jaroslav_sobotaJ

      Hi Emmanuel,
      glad you like the Monarco HAT.

      Monarco HAT + REXYGEN => use this forum Monarco HAT + other programming language => please use direct e-mail support

      Thank you.

      Best regards
      Jaroslav

    • M

      responsive design

      REXYGEN HMI Designer
      • • • martijnperdaan
      4
      0
      Votes
      4
      Posts
      613
      Views

      jaroslav_sobotaJ

      Hi Martijn,
      here is an example project which includes a custom Javascript file: 0101-51_Custom_js.zip

      The main trick is to add the CUSTOM "library" in Expert settings in HMI Designer. The GENERAL library must be added as well:
      0_1583833486862_rexygen-hmi-custom-javascript.png

      The "library" CUSTOM is located in the hmisrc folder and it has to have a "js" subfolder which contains your Javascript files. These are then included in the generated HMI files.

      Hope this helps, let me know.

      Best regards
      Jaroslav