예제 #1
0
        private void PIDataAccessMethodChanged(object sender, EventArgs e)
        {
            tsProgressBar.Value = 0;
            lbInterval.Text     = "Interval";
            string DataMethod;

            if (rbPIAFSDK.Checked)
            {
                DataMethod = "PIAFSDK";
            }
            else if (rbPIWA.Checked)
            {
                DataMethod = "PIWA";
            }
            else
            {
                DataMethod = "PIWS";
            }
            MyApp.DataAccessMethod = DataMethod;

            MyApp.Inicialize();

            if (rbPIAFSDK.Checked)
            {
                tsPISDKVersion.Text = "PI AF SDK version: " + MyApp.GetVersion();
            }
            else if (rbPIWA.Checked)
            {
                tsPISDKVersion.Text = "PI Web API version: " + MyApp.GetVersion();
            }
            tsValCount.Text = "No values on memory";


            tsConnected.Text         = "Not connected";
            gbR.Visible              = false;
            gbRFunctionInfo.Visible  = false;
            gbGetData.Visible        = false;
            btGraphic.Visible        = false;
            lbCurrRFunction.Visible  = false;
            lbUsingRFunction.Visible = false;
        }
예제 #2
0
        public WinForm()
        {
            InitializeComponent();
            REngine _engine = REngine.GetInstance();

            _engine.Initialize();
            MyApp = new RApplication(_engine);
            tsPISDKVersion.Text = "PI AF SDK Version: " + MyApp.GetVersion();
            cbRFunctions.Items.Add("PI Histogram");
            cbRFunctions.Items.Add("PI Density Plot");
            cbRFunctions.Items.Add("PI Density Compare");
            cbRFunctions.Items.Add("PI Box Plot");
            cbRFunctions.Items.Add("PI Regular Correlation");
            cbRFunctions.Items.Add("PI Smooth Scatter");
            cbRFunctions.Items.Add("PI Multi-Correlation");

            tsProgressBar.Value = 0;
        }