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

    Cannot access gpin in code

    Scheduled Pinned Locked Moved
    Gcode meta commands
    3
    4
    212
    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.
    • fcwiltundefined
      fcwilt
      last edited by fcwilt

      Hi,

      Testing firmware 3.3 beta 2 on a 6HC.

      I created a gpin:

      Object Model GPIN.png

      As you can see It appears in the DWC Object Model browser and correctly displays the input state.

      However trying to execute echo sensors.gpin[0].value from the DWC console yields an error message Error: meta command: unknown value 'gpin^.value'

      Any ideas why?

      Frederick

      Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

      OwenDundefined 1 Reply Last reply Reply Quote 0
      • hmortensenundefined
        hmortensen
        last edited by

        Have you tried copying the value from the object browser?
        In the screenshot it seems to be capital letter I in gpIn and your echo command is all lower case.

        fcwiltundefined 1 Reply Last reply Reply Quote 1
        • fcwiltundefined
          fcwilt @hmortensen
          last edited by

          @hmortensen said in Cannot access gpin in code:

          Have you tried copying the value from the object browser?
          In the screenshot it seems to be capital letter I in gpIn and your echo command is all lower case.

          Good catch - you must have sharp eyes.

          For some reason things are case-sensitive and the lower case letter was the problem.

          Thanks much.

          Frederick

          Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

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

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