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); } }
public override bool Connect(String name) { fli = new FLI(name, FLI.DOMAIN.CAMERA | FLI.DOMAIN.USB); return(true); }
public override bool Connect(string name) { fli = new FLI(name, FLI.DOMAIN.FILTERWHEEL | FLI.DOMAIN.USB); fli.SetFilterPos(0); return(true); }