Cycle Path Problem

Good afternoon,

I am trying to make a Node that receives a pulse (button push), runs a light for a combined 60 seconds, then turns off.

For example, I’d like to be able to click a push button, run the light for 35 seconds, push the button again to turn it off. Then later when I click the button, the light would run for 25 seconds and then automatically shut off.

To do this, I’ve created this

Whenever I try to get the code, it gives me
“The program has a cycle path. Delete links that cause a cycle to continue”

Logically it makes sense to me, a pulse hits the flip flop, turning on the light. The If/Else has T=1, F=0. When the flip flop is on, a 1 is sent to the clock, which ticks and increases the count, when the count reaches greater than 60, a reset is sent to the count and the flip flop is set to reset.

It looks like it does not like the greater sending signals “up” the chain, what other way could I accomplish this task?


Still learning ardunio (day3), are those loops not permitted? I noticed I could get it to work if I assigned it to an unused I/O port (in this case port 8).

Here’s my final working setup

Hello and welcome!

Yep, graph cycles are not supported yet. But they will be possible in the next version (0.15.0). Already done it in the development edge version. The release ETA is 1-2 weeks.

Meanwhile, you could use the delay node to achieve the result.

Am I understood your question correctly?

1 Like

Pretty close - the reason I did not use the delay timer is that I wanted the time value to be held, so if the LED ran for 15 seconds, the next time it runs it would only run for 45 seconds. Additionally, I have the same button input act as on and off.

Once graph cycles are implemented, this will work much more simply, but in the meantime I can use an open I/O point to run the node.


Feedback loops are available since v0.15.0.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.