public void Init() { string fnMAPPING = @"C:\Users\Alva\Desktop\JIM\mapping.csv"; //string mappingpath = @"C:\Users\Alva\source\repos\TTi\TwinLogger\UnitTestProject1\mapping.csv"; int n_channels = 64; /////// Map (create Accelerometer/Channel tree) try { List <List <int> > mapping; IO.ReadCSV <int>(fnMAPPING, IO.DelegateParseInt <int>, out mapping, ',', true); Accelerometer.ImportMapping(mapping, n_channels); } catch (FileNotFoundException e) { throw new Exception("Cannot find mapping.csv"); } /////// Calibrate string calpath = @"C:\Users\Alva\Desktop\JIM\cal_vals.csv"; try { IO.ReadCSV <double>(calpath, IO.DelegateParseDouble <double>, out List <List <double> > caldata); Accelerometer.ImportCalibration(caldata); } catch (IOException ex) { throw new Exception("Error loading file" + ex.Message); } }