• Recent
    • Tags
    • Popular
    • Register
    • Login
    1. Home
    2. Jokke

    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
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 53
    • Best 0
    • Controversial 0
    • Groups 0

    Jokke

    @Jokke

    0
    Reputation
    1.0k
    Profile views
    53
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Jokke Unfollow Follow

    Latest posts made by Jokke

    • RE: Custom dynamic bar and dial gauge

      Hi,

      answers: yes something and I think so.

      I have not tried but taken a look how it works.

      Please take a look on the help. It says:

      "The Dynamic graphic component is similar to the analog image renderer in that it can visualize a numeric point, but instead of choosing one out of a set of images it dynamically draws the indicator of the value. For example, the pointer can be drawn on a single dial image. To add a new dynamic renderer, add a new subdirectory to the graphics directory and put the static image and an appropriate info file there. Then, add a rendering function to the resources/view.js file. The function must be named according to the name given to the subdirectory. See the Dial graphic as an example. "

      In the view.js there is the code for the dynamic parts. It looks quite straight forward but requires some coding skills. If you can update rest of us after trying...

      BR
      -Jokke

      posted in How-To
      J
      Jokke
    • Problem with meta point

      Hello,

      I created a metapoint for checking from multiple bits if any is on.

      Like this

      
      var value=false;
      
      if (p271.value==true ||
          p272.value==true ||
          p273.value==true ||
          p274.value==true ||
          p275.value==true ||
          p279.value==true ||
          p280.value==true )
         value=true;
      
      return value;
      
      

      The update event is context update.

      For some reason the update is never run. The datasource for the bits is Modbus TCP with 30s update interval.

      Please tell is there some trick needed.

      BR
      -Jokke

      posted in User help
      J
      Jokke
    • RE: Problem with meta point

      Hello,

      I created a metapoint for checking from multiple bits if any is on.

      Like this

      
      var value=false;
      
      if (p271.value==true ||
          p272.value==true ||
          p273.value==true ||
          p274.value==true ||
          p275.value==true ||
          p279.value==true ||
          p280.value==true )
         value=true;
      
      return value;
      
      

      The update event is context update.

      For some reason the update is never run. The datasource for the bits is Modbus TCP with 30s update interval.

      Please tell is there some trick needed.

      BR
      -Jokke

      posted in User help
      J
      Jokke
    • RE: Multi-state (Image/state assignments problem)

      :)

      You took an other cup of coffee while responding. :) Luckily the answers were not same but different aspect on same.

      btw bit offtopic. It has been a while since doing any bit filtering. Happen to know is there any way to represent binary values on JS? (like hex is 0x prefix) atleast 0b is not working. With quick internet search I did not find anything.

      BR
      -Jokke

      posted in How-To
      J
      Jokke
    • RE: Multi-state (Image/state assignments problem)

      if you create the meta data source there is the symbol with (?).

      Help tells the script is JavaScript / ECMAScript so basicly the same as every where else on mango.

      you could add something like this to the meta point script to mask the bits 2, 3 and 4 out.

      return (p100.value & 0xFFE3);

      replace p100 with the script context var appropriate on your case.

      if you data value is alphanumeric then it maybe a different solution. (and if you want to be able to set the value then there might be needed some point link)

      BR
      -Jokke

      posted in How-To
      J
      Jokke
    • RE: Multi-state (Image/state assignments problem)

      The metapoints use other points as inputs. In your case you could use metapoint to take the value an modify it(filter the bits out). Then you could use the metapoint on the view.

      You need to add meta datasource and the metapoints into it.

      BR
      -Jokke

      posted in How-To
      J
      Jokke
    • RE: Point hierachy

      I had couple of hundred points sorted and it was not too bad. I used the method to work from bottom to up. I dont know how many is your big scale. It might make sense to use import/export in some case, which I tried with few points.

      One small hint. Try clicking several points with ctrl and/or shift key pressed down so you can select and move multiple at once. How it works is not too obvious. I have noticed it shows only one point as selected but still will move several.(tried with IE, firefox and chromium)

      BR
      -Jokke

      posted in User help
      J
      Jokke
    • RE: Popup keypad

      It did not work as easily. The HTML component is different than serverside script from browser point of view. The serverside script has the mouseover events for the mango popups, even if the "show controls" is unchecked. I think these are overiding the keyboard.js event listeners or they are not loaded at all.

      One thing to check could be to put the onchange function to the HTML component, with proper numbers instead point.id and pointComponent.id . it would work if the point exists on the view.(maybe as a hidden serverside script). This is bit tricky as it would not show the current value and it is not too comfortable to define multiple points.

      BR
      -Jokke

      posted in User help
      J
      Jokke
    • RE: Popup keypad

      Hi,

      you can use ' instead of " as browsers are accepting it. But in scritps it cannot be swapped. :)

      I put the keyboard .css, .js and png files into tomcat root. This seems kind of working(the keyboard is not bound into the component):

      
      var s="";
      
      s+= "<script type='text/javascript' ";
      s+= "src='keyboard.js' charset='UTF-8'>";
      s+= "</script> <link rel='stylesheet' type='text/css' href='keyboard.css'> ";
      
      s+="<input type='text' size=3  value='"+value+"' ";
      s+="onChange='mango.view.setPoint("+ point.id +", \""+ pointComponent.id +"\", this.value )'  class='keyboardInput' vki_attached='true'>";
      
      return s;
      
      

      the "vki_attached='true'" is one experiment you can remove.

      I did not get it working yet in "imageless"(without need to click on the icon). It can be changed simply by setting inside keyboard.js the this.VKI_imageURI = "keyboard.png"; to this.VKI_imageURI = "";

      BR
      -Jokke

      posted in User help
      J
      Jokke
    • RE: Popup keypad

      Hi,

      Here is code for a serverside script component.

      
      var s="";
      
      s+="<input type='text' size=3 value='"+value+"' ";
      s+="onChange='mango.view.setPoint("+ point.id +", \""+ pointComponent.id +"\", this.value )'>";
      
      return s;
      
      
      

      Have you got it working with HTML component on view or have you made an own page with the above code?

      BR
      -Jokke

      posted in User help
      J
      Jokke