try val = lcaGet(pvvector) catch err = lasterror() // additional information is provided // by the 'lcaLastError' routine stats = lcaLastError() // handle error here endMany labCA calls can handle multiple PVs at once and underlying CA operations may fail for a subset of PVs only. However, lasterror only supports reporting a single error status. Therefore the lcaLastError routine was implemented: if a labCA call fails for a subset of PVs then a subsequent call to lcaLastError returns a column vector of status values for the individual PVs. The error codes are shown in Table 1.