示例#1
0
        public void GetSerialNumber()
        {
            uint result = 0;
            int  status = NiCan.ncGetHardwareInfo(1, 1, NiCan.NC_ATTR_HW_SERIAL_NUM, 4, ref result);

            Assert.AreEqual(0, status, NiCanTools.StatusToString(status));
            Assert.AreEqual("018175D0", result.ToString("X8"), "NC_ATTR_HW_SERIAL_NUM");
        }