Beispiel #1
0
        /// <summary>
        /// Set the data dictionary defined parameters to their default values.
        /// </summary>
        private static void SetToDefault()
        {
            // --------------------
            // Function Flags
            // .
            // .
            // .
            // Bit 3   -   Not Used.
            // Bit 2   -   Not Used.
            // Bit 1   -   ShowLogName - Flag to specify whether the event log name field is to be shown when saved event logs are displayed. True, if the
            //             log name is to be displayed; otherwise, false.
            // Bit 0   -   Use4DigitYearCode - Flag to specify whether the project VCU uses a 2 or 4 digit year code. True, if the project uses a 4 digit year code;
            //             otherwise, false.
            //
            // --------------------
            m_FunctionFlags = 0;

            m_ShowLogName = false;
            m_Use4DigitYearCode = false;

            // --------------------
            // Recorded Watch Data
            // --------------------
            m_WatchSize = DefaultWatchSize;

            // --------------------
            // Fault Log
            // --------------------
            m_WatchSizeFaultLog = DefaultWatchSizeFaultLog;
            m_SupportsMultipleDataStreamTypes = false;

            // --------------------
            // Project Information
            // --------------------
            m_ProjectInformation = new DataDictionaryInformation_t();
            m_ProjectInformation.DataDictionaryName = Resources.TextNotAvailable;
            m_ProjectInformation.ProjectIdentifier = string.Empty;
            m_ProjectInformation.Version = Resources.TextNotAvailable;
            m_ProjectInformation.DataDictionaryBuilderVersion = Resources.TextNotAvailable;
            m_ProjectInformation.WatchIdentifierCount = 0;

            // ----------------------
            // WibuBox Parameters
            // ----------------------
            m_WibuBox.FirmCode = 0;
            m_WibuBox.UserCode = 0;
            m_WibuBox.SlotId = 0;
            m_WibuBox.PortId = DefaultWibuBoxPortId;

            // ----------------------
            // Application Data Path
            // ----------------------
            m_PathPTUApplicationData = Resources.PathUseDefault;

            // --------
            // Security
            // --------
            m_SecurityConfiguration = new SecurityConfiguration_t();
            m_SecurityConfiguration.DescriptionLevel0 = m_DefaultDescriptionLevel0;
            m_SecurityConfiguration.DescriptionLevel1 = m_DefaultDescriptionLevel1;
            m_SecurityConfiguration.DescriptionLevel2 = m_DefaultDescriptionLevel2;
            m_SecurityConfiguration.DescriptionLevel3 = m_DefaultDescriptionLevel3;
            m_SecurityConfiguration.SecurityLevelBase = DefaultSecurityLevelBase;
            m_SecurityConfiguration.SecurityLevelHighest = DefaultSecurityLevelHighest;

            // ----------------------
            // Communication Variables
            // ----------------------
            m_URIList = new List<String>();
            m_CommunicationType = CommunicationTypeEnum.TCPIP;
        }
Beispiel #2
0
        /// <summary>
        /// Set the data dictionary defined parameters to their default values.
        /// </summary>
        private static void SetToDefault()
        {
            // --------------------
            // Function Flags
            // .
            // .
            // .
            // Bit 3   -   EnableSTCommWatchdog - If set, a Self Test comm watchdog is enabled.
            // Bit 2   -   GenerateCSV -  generate CSV event log file when saving logs.
            // Bit 1   -   ShowLogName - Flag to specify whether the event log name field is to be shown when saved event logs are displayed. True, if the
            //             log name is to be displayed; otherwise, false.
            // Bit 0   -   Use4DigitYearCode - Flag to specify whether the project VCU uses a 2 or 4 digit year code. True, if the project uses a 4 digit year code;
            //             otherwise, false.
            //
            // --------------------
            m_FunctionFlags = 0;

            m_GenerateCSV          = false;
            m_ShowLogName          = false;
            m_Use4DigitYearCode    = false;
            m_EnableSTCommWatchdog = false;

            // --------------------
            // Recorded Watch Data
            // --------------------
            m_WatchSize = DefaultWatchSize;

            // --------------------
            // Fault Log
            // --------------------
            m_WatchSizeFaultLog = DefaultWatchSizeFaultLog;
            m_SupportsMultipleDataStreamTypes = false;

            // --------------------
            // Project Information
            // --------------------
            m_ProjectInformation = new DataDictionaryInformation_t();
            m_ProjectInformation.DataDictionaryName           = Resources.TextNotAvailable;
            m_ProjectInformation.ProjectIdentifier            = string.Empty;
            m_ProjectInformation.Version                      = Resources.TextNotAvailable;
            m_ProjectInformation.DataDictionaryBuilderVersion = Resources.TextNotAvailable;
            m_ProjectInformation.WatchIdentifierCount         = 0;

            // ----------------------
            // WibuBox Parameters
            // ----------------------
            m_WibuBox.FirmCode = 0;
            m_WibuBox.UserCode = 0;
            m_WibuBox.SlotId   = 0;
            m_WibuBox.PortId   = DefaultWibuBoxPortId;

            // ----------------------
            // Application Data Path
            // ----------------------
            m_PathPTUApplicationData = Resources.PathUseDefault;

            // --------
            // Security
            // --------
            m_SecurityConfiguration = new SecurityConfiguration_t();
            m_SecurityConfiguration.DescriptionLevel0    = m_DefaultDescriptionLevel0;
            m_SecurityConfiguration.DescriptionLevel1    = m_DefaultDescriptionLevel1;
            m_SecurityConfiguration.DescriptionLevel2    = m_DefaultDescriptionLevel2;
            m_SecurityConfiguration.DescriptionLevel3    = m_DefaultDescriptionLevel3;
            m_SecurityConfiguration.SecurityLevelBase    = DefaultSecurityLevelBase;
            m_SecurityConfiguration.SecurityLevelHighest = DefaultSecurityLevelHighest;

            // ----------------------
            // Communication Variables
            // ----------------------
            m_URIList           = new List <String>();
            m_CommunicationType = CommunicationTypeEnum.RS232;
        }