コード例 #1
0
        public void DriverUtility()
        {
            IIviDriverUtility DriverUtility = Driver.Utility;

            DriverUtility.Reset();
            DriverUtility.ResetWithDefaults();
            ErrorQueryResult ErrorResult = DriverUtility.ErrorQuery();

            Assert.AreEqual(0, ErrorResult.Code);
            Assert.AreEqual("No error.", ErrorResult.Message);

            SelfTestResult SelfTestResult = DriverUtility.SelfTest();

            Assert.AreEqual(0, SelfTestResult.Code);
            Assert.AreEqual("Selftest passed", SelfTestResult.Message);

            IIviDriverLock DriverLock = DriverUtility.Lock();

            DriverLock.Unlock();
            DriverUtility.Disable();
        }