Displaying rows DAT + CHOPS puzzle. Need help

Imagine you have a DAT table that updates every N times (random intervals) adding rows.

table

That table then is connected to TOP in order to display the text one row at a time.

The task is to somehow make it SMART so that new entry would show up only after X amount of time (to prevent spamming) and if no new entry is available it kept the last one until new shows up.

I got the part with the timer that successfully drives table rows but cant make it through the other part of the task.

here’s one approach which will load the last row of the table into the Text TOP every 2 seconds.
For demo purposes every key on your keyboard will generate a new row in the table.
base_read_latest_row_v2.tox (2.0 KB)

1 Like

Thank you very much for your time. Indeed the logic behind it works, however i am afraid i cant implement it on my project because I lack coding skills + it needs tweaking. Even though i can read code and understand it, I am unable to write or syntax at all. I was hopping there was a solution revolving around CHOPS and what not.

In other words. Extreme example. Despite the table being updated every 2 seconds creating new rows, every row must display for 10 seconds before jumping to the next one. If no new rows, then it must display for another 10 seconds the last entry. etc

ok here’s an another example which is more node-based.
Again, every hit on your keyboard will generate a new row in the table. (I advise to use numeric 1-9 keys to test as they are not application shortcurts for anything in TD)

Every 5 seconds the counter will add up, but the counter is clamped to the total number of rows -1 in the table. The output of the counter controls a Select DAT.
The result is that no matter how fast the table adds rows, every row on the table will be displayed for 5 seconds. When no new rows are added the last row keeps being shown for at least another 5 seconds., and after that it depends if news rows have been added in the meantime,
base_display_each_row_for_x_seconds.tox (2.3 KB)

1 Like

Thank you very much! It works for me. I am going to study it and take notes. Much obliged!

1 Like