public static void initATIS(string filename) { // detect Opal Kelly and Program dev = new okCFrontPanel(); int num_boards = 0; bool device_opened = false; lock (dev) { while (device_opened == false) { num_boards = dev.GetDeviceCount(); for(int i=0; i < num_boards; i++) { if (dev.GetDeviceListModel(i) == okCFrontPanel.BoardModel.brdXEM6010LX150) { dev.OpenBySerial(dev.GetDeviceListSerial(i)); device_opened = true; } } } /* while (dev.OpenBySerial("") != okCFrontPanel.ErrorCode.NoError) { }//wait for Opal Kelly to be plugged in */ dev.LoadDefaultPLLConfiguration(); dev.ConfigureFPGA(filename); } // Initialize the Biases BiasesInterface.initBiases(); }
public static void initATIS(string filename) { // detect Opal Kelly and Program dev = new okCFrontPanel(); int num_boards = 0; bool device_opened = false; lock (dev) { while (device_opened == false) { num_boards = dev.GetDeviceCount(); for (int i = 0; i < num_boards; i++) { if (dev.GetDeviceListModel(i) == okCFrontPanel.BoardModel.brdXEM6010LX150) { dev.OpenBySerial(dev.GetDeviceListSerial(i)); device_opened = true; } } } /* * while (dev.OpenBySerial("") != okCFrontPanel.ErrorCode.NoError) * { * * }//wait for Opal Kelly to be plugged in */ dev.LoadDefaultPLLConfiguration(); dev.ConfigureFPGA(filename); } // Initialize the Biases BiasesInterface.initBiases(); }