Say I want to create an energy detect block that takes a certain number
of input samples, measures the (signal) power and compares it against a
threshold. Only if the power exceeds the threshold, the block has to
make the decision that some genuine signal is being received and then
move only those samples to the next block for further processing.
So if power > threshold, send all the samples as is to the next block.
In this case the block behaves as a sync block.
But if power < threshold, the block has to flush the data and wait for
the next set of samples. (I’m not sure what type of block fits the bill
Either way, i wanted to know how to get the same block to behave in two
different ways in terms of the number of items that it outputs.
Thanks for your help