コード例 #1
0
        private void Initialize()
        {
            var portName = simplicitiDriver.GetComPortName();

            if (portName.Length == 0)
            {
                throw new AccessPointException();
            }
            var open = simplicitiDriver.OpenComPort(portName);

            if (!open)
            {
                throw new AccessPointException();
            }
            var start = simplicitiDriver.StartSimpliciTI();

            if (!start)
            {
                throw new AccessPointException();
            }
        }