예제 #1
0
        public List <List <AnalogPoint> > GetAnalogPoint(DateTime timeBegin, DateTime timeEnd)
        {
            if (currentBlock != null && currentBlock.ConflictWith(timeBegin, timeEnd))
            {
                Flush(true);
            }
            AnalogRequestBlock block = new AnalogRequestBlock(this, timeBegin, timeEnd);

            dataManager.PutDataBlock(block);

            block.Wait(5000);

            return(block.Result);
        }
예제 #2
0
        public List<List<AnalogPoint>> GetAnalogPoint(DateTime timeBegin, DateTime timeEnd)
        {
            if (currentBlock != null && currentBlock.ConflictWith(timeBegin,timeEnd))
            {
                Flush(true);
            }
            AnalogRequestBlock block = new AnalogRequestBlock(this, timeBegin, timeEnd);

            dataManager.PutDataBlock(block);

            block.Wait(5000);

            return block.Result;
        }