private void accCalResetButton_Click(object sender, EventArgs e)
{
data_collection_enabled = false;
startDataCollectionButton.Enabled = true;
stopDataCollectionButton.Enabled = false;
computeaccCalButton.Enabled = false;
writeToFileButton.Enabled = false;
calStatusText.Text = "Inactive";
flashCommitButton.Enabled = false;
accAlignmentCommitButton.Enabled = false;
dataProgressBar.Value = 0;
next_data_index = 0;
accCalStatusText.Text = "Inactive";
}