[flags] = lcaNewMonitorValue(pvs, type)
Note that monitors are specific to a particular data type and therefore lcaNewMonitorValue will only report the status for a monitor that had been established (by lcaSetMonitor) with a matching type. Using the “native” type, which is the default, for both calls satisfies this condition.
NOTE: As of labCA version 3 the flags no longer report error conditions. Errors are now reported in the standard way, i.e., by aborting the labCA call. Errors can be caught by the standard scilab try-catch-end construct. The lcaLastError routine can be used to obtain status information for individual channels if lcaNewMonitorValue fails on a vector of PVs.
See also lcaNewMonitorWait.
try and(lcaNewMonitorValue(pvvec)) vals = lcaGet(pvvec) catch errs = lcaLastError() handleErrs(errs) end