• Recent
    • Tags
    • Popular
    • Register
    • Login

    Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

    Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website Mango 5 Documentation Website

    Refresh modbus with button

    Scripting general Discussion
    3
    5
    3.0k
    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.
    • L
      legionx
      last edited by

      I need to create a button in view graph. This button refresh the variables without waiting modbus serial polling. How do I do?

      thanks

      1 Reply Last reply Reply Quote 0
      • JoelHaggarJ
        JoelHaggar
        last edited by

        If I understand you correctly you want the button in a Mango Graphic View to poll the Modbus slaves immediately regardless of the regular update period set in the data source?

        This would only be possible with some customization to the code which could probably be done but would require some funding on your part.

        Thanks,
        Joel.

        1 Reply Last reply Reply Quote 0
        • L
          legionx
          last edited by

          Exactly.

          1 Reply Last reply Reply Quote 0
          • phildunlapP
            phildunlap
            last edited by

            I tried to look into your question briefly to see if there was a function you could call, something like mango.view.initPointDetails() or DataPointDetailsDwr.forcePointRead(dpid, callback func) from a server-side script, but I haven't met obvious success trying that. I doubt those functions prompt the modbus to poll, but I'm not 100% certain.

            It's something to experiment with, if you feel so inclined. My intuition is aligned with Joel's, though: this is something that would take code customization to achieve.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post