Example #1
0
        private Device CreateDevice(DEVICE_TYPE deviceType)
        {
            Device device = null;
            // get new device index
            UInt32 deviceIndex = p_DeviceGroup.GetNewDeviceIndex(deviceType);

            // create new device
            if (Device.CreateDevice(deviceType, out device) == (uint)CAN_RESULT.SUCCESSFUL)
            {
                return(device);
            }
            return(null);
        }