I found this a convenient way of implementing I/O hardware. For output hardware I mostly write channels on demand sending channel name and value. For input hardware I found implementing such a structure a little more complicated. Let's say I've analog input hardware, which is used by different sensor driver actors. So sensor drivers would register at AI hardware with channels they need and the data message they expect. The data messages would inherit from a general wfm message or whatever data type is preferred, so that AI can write data into the registered messages. Input hardware acquires data with constant rate and and blocksize and sends out data to registered drivers.
I'd be curious about other solutions...
Best regards,
Mike