Hi John,
On Mon, 23 Jan 2006, John Dobbins wrote:
It seems non-trivial to manipulate lengthy strings in an IOC (use
waveform record?) so I was thinking it might be easier to create
device support that reads in a file of pre-canned messages on
start-up and then have an output record pass to device support an
index to one of these messages.
we use subroutine records for some applications where this is required,
in some cases translating into bos/mbbos. If all you need out of a
device response is an inidication that something is OK or not OK a bo
will of course do, and you can hide all the details in the subroutine
record, or pass the details into a string record.
However I can also think of other ways to do this, e.g. an external
script that monitors a particular record via Channel Access and does
the appropriate things when it sees a change.
Depending on where you need this (whatever the appropriate thing is) done
you may be ble to use the alarm handler for this.
I am open to ideas. Thanks,
Not sure this helps,
Maren Purves
UKIRT
John Dobbins
Laboratory of Elementary Particle Physics
Cornell University
p.s. What type of person write to Tech-talk at 10:00 PM ???
It's only 18:30 where I am. Working at a telescope I can think of
good occasions to write to tech-talk late at night.