Exemple #1
0
 public override bool Init()
 {
     Autodetection<AnalogTeensy> au = new Autodetection<AnalogTeensy>();
     oscillo = new AnalogTeensy();
     oscillo.Open("COM25");
     return base.Init();
 }
        override public bool Init()
        {
            Autodetection <AnalogTeensy> au = new Autodetection <AnalogTeensy>();

            oscillo = new AnalogTeensy();
            oscillo.Open("COM25");
            return(base.Init());
        }
Exemple #3
0
        public AnalogTeensyToolbar(AnalogTeensy osc, GraphControl gc)
        {
            oscillo      = osc;
            graphControl = gc;

            this.toolStrip = new System.Windows.Forms.ToolStrip();

            this.sampleCountLabel = new System.Windows.Forms.ToolStripLabel();
            this.sampleCount      = new OnlyNumbersToolStripTextBox();

            //
            // toolStrip2
            //
            this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
            this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
                this.sampleCountLabel,
                this.sampleCount
            });
            this.toolStrip.Location = new System.Drawing.Point(3, 0);
            this.toolStrip.Name     = "toolStrip2";
            this.toolStrip.Size     = new System.Drawing.Size(243, 25);
            this.toolStrip.TabIndex = 1;
            this.toolStrip.Text     = "toolStrip2";

            //
            // sampleCountLabel
            //
            this.sampleCountLabel.Size = new System.Drawing.Size(54, 22);
            this.sampleCountLabel.Text = "time(ms)";

            //
            // sampleCountLabel
            //
            this.sampleCount.Size       = new System.Drawing.Size(54, 22);
            this.sampleCount.Text       = "100";
            this.sampleCount.textReady += new EventHandler(sampleCount_textReady);

            //set values
            oscillo.SetMeasuringTime(int.Parse(sampleCount.Text));
        }
        public AnalogTeensyToolbar(AnalogTeensy osc, GraphControl gc)
        {
            oscillo = osc;
             graphControl = gc;

             this.toolStrip = new System.Windows.Forms.ToolStrip();

             this.sampleCountLabel = new System.Windows.Forms.ToolStripLabel();
             this.sampleCount = new OnlyNumbersToolStripTextBox();

             //
             // toolStrip2
             //
             this.toolStrip.Dock = System.Windows.Forms.DockStyle.None;
             this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.sampleCountLabel,
            this.sampleCount
             });
             this.toolStrip.Location = new System.Drawing.Point(3, 0);
             this.toolStrip.Name = "toolStrip2";
             this.toolStrip.Size = new System.Drawing.Size(243, 25);
             this.toolStrip.TabIndex = 1;
             this.toolStrip.Text = "toolStrip2";

             //
             // sampleCountLabel
             //
             this.sampleCountLabel.Size = new System.Drawing.Size(54, 22);
             this.sampleCountLabel.Text = "time(ms)";

             //
             // sampleCountLabel
             //
             this.sampleCount.Size = new System.Drawing.Size(54, 22);
             this.sampleCount.Text = "100";
             this.sampleCount.textReady += new EventHandler(sampleCount_textReady);

             //set values
             oscillo.SetMeasuringTime(int.Parse(sampleCount.Text));
        }