Wraps a CSV file which contains a set of named values.
One tag per line with three fields: name, data type and value. The data type is the name of a BuiltInType (see the BuiltInType enumeration).
コード例 #1
0
        /// <summary>
        /// Upates the tag values from the CSV file.
        /// </summary>
        public void UpdateValues(ISystemContext context)
        {
            if (m_source == null)
            {
                m_source = new CsvFile();
            }

            if (m_source.Timestamp.AddSeconds(1) > DateTime.UtcNow)
            {
                return;
            }

            FileInfo file = GetFile(context, this.NodeId);

            if (file == null || !file.Exists)
            {
                return;
            }

            m_source.Load(file);     
        }