Beispiel #1
0
            public override bool Read()
            {
                if (m_index < m_measurements.Length)
                {
                    var measurement = m_measurements[m_index];
                    CurrentKey.Timestamp = (ulong)(long)measurement.Timestamp;
                    CurrentKey.PointId   = measurement.Key.ID;

                    CurrentValue.Value1 = BitMath.ConvertToUInt64((float)measurement.AdjustedValue);

                    CurrentValue.Value3 = (ulong)measurement.StateFlags;

                    m_index++;
                    return(true);
                }
                CurrentKey.Clear();
                CurrentValue.Clear();
                return(false);
            }