I’m using a calcout record that uses a remote PV (from another IOC) as part of its calculation. I’m also using the INAV filed to test the link status of the remote PV. But I’m having problems getting it to work.
While troubleshooting, I narrowed my calculation to be nothing more than to tell me what the connection status is. Here’ what I have:
Record(calcout, “REMOTETEST”)
{
Field(SCAN, “1 second”)
Field(INPA, “MY_REMOTE_PV”)
Field(INPB, “REMOTETEST.INAV”)
Field(CALC, “B”)
}
My understanding is that INAV returns an enumeration where 0 = not connected, 1 = connected, 2 = local PV and 3 = constant.
So when I start my IOC, REMOTETEST = 0 as expected. When I start my remote IOC, REMOTETEST = 1 as expected. When I terminate the remote IOC, REMOTETEST = 1. Shouldn’t it go back to 0? Especially since when I run
“camonitor REMOTETEST.INAV” it toggles from 0 to 1 to 0 again. It looks like the “B” value never gets updated in the calculation once the remote connection is gone. Any ideas?