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.Best regards
Jaroslav -
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
-
Something like this then?
If not, please describe your needs in detail.
Jaroslav
-
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%
-
Have you developed the SignalSweeper block yourself?
otherwise where can I find it
-
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?
-
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
JaroslavPS And yes, the SignalSweeper is a subsystem I have created myself.
-
@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
-
@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
-
Can you give me an example how to do that with that function block I can't figure it out myself?