On Tue, Jun 28, 2011 at 12:37 PM, Mark Rivers
<[email protected]> wrote:
What is the SCAN state of the underlying records? It is periodic, passive, or I/O Intr. If it is not I/O Intr then your driver should implement the readInt32 method (for example) and simply return a bad status from that function when the driver detects an error. If you use the base class implementation of readInt32 then it is not possible to return an error status.
If the record is I/O Intr scanned it is not currently possible to put the record into alarm directly from the driver, but we are working on a fix for that limitation.
Mark
________________________________
From: [email protected] on behalf of Rime Ateia
Sent: Tue 6/28/2011 1:58 AM
To: [email protected]
Subject: Record Alarm/ AsynPortDriver
Hello,
We are using the AsynPortDriver to implement a device support.
In some cases our requests at the lowest level to read values are either rejected or get a bad status. We would like to set these PVs to an invalid state.
Is there a way to modify the alarm status of a specific PV (ai) from this layer? Or how can we get the pointer to a specific PV in our code that uses the AsynPortDriver?
Thanks in advance
Rime