コード例 #1
0
        private void initializeOPCAPI()
        {
            var opcAddress = this.config.domeBeagleboneOPCAddress;

            string[] parts = opcAddress.Split(':');
            if (parts.Length < 3)
            {
                opcAddress += ":0"; // default to channel 0
            }
            this.opcAPI = new OPCAPI(
                opcAddress,
                this.config.domeOutputInSeparateThread,
                newFPS => this.config.domeBeagleboneOPCFPS = newFPS
                );
            this.opcAPI.Active = this.active;
        }
コード例 #2
0
        private void initializeOPCAPI()
        {
            var opcAddress = this.config.stageBeagleboneOPCAddress;

            string[] parts = opcAddress.Split(':');
            if (parts.Length < 3)
            {
                opcAddress += ":0"; // default to channel 0
            }
            this.opcAPI = new OPCAPI(
                opcAddress,
                this.config.stageOutputInSeparateThread,
                newFPS => this.config.stageBeagleboneOPCFPS = newFPS
                );
            this.opcAPI.Active = this.active &&
                                 this.config.stageHardwareSetup == 1;
            this.calculateMaxTriangleLength();
        }
コード例 #3
0
        private void initializeOPCAPI()
        {
            if (this.dome != null)
            {
                return;
            }
            var opcAddress = this.config.barBeagleboneOPCAddress;

            string[] parts = opcAddress.Split(':');
            if (parts.Length < 3)
            {
                opcAddress += ":0"; // default to channel 0
            }
            this.opcAPI = new OPCAPI(
                opcAddress,
                this.config.barOutputInSeparateThread,
                newFPS => this.config.barBeagleboneOPCFPS = newFPS
                );
            this.opcAPI.Active = this.active &&
                                 this.config.barHardwareSetup == 1;
        }