void ScriptMain() { Console.WriteLine("Script begins..."); // input daq file string l_inputDaqFile = "G:/TEMP/AIDA/HW_TEST/HW2/SN06/a0"; // selected channels uint[] l_channels = {0,5,25,31}; //creates automatically a screenshot file from the input DAQ file name with default Xscale App.DaqToPlotFile(l_inputDaqFile, l_channels, true); //creates a screenshot file from the input DAQ file path with Xmin=0, Xmax=500 App.DaqToPlotFile(l_inputDaqFile, l_channels, true, 0, 500, "test-500"); //creates a fully defined screenshot file with Xmin=0, Xmax=1000 App.DaqToPlotFile(l_inputDaqFile, l_channels, true, 0, 1000, "c:\\temp\\test"); Sync.Pause(); Sync.Sleep(3000, true); int i = Dialog.ShowInputDialog("Enter an integer"); Dialog.ShowDialog("Hi, the number you entered is " + i); // We're done! Console.WriteLine("Script ended"); } void ScriptAbort() { Console.WriteLine("Abort has been called and executed!"); }