Exemplo n.º 1
0
        }           //	end CreateOpcClient

        public void SimulationDAThread()
        {
            // Wait until it is safe to enter.
            m_mutexDA.WaitOne();

            while (!m_simulationDAEnd)
            {
                if (DO_SIMULATION)
                {
                    //	Simulate the DA Server data changes generation
                    m_opcServer.ChangeSimulationValues();
                }
                Thread.Sleep((int)DA_SLEEP_INTERVAL);
            }               //	end while
            // Release the Mutex
            m_mutexDA.ReleaseMutex();
        }           //	end SimulationDAThread