Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            timer1.Interval = 500;
            timer1.Enabled  = true;
            Info_box.Text   = "Port disconnected";
            update_avaliable_COM_ports();

            //hide the degree labels
            Clabel1.Hide();
            Clabel2.Hide();
            filename             = "SD_Card_data.csv";
            file_path            = "./" + filename;
            FilePathTextBox.Text = file_path;
            connecting           = false;
            start_logging        = false;
            term = new Transmission_detail_term();
            term.Hide();
        }
Exemplo n.º 2
0
        private void BtnDownload_Click(object sender, EventArgs e)
        {
            if (connecting)
            {
                term = new Transmission_detail_term();
                term.Show();

                term.TxInfo.Clear();
                //serialPort1.Write("s");
                serialPort1.WriteLine("s");
                fs = new FileStream(file_path, FileMode.OpenOrCreate, FileAccess.Write);
                start_logging = true;
            }
            else
            {
                MessageBox.Show("Serial port is not connecting");
            }
        }
Exemplo n.º 3
0
        private void BtnDownload_Click(object sender, EventArgs e)
        {
            if (connecting)
            {
                term = new Transmission_detail_term();
                term.Show();

                term.TxInfo.Clear();
                //serialPort1.Write("s");
                serialPort1.WriteLine("s");
                fs            = new FileStream(file_path, FileMode.OpenOrCreate, FileAccess.Write);
                start_logging = true;
            }
            else
            {
                MessageBox.Show("Serial port is not connecting");
            }
        }
Exemplo n.º 4
0
        private void Form1_Load(object sender, EventArgs e)
        {
            timer1.Interval = 500;
            timer1.Enabled = true;
            Info_box.Text = "Port disconnected";
            update_avaliable_COM_ports();

            //hide the degree labels
            Clabel1.Hide();
            Clabel2.Hide();
            filename = "SD_Card_data.csv";
            file_path = "./" + filename;
            FilePathTextBox.Text = file_path;
            connecting = false;
            start_logging = false;
            term = new Transmission_detail_term();
            term.Hide();
        }