code: function downloadDemodulatedData(){
        var blob = new Blob([csvContent], {type: 'text/csv;charset=utf-8;'});
        var url = URL.createObjectURL(blob)
        var link = document.createElement('a');
        link.setAttribute('href', url);
        link.setAttribute('download', 'data.csv');
        link.click();
      }
docs: for debugging: download demodulated signal as CSV file