[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Slow control external hardware

From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] Slow control external hardware
Date: Wed, 30 Jul 2014 09:41:57 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 07/30/2014 07:40 AM, Daniele Nicolodi wrote:
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....

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 :)


It's a big universe, there's room for different design choices....

Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

reply via email to

[Prev in Thread] Current Thread [Next in Thread]