On 29/07/2014 19:29, address@hidden wrote:
There are rather a lot of ways to choke this particular cat, writing a
block is just one of them.
I do "control external device" things from within GRC without custom
blocks, using "helper code" and a polling function at a low rate
that drives a simple state machine. I use this for controlling a
serial device that turns calibration sources on/off. It can get data
out of the flow-graph if it needs to, with low-rate "probe" blocks.
Some might call this inelegant, I call it saving the headache of
writing/maintaining custom blocks when the functionality doesn't
really require real-time access to the sample stream....
Hello,
well, writing a block that listens to messages or that emits messages
takes less than 20 lines of python all included. I would hardly call
this an "headache" to maintain :)
Cheers,
Daniele