Hi
If using read binary I16, yo can write directly using I16 write. No need to scale.
Now, about digitizing at 2 speeds ang get coherenten data.
If want to write binary instead of waveform, you can use a way similar tothis one:
1.-Te digitized data is recorded in a temporary file
2.-During the adquisition process, keep track of speed changes and associate speed and position of record in file as an index for recuperation (example: build a table using I from while loop and dig speed ). All this info builds up the header. At the end, the temporary file is appended to the header file an data is ready to be recovered.
3.- Other option: on every read, add a character to your data and record as dataloggger data.( see labview example about datalogger). You can timestamp every read.
Hope it helps
Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------