Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Save arbitrary sensor data to CSV like M956

    Scheduled Pinned Locked Moved
    Firmware wishlist
    2
    3
    160
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • adambxundefined
      adambx
      last edited by

      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

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @adambx
        last edited by

        If you need that in standalone mode, you may get away with daemon.g, a while loop, and a continuous echo 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.

        Duet software engineer

        adambxundefined 1 Reply Last reply Reply Quote 0
        • adambxundefined
          adambx @chrishamm
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA