REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    analoog output 0 until 100 %

    REXYGEN Studio
    2
    11
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      martijnperdaan
      last edited by

      Is there also a function block that if the input is high it will bring the analog output to 100% if it is still high then counts back to 0% and if it is still high it will go back to 100%?

      if not

      can you give me an example of how this is possible

      1 Reply Last reply Reply Quote 0
      • jaroslav_sobotaJ
        jaroslav_sobota
        last edited by

        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

        M 1 Reply Last reply Reply Quote 0
        • M
          martijnperdaan @jaroslav_sobota
          last edited by

          @jaroslav_sobota

          No I mean that if the input goes high, it goes slowly from where it left to 100% and that the input is still high then slowly back to 0%, the input is still high again slowly to 100% and so on through

          1 Reply Last reply Reply Quote 0
          • jaroslav_sobotaJ
            jaroslav_sobota
            last edited by

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

            If not, please describe your needs in detail.

            Jaroslav

            1 Reply Last reply Reply Quote 0
            • M
              martijnperdaan
              last edited by

              yes like it does go back and forth as long as signal is high

              only that if the signal then stops at, for example, 40%, it also remains at 40% with the output signal and if the input becomes high again, it starts again at 40% and then goes up again to 100%

              1 Reply Last reply Reply Quote 0
              • M
                martijnperdaan
                last edited by

                Have you developed the SignalSweeper block yourself?

                otherwise where can I find it

                1 Reply Last reply Reply Quote 0
                • M
                  martijnperdaan
                  last edited by

                  like this i just want to have it that if i press the button again it will pick up where it left off (for example 40%) and not start at zero

                  and is this perhaps easier what I have now made?

                  test.png

                  1 Reply Last reply Reply Quote 0
                  • jaroslav_sobotaJ
                    jaroslav_sobota
                    last edited by jaroslav_sobota

                    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.

                    1 Reply Last reply Reply Quote 0
                    • M
                      martijnperdaan
                      last edited by

                      @jaroslav_sobota said in analoog output 0 until 100 %:

                      si

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

                      can you give me an example how to use the INTE block so far it gives block only a very high signal up

                      I want it to go from 0 to 100 and back again

                      1 Reply Last reply Reply Quote 0
                      • jaroslav_sobotaJ
                        jaroslav_sobota
                        last edited by jaroslav_sobota

                        @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

                        1 Reply Last reply Reply Quote 0
                        • M
                          martijnperdaan
                          last edited by

                          Can you give me an example how to do that with that function block I can't figure it out myself?

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

                          There is also an outdated REXYGEN community forum.

                          Powered by NodeBB.