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();
        }
    }
Exemple #2
0
    //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();
    }
    //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();
    }
Exemple #4
0
    public static void Main()
    {
        Instrument = ArgusMC;
        GetTuningSettings();
        PrepareEnvironment();

        //setup data recording
        InitializeDataRecord();

        if (use_udp)
        {
            UDPServeForever();
        }
        else
        {
            TCPServeForever();
        }
    }
Exemple #5
0
    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();
        }
    }
Exemple #7
0
    // 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");
        // ##############################################################
    }
Exemple #8
0
    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();
        }
    }