public void Log(string filepath)
    {
        if (string.IsNullOrEmpty(filepath))
        {
            return;
        }

        savingFile.SetActive(true);
        filepathText.gameObject.SetActive(true);
        filepathText.text  = filepath;
        filepathText.color = Color.black;

        WriteToCSV(myndbandManager.GetLoggedRawEEG(), System.IO.Path.GetDirectoryName(filepath) + "\\" + System.IO.Path.GetFileNameWithoutExtension(filepath) + "_512HzRawEEG" + ".csv");
        WriteToCSV(myndbandManager.GetLoggedMyndband(), System.IO.Path.GetDirectoryName(filepath) + "\\" + System.IO.Path.GetFileNameWithoutExtension(filepath) + "_1HzMyndband" + ".csv");
    }