• 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

    How to write server-side scripts

    How-To
    2
    5
    6.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.
    • P
      pradeepdissa
      last edited by

      Hi team,

      I am very new to Mango but excited by seen it's capabilities. I am very interested in learning that how to write server side scripts.
      Any help on this is much appreciated. please let me know how to begin (I don't have a clue). but I have done some VB programing therefore I think with your help I can study this.

      Cheers

      1 Reply Last reply Reply Quote 0
      • O
        oja
        last edited by

        What do you need?

        In MetaPoint window is icons with (?) and there is some basic info about writing script. I wrote some scripts in Mango, I can help you.

        Oja

        1 Reply Last reply Reply Quote 0
        • P
          pradeepdissa
          last edited by

          thank you,

          Initially I am looking into write some coding to get values and put some values to a selected data point (modbus) in the graphics window. then I would like to know other available things which I can use in future when it's required.

          thank you in advance.

          Dissa

          1 Reply Last reply Reply Quote 0
          • O
            oja
            last edited by

            Hi,

            Scripts in MetaPoints:

            1. Context's points - you can add some points to your MetaPoint for access from script.
            2. Final value - result, have to save with commnad return value.
            3. You cannot save value to other points from script
            4. You cannot get others values from points, only last value. You cannot take previous value from Metapoint in your script without simple hack.

            Hack for previous value from MetaPoint

            1. create your metapoint with some simply script
            2. save your metapoint and activate it and activate datasource - green light
            3. go to another screen on Mango - views, lists and return back to MetaDataSource and metapoint. Now you can add this metapoint as source point for your script.
            4. disable alarm level - Context point disabled = NONE

            I am working in ScadaBR, clone of Mango. Yesterday I modified MetaDataPoints and I added new functions for scripts - last(limit) ... gets last point values and list(from, to) ... gets list of values between ....
            It works good.

            Attachment: download link

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