REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login
    1. Home
    2. jaroslav_sobota
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 113
    • Best 4
    • Controversial 0
    • Groups 0

    Posts made by jaroslav_sobota

    • RE: Problem with uploaded software

      Hello Michal,
      the error codes are listed in the REXduino_slave.ino file. The codes you provided mean some problem with pin number. However, you are using an outdated version of REXduino so no guarantee...

      Therefore, as the first step, I recommend upgrading to the newest REXduino. I have just pushed a hotfix for the naming conflict to REXduino GitHub so you should be able to use it with any version of REXYGEN.

      Please try compiling and running the included example 51. Make sure to upgrade your Arduino as well.

      Let me know if it helped.

      Best regards
      Jaroslav

      posted in Bug reports
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Measuring water flow with UniPi

      @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

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Contributed Driver: PCA9685 16-channel Pulse-Width Modulation/Servo Control Chip

      @enovikoff Thank you, I'll see what can be done in this direction.

      Jaroslav

      posted in General
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Two Modbus instances on one controller solves device incompatibility!

      Hello,
      thanks for sharing your experience and findings. There's nothing to add, only that from the nearest release the REXYGEN compiler will issue a warning when two drivers use the same configuration .rio file.

      Jaroslav

      posted in Modbus RTU
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Contributed Driver: MH-Z16 I2C NDIR CO2 Sensor

      Hello,
      thanks for another contribution!

      Why not use the MP block for starting the calibration procedure?

      Minor note: We always recommend keeping the block name for clarity and "readability" of the algorithm. I'd go for "REXLANG_MHZ16" in this case.

      Thanks again,
      Jaroslav

      posted in General
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Disabling rexlang compile warnings

      Hello,
      I do not have any better advice than to add this line to your code, which will make the compiler believe that the variable dateInterval is used.

      dateInterval = dateInterval;
      

      Can you share or send your code leading to such a false warning? Thank you.

      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Contributed Driver: PCA9685 16-channel Pulse-Width Modulation/Servo Control Chip

      Awesome, thanks!

      Do you think e.g. a GitHub repo for contributed content would be beneficial? Let me know your thoughts on this.

      Jaroslav

      posted in General
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Contributed Driver: TSL2561 I2C Visible & Infrared Light Sensor

      Hi Eric,
      thank you for sharing your work!

      Jaroslav

      posted in General
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Data from obd port

      Hi,
      how about running Python code alongside REXYGEN and pushing the data to running task(s) via REST API of REXYGEN? This is shown in example project 0302-03 which is included in REXYGEN Studio.

      Both RS-232 and CAN bus are also an option, but in that case you'll only get raw data and you'll have to parse it yourself to get useful information.

      Hope this helps, let me know.

      Jaroslav

      posted in General
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Automatic keeping track of project revision

      @RexPeter said in Automatic keeping track of project revision:

      Software is in my point of view never "finished"

      Tell us about it 😉

      Your recommendation regarding revision identifier is in our pipeline. Since Monday already. Thanks!

      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: analoog output 0 until 100 %

      @martijnperdaan said in analoog output 0 until 100 %:

      yes I do want to be able to dim the light by means of a single push button

      I wish you stated that right at the beginning... 😉

      Using INTE might be a bit tricky unless you understand what integration is. The MCU block might be easier to use, I have completely forgotten about it before. Switch it to local mode, make a direct connection between y and tv and use the UP and DN inputs to control the output.

      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Automatic keeping track of project revision

      Hi Peter,
      I was wrong, sorry... Even the information from the INFO block can be reached from your algorithm.

      Here's the updated project: rexygen-build-date-revision.zip

      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Automatic keeping track of project revision

      Hi Peter,
      build date can be read using the GETPS function block.

      Application version can be added using the CNA block and a CSV file in project folder. Still, you'll need an external "application release batch" which will generate the version number e.g. from SVN or GIT repository (number of commits). You'll run this batch manually prior to final Compile&Download.

      Both is shown in the attached project: rexygen-build-date-revision.zip (EDIT: see next post)

      The Description string from the INFO block is not reachable from the algorithm. (EDIT: see next post)

      Thanks for all the questions!

      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: analoog output 0 until 100 %

      Dear Martijn,
      thanks for the diagram. Now I can see what you are up to. I was on a wrong track. So you basically want to adjust the analog output with a single Boolean signal, right? E.g for dimming light or adjusting intensity of ventillation with a single pushbutton. Or what is your use case?

      The key to success is the INTE function block in place of the two ANLS blocks in your scheme. Alternatively, you can also use the COUNT function block instead if INTE. Both can generate the ramp-up and ramp-down signal and hold the last value.

      Apart from that, note that there are SSW, SELQUAD, SELOCT and SELHEXD function blocks for switching numeric signals. This will help you avoid the string operations.

      Regards
      Jaroslav

      PS And yes, the SignalSweeper is a subsystem I have created myself.

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: analoog output 0 until 100 %

      Something like this then?
      rexygen-signal-sweeper.png

      If not, please describe your needs in detail.

      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Automatic keeping track of project revision

      Hi Peter,
      the timestamp is already in place. Just use Target->Identification from the menu when in Watch mode. You should get something like this:
      rexygen-target-identification.png

      The Title, Author, etc. is added using the INFO block which you add into the project main file.

      Hope this helps, let me know.

      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: analoog output 0 until 100 %

      Hello Martijn,
      the ANLS block might help here if I understand your needs correctly (see the time plot, green=input, blue=output). If not, describe your needs in more details.

      anls-sequence-rexygen.png

      Best regards
      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: How to create substring

      Please start a new topic for questions not directly related to the original question.

      There is no such block, you must combine the existing blocks to achieve this.

      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: Puls block

      See example 0122-12:

      Image 030.png

      Best regards
      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota
    • RE: How to create substring

      Hello Martijn,
      see this example project: 0203-03 Built-in functions

      As for switching string signals, use the SELSOCT block. For 20 strings, you'll need 3 of them. Did you miss it in the list of functions blocks for processing string signals in REXYGEN?

      Hope this helps, let me know.

      Jaroslav

      posted in REXYGEN Studio
      jaroslav_sobotaJ
      jaroslav_sobota