I am trying to figure out what the State or Quality of a analog point. I see the values in Digital States - SYSTEM (like Manual is 230) useing the managment tool but I need to get and set the state for all my points, both digital and analog. Below is a C# sample of what I am doing. I can get the data value but can't figure out the Quality of the data.
pvsSnaps = lstData.get_Snapshot(out nvsErr);
foreach (PointValue ptValue in pvsSnaps)
myValue = ptValue.PIValue;
pival = (Single)m_myDigState.Code;
pival= (Single)myValue.Value; <<<< Have the value but need to check if good (0) or Manual (230)