Save arbitrary sensor data to CSV like M956
-
Would it at all be feasible to implement saving short bursts of sensor data to CSV similarly to the Accelerometer?
I'm interested in sub-CAN frequency, otherwise i would use a regular loop in a macro.
Many sensors give analog output but 250ms update rate might be a little slow to get meaningful data.I envision something where there are following inputs:
- Sensor number to log
- Logging frequency
- Duration/number of samples
- Filename
(- write XYZ axis position along with the value?)
Just asking for general feasibility as in "maybe 3.7" or "rather 4.0"
Cheers
-
If you need that in standalone mode, you may get away with
daemon.g
, awhile
loop, and a continuousecho
command which keeps appending a line to an arbitrary file.I'd rather use a plugin in SBC mode which subscribes to the main object model that is provided by DSF. The default interval of OM updates in SBC mode is already 250ms and it may be reduced further (e.g. to 100ms) in a future version. It's already possible to reduce the interval using the DCS settings file.
-
@chrishamm Thanks for the reply.
I was thinking of faster streaming, maybe something along the lines of 100Hz. The added difficulty might be that i'm using CAN Connected boards.It would be an alternative to making custom boards.