Problem with loops detected


#1

Hello!

I have started working with Xod and decided to implement some stuffs (will provide .xodball if needed)
I can’t seem to figure out why Xod is complaining about there being loops without defer. Is there any way to find out?


(Also, for some reason new users can’t upload more than one image)


#2

Hi, there is a part that is not seen, you could upload the Xodball or the error log


#3

Wow! I am looking for a way to make 7-segment work. How did you do that?


#4

I see IDX flags for input pins, but none tied to output pin. I assume that happens below what is shown, and you are “looping” back up with that data. When you create a loop in XOD, it doesn’t know how to order all the operations. By putting a “delay” node in the path that loops back around, it provides a break-point for XOD to know how to do scheduling. The easiest option is probably to put a delay node between the output pin and the IDX flag. If other flags cause loops, you will need to do the same with them.


#5

I had my previous account temporarily locked for some reason so I created this new one to reply.

I created a library and published it.
Here it is: https://xod.io/libs/dancojocaru2000/7-segment/


#6

I have restructured my code and in the process found out the error.

STOP (to-bus not visible in the screenshot) was computed from the TICK pulse of count-with-pulse. I was feeding that value directly into count-with-pulse again, which caused the loop. Adding a defer between STOP and count-with-pulse’s RST fixed the problem.


#7

Great! For some reason it is not possible to download a library on either versions of my XOD. Starting to suspect that XOD is not for me(


#8

Why isn’t it possible?


#9

Don`t know, I type in the address, press enter and nothing is happening…


#10

Weird. You should see something like in this image
00


#11


(So maybe it will work this way)


#12

Great! Is it possible to use it with a display like this one?


#13

try this library cesars/tm1637, for some tests of @jh295 can confirm that it works, I’m working on another, but I need some tests before publishing it and I do not have hardware now


#14

Yes, cesars/tm1637 library worked nicely with an Open Smart Rich UNO R3 multifunction board, and an external 4-digit display - both with TM1637 driver chips.
IMG_2066 I’m in the process of putting together some tutorial material for the use of XOD nodes with the Open Smart board - should be up in the next couple of days. Jim H.


#15

The details will be at https://www.biomaker.org


#16

Sorry, folks. I’m closing this thread because the original topic has diverged. Feel free to start a new thread to discuss a particular issue


closed #17