The Difference between Delay and Interval Block


#1

Hi,

I want to make a simple example with Led Panel. When i put Interval block, it works. Smile emoji is coming first and then heart emoji is coming. But when i put Delay block, it did not work.

I don’t understand the difference between delay block and interval block. Can anybody explain that?


#2

Hi Gungorhilal,

The Delay statement is used to extend the duration of the true value of a result that comes just before. So, you need another statement before the Delay statement.

The Interval instrution is cyclic (True, False, True, False …), no need for instruction before. However, it is possible to stop the instruction by setting an instruction to false just in front.

Conclusion: Everything is normal. I would use the Sequence instruction. The instruction works very well with the Panel LED. Otherwise, you can do an animation directly with the image instruction that comes from the Led Panel block.


#3

Here is an example: https://neuron.kynox.com/fiches/debutants/fiche-passagepietonnier

Result: https://neuron.kynox.com/images/sampledata/Fiches/003-PAP/PassagePietonnier-S1.pdf


#4

Hi Crackel,

Thank you very much :slight_smile:
as you said, i will try the sequence instruction :slight_smile:


#5

Hi again, i tried with the sequence instruction and it works ! :slight_smile:

But I used a switch to trigger it.


#6

But I used a switch to trigger it.

With the Neurons, you do what you want.
If you do not want to put trigger instructions, then you change a little programming.
I remain available to help you. So, you can ask me for help.

Examples :
s0
s2


#7

Hi @Crackel thank you for the solution. Especially i like the your first example(Interval with NOT block) :slight_smile:


#8