예제 #1
0
        static unsafe void Main(string[] args)
        {
            // Display SDK version

            byte   sdkMajor, sdkMinor, sdkRevision;
            UInt32 retCode = AlazarAPI.AlazarGetSDKVersion(&sdkMajor, &sdkMinor, &sdkRevision);

            if (retCode != AlazarAPI.ApiSuccess)
            {
                Console.WriteLine("Error: AlazarGetSDKVersion failed -- " +
                                  AlazarAPI.AlazarErrorToText(retCode));
                return;
            }

            Console.WriteLine("SDK version               = {0}.{1}.{2}", sdkMajor, sdkMinor, sdkRevision);

            // Display information about each board system

            UInt32 systemCount = AlazarAPI.AlazarNumOfSystems();

            if (systemCount < 1)
            {
                Console.WriteLine("No systems found!");
                return;
            }

            Console.WriteLine("System count              = {0}", systemCount);

            for (UInt32 systemId = 1; systemId <= systemCount; systemId++)
            {
                if (!DisplaySystemInfo(systemId))
                {
                    return;
                }
            }

            return;
        }