Hi Vince,
Sure, if you can write routines that populate an AFNI dataset,
then you can use rtfeedme.c for sending data to afni. The hard
part is watching for new data to arrive, and making sure there
are no problems with it.
Imon does this for I-files on GE realtime systems. It watches
for new images to form 3-D volumes with, checks for missing or
incorrect images, and as an option, sends these volumes to afni.
The real-time processing functions are in rickr/realtime.c, but
that won't be much more informative than rtfeedme.c will.
If your files show up one at a time, maybe you could corrupt
Imon to suit your evil needs (by appropriately replacing the
call to read_ge_image() in Imon.c).
At any rate, I have no experience with varian or INOVA systems,
but if you would like to discuss any other aspect of processing
the images, including sending them to afni's realtime plugin
(like rtfeedme and Imon do), please send me email.
- rick