public static void Main() { Instrument = ArgusMC; //init parameters Instrument.GetParameter("Y-Symmetry Set", out LAST_Y_SYMMETRY); GetTuningSettings(); PrepareEnvironment(); //mReportGains(); //list attributes //listattributes(Instrument.GetType(), "instrument"); //setup data recording InitializeDataRecord(); if (USE_UDP) { UDPServeForever(); } else { TCPServeForever(); } }
//InsertScript: Scripts\Noble Gas\SampleFunctionIncludeScript.cs public static void Main() { Instrument = ArgusMC; m_restoreMeasurementInfo = ArgusMC.MeasurementInfo; InitializeIncludeScript(); //RunGetCupConfigurationInfosExample(); //RunGetTuneSettingNamesExample(); //RunGetSetMagnetPositionExample(); //RunGetSetHVExample(); //RunSetTuneSettingsExample(); //RunGetSetAllDetectorParametersExample(); //RunIONGaugeOnOffExample(); //RunSetMassExample(); //------------------------------------------------------------------------------------------------------------------------------------------------------------- // Scan example section, please only enable one function in these section. // If the boolean parameter in the follwing functions are set to true then all counter cups in measurements are activated; otherwise deactivated. //------------------------------------------------------------------------------------------------------------------------------------------------------------- //RunMonitorScanWithCupConfigurationExample(true); //RunMonitorScanWithCupConfigurationAndMassExample(true); //RunSweepScanWithCupConfigurationExample(true); //RunSweepScanUseSelectedCupConfigurationExample(true); //RunSingleScanWithCupConfigurationExample(true); //RunSingleScanUseSelectedCupConfigurationExample(true); //RunChangeIntegrationTimeForMonitorScanExample(); }
public static void Main() { Instrument = ArgusMC; GetTuningSettings(); PrepareEnvironment(); //setup data recording InitializeDataRecord(); if (use_udp) { UDPServeForever(); } else { TCPServeForever(); } }
public static void Main() { Instrument = ArgusMC; //init parameters Instrument.GetParameter("Y-Symmetry Set", out last_y_symmetry); GetTuningSettings(); PrepareEnvironment(); //setup data recording InitializeDataRecord(); if (use_udp) { UDPServeForever(); } else { TCPServeForever(); } }
// declaration of class methods public static void Main() { Instrument = HelixMC; //init parameters Instrument.GetParameter("Y-Symmetry Set", out LAST_Y_SYMMETRY); GetTuningSettings(); PrepareEnvironment(); //setup data recording InitializeDataRecord(); if (USE_UDP) { UDPServeForever(); } else { TCPServeForever(); } }
// declaration of class methods public static void Main() { Instrument = HelixMC; //init parameters Instrument.GetParameter("Y-Symmetry Set", out LAST_Y_SYMMETRY); //GetTuningSettings(); PrepareEnvironment(); //setup data recording InitializeDataRecord(); // don't start UDPServer, this is only for testing /* * if (USE_UDP) * { * UDPServeForever(); * } * else * { * TCPServeForever(); * } */ // ############################################################## // ############################################################## // run tests here string cmd = 'GetData' Logger.Log(LogLevel.UserInfo, "execute command: {0}", cmd); string result = ParseAndExecuteCommand(cmd); Logger.Log(LogLevel.UserInfo, result); MessageBox.Show(string.Format("command: {0}; Result: {1}", cmd, result), "Resulting Data", "OK", "Information"); // ############################################################## }
public static void Main() { Instrument= ArgusMC; //init parameters Instrument.GetParameter("Y-Symmetry Set", out LAST_Y_SYMMETRY); GetTuningSettings(); PrepareEnvironment(); //mReportGains(); //list attributes //listattributes(Instrument.GetType(), "instrument"); //setup data recording InitializeDataRecord(); if (USE_UDP) { UDPServeForever(); } else { TCPServeForever(); } }