Hello,
I finally had some time testing that logging-code. It does work, basically. I added some features (like start/stop from page, choosing file destination, adjust scands per s, ... from the page). However, there are still some points/issues:
- IMO, this
st += scansPerRead / scanRate"
line should be after the logging part. otherwise the time stamps of logged data and channel data will always be "scansPerRead/scanRate" apart. However, when only logged data and its timedeltas are relevant, this does not matter.
- the whole thing is still quite unhandy. Everything must be (hard-)coded. e.g. there is again no conversion before logging. One must code it or open the data and add a conversion afterwards. A native streaming and respective logging support would be much appreciated.
- I have not managed to use "file.writedelim()"-command to write the time column with all six decimals (double precision, µs). The time format of variables up to this point (systime(), st-Variable and data[][0]-Array) is double precision, having six decimals. In the resulting logfile, however, there are always only 3 decimals (ms). With only 3 decimals, there are 10 identical times for ten data points, when logging with full speed (10000 scans/s). Porbably, this is just a formatting-issue but I could not find anything in the UsersGuide.