public static VehicleScapeAPI.DAQ AddDAQ() { if (!Initialized) { if (Initialize() == VehicleScapeAPI.Result.ResultOk) { VehicleScapeAPI.DAQ initialDAQ = GetDAQs()[0]; return(initialDAQ); } else { return(new VehicleScapeAPI.DAQ()); } } VehicleScapeAPI.DAQ daq = new VehicleScapeAPI.DAQ(); VehicleScapeAPI.AddDAQ(ref daq); daq.description = "New DAQ"; VehicleScapeAPI.SetDAQProperties(ref daq); return(daq); }