//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; //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(); } }