void ScriptMain() { Console.WriteLine("Script begins..."); BoardLib.ActivateConfigDevice(4, true); // put that to false if you don't have the HVON-FEB board //------------------------------------------------------- // CHANGE DIRECTORIES/FILENAME string l_cfgFile = "PDdiscri-A0-CH0"; string l_daqFile = "test"; var l_channelsToBePlot = UInt32[4]{0,5,25,31}; // 4 channels MAX //------------------------------------------------------- BoardLib.OpenConfigFile(l_cfgFile); // Configure the board BoardLib.BoardConfigure(); Sync.Sleep(50); // Set direct parameters BoardLib.SetDirectParameters(); Sync.Sleep(10); // Run the acquistion (it'll wait for the transfer to finish) BoardLib.StartAcquisition(l_daqFile); Sync.Sleep(100); App.DaqToPlotFile(l_daqFile, l_channelsToBePlot, true); //HG plotys BoardLib.SetVariable("Board.DirectParam.HvOn", false); // corresponds to internal HV PS of FEB, remove it if you have ext. HV BoardLib.SetDirectParameters(); // We're done! Console.WriteLine("Script ended"); }