• F
    fleh

    @jared-wiltshire said in Visualising positions of AGV in a factory:

    OK yeah I'd suggest tagging them, see here - https://forum.infiniteautomation.com/topic/4153/using-ma-state-params/11

    Alright. I wrote a Python-Script which generates the data source and and data points. Brilliant idea of yours to have the configuration accessible via JSON.

    @jared-wiltshire said in Visualising positions of AGV in a factory:

    With the example I posted above it uses WebSockets (inside the <ma-get-point-value> components) to receive point value updates (i.e. the x and y values).

    That's what I used to in the last implementation. But one either has to create a Websocket for each device or transfer all positions every time something changes...

    I love how flexible Mango is and will use this AGV example to learn more about web technologies. No matter whether it is SVG, angular or d3.js.... all good from my side. Thanks for your inspirations!

    posted in User help read more
  • F
    fleh

    Thanks for the warm welcome, Phil and Jared! I had some questions about purchasing the Mango ES already and you are just as responsive now as Joel was then. Fabulous!

    @phildunlap The links look interesting! With x and y axes, the scatter plots certainly have the right structure but is a chart component flexible enough for visualising vehicle movements? I will have to remove plotted dots, for example ... and a background-image would also be nice to have.

    @Jared-Wiltshire: Good question about the tagging! All data points have descriptive names and XIDs but I did not group them any further. Since I have full control over the data source, I could also use a completely different structure to transfer the vehicle positions to Mango. Could you think of something simpler? In my previous implementation I sent an dictionary with the structure

    {agv1_x: x, agv1_y: y, agv1_property_foo: foo,  agv1_property_bar: bar, 
     agv2_x: x, agv2_y: y, agv2_property_foo: foo,  agv2_property_bar: bar, 
     ...}
    

    to the webserver and displayed the points on an HTML5 canvas by iterating over the dict when new data came in. It worked OK but but position updates took essentially place at same discrete time step and hence the movements looked coarse. Coming from Python this felt like an anti-pattern but I had no good idea how to do it better...

    I will sleep over your idea with the tags and iterating over them! Thanks for the HTML-noob-friendly code!

    posted in User help read more
  • F
    fleh

    Hi guys,

    my name is Frank I am new to this forum and just started to use the fantastic piece of software. With the dashboard designer showing a few great-looking bar and line charts was easy, but moving to the next level feels harder.

    As written in the title, I would like to visualise the positions of vehicles moving around in our factory. I set up separate data points for x and y values for each AGV which get updated every second. Using the examples I uploaded an SVG file with the factory layout but now what? Drawing a circle and letting it disappear after a certain duration would probably be best because the AGV can also leave the monitored areas. But I have no idea how to do that and perhaps there is a better way to achieve this... ?!

    Thanks a lot in advance for your ideas!

    Cheers
    Frank

    posted in User help read more