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

    Create array variable

    Scheduled Pinned Locked Moved
    Gcode meta commands
    2
    2
    150
    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.
    • mikeabuilderundefined
      mikeabuilder
      last edited by

      I'm working on a macro to help me pick some parameters for z probing (number of repeats and speed of approach, ). My goal is to probe the same point multiple times (maybe 100, or even 1000?) and do a statistical analysis on the resulting data. All in a macro (no SBC assistance). I'd like to create an array variable to store my data points as I collect them.

      The meta command wiki page mentions arrays in one place, but I think it's referring to how to access an element of an array, not how to create an array and assign values to them.

      So, can I create an array? If not, has anyone built a workaround? I can echo each value into a file, but I'm not sure how to read them back in a macro.

      OwenDundefined 1 Reply Last reply Reply Quote 0
      • OwenDundefined
        OwenD @mikeabuilder
        last edited by

        @mikeabuilder
        User created arrays are not yet supported.
        You may be able to do means, and averages inside a macro, but not much more at present.
        Before variables were possible we would create a dummy tool / axis and store the values in the offsets etc, but that's a limited number of available array variables.

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