I'm using WaveForms (and Javascript) for the first time. My problem is really simple; I measure a voltage signal with the Analog Discovery 2, and want to get a "long" file with data over several seconds. When using the record-function and exporting data, I only get 1000.000 data points with the frequency required, and I can't seem to figure out how to save the raw data in the script.
If anyone can help this rookie, I'll be very grateful!
I think I'll need a whole new script, but it looks like this right now:
Question
rebekka
I'm using WaveForms (and Javascript) for the first time. My problem is really simple; I measure a voltage signal with the Analog Discovery 2, and want to get a "long" file with data over several seconds. When using the record-function and exporting data, I only get 1000.000 data points with the frequency required, and I can't seem to figure out how to save the raw data in the script.
If anyone can help this rookie, I'll be very grateful!
I think I'll need a whole new script, but it looks like this right now:
ch = Scope.Channel1
var newfile = File("~/Desktop/scope/measure.csv")
if(!nyfil.exist()){
var AllData = Date()+","+ch.data+"
nyfil.appendLine(AllData)
Index++
Link to comment
Share on other sites
9 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.