My top_block class represents the whole flowgraph. The class "test_demo" is one of the blocks of this flowgraph for which its own work() function is defined.
The "test_demo" checks for a "start sign"(given by the user) and participates in data transmission process and upon receiving an ACK for success should stop further transmission.
At this point, the flowgraph should stop and start again with a new "start sign" for next iteration and so on. I am planning to plot the number of packets transmitted before receiving an ACK against this "start sign". Therefore, I need my flowgraph to execute several times.
I hope this description explains my intention. I am not very familiar with scheduler. How can I use the scheduler to do this?