コード例 #1
0
        public override DeviceInfo[] GetList()
        {
            DeviceName[] names;

            names = FLI.List(FLI.DOMAIN.CAMERA | FLI.DOMAIN.USB);

            if (names.Count() > 0)
            {
                DeviceInfo[] info = new DeviceInfo[names.Count()];

                int i = 0;

                foreach (DeviceName name in names)
                {
                    info[i]           = new DeviceInfo();
                    info[i].FileName  = name.FileName;
                    info[i].ModelName = name.ModelName;

                    FLI fli = new FLI(name.FileName, FLI.DOMAIN.CAMERA | FLI.DOMAIN.USB);
                    name.SerialNumber = fli.GetSerialString();

                    info[i].SerialNumber = name.SerialNumber;

                    ++i;
                }

                return(info);
            }
            else
            {
                return(null);
            }
        }
コード例 #2
0
 public override bool Connect(String name)
 {
     fli = new FLI(name, FLI.DOMAIN.CAMERA | FLI.DOMAIN.USB);
     return(true);
 }
コード例 #3
0
ファイル: FLIFilter.cs プロジェクト: maruta01/CalulateFlat
 public override bool Connect(string name)
 {
     fli = new FLI(name, FLI.DOMAIN.FILTERWHEEL | FLI.DOMAIN.USB);
     fli.SetFilterPos(0);
     return(true);
 }