Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Visualization slow refresh rate

kristofer
2015-10-26
2021-05-07
  • kristofer - 2015-10-26

    I have a problem with the visualization. There are a lot of lag / slow refresh rate when running animations in the visualization window in the editor in both simulation mode and online mode. When I start moving the mouse the lag goes away and the animation works really well but gets bad when I stop. It feels that the refreash is very random and sometimes just waits for more then a second. But directly when the mouse_move events (or mouse click) starts firing the animation starts running smooth. I have tried many settings in the Visu_task and the webvisu update with no luck.

    Are you seeing the same? Try it out in the webVisu project example or even easier, create a new project and add the waiting symbol flower. Try to run it in simulation mode and in online mode and view the spinner in the codesys window. Compare when moving the mouse.

    It works much better when running in the browser, but not perfect. This is probably not related to the pi but how codesys is refreshing the canvas drawing. Or maybe something wrong with my setup? I have tried on multiple computers though.

    I really need the simulation mode to work since I’m creating a lab where the students will develop the logic using a simulated system when preparing for the live lab.

    // Kristofer

     
  • eschwellinger

    eschwellinger - 2015-10-26

    Hi,
    does a change in the updaterate (try 50) solve the Problem?

    BR
    Edwin

    IMG: UpdateRate.jpg

     
  • kristofer - 2015-10-26

    I have tried that. I have tried all possible settings from 1ms to 1000ms. Updaterate doesn't seem to do much. The only thing that influences is if i put the task to update very slow say 5 seconds. Then it will only update at that freq (with some variation).

     
  • eschwellinger

    eschwellinger - 2015-10-26

    Hi,
    could you send the projectarchive to e support@codesys.com e for Investigation.

    BR
    Edwin

     
  • eschwellinger

    eschwellinger - 2015-10-27

    Hi,

    you could setup the update rate - depending on which visualisation you want to use:

    1. Update rate on we call it “internal CODESYS Visualisation” is setup by the monitoring interval (which is also for all variables not only the one for the internal visu)

    This you need to setup on the device by rightlick on your plc
    and if you decrease this value to less you will see that without clicking with the mouse the update rate is much faster then

    2,3. Update rate on TargetVisu and Webvisualisation:
    Webvisu:
    Targetvisu:

    Take care, if you increase these update rates, the plcload will increase too (background communication task)

    BR
    Edwin

    IMG: UpdateRateInternalVisu_Monitoring_in_general.jpg

    IMG: UpdaterateWebvisu.jpg

    IMG: UpdateRateTargetVisu.jpg

     
  • kristofer - 2015-10-27

    Thanks!
    Changing the Monitoring interval solved the problem!

    // K

     
  • Bereggergo - 2017-04-18

    Hello everybody,

    I have the same problem that my webvisu is incredibly slow.

    I changed the internal monitoring to 10ms but still slow. I changed the webvisu update rate down to 40ms still slow. If I want to decrease it more it gives me an error. Anybody knows why? Finally when I change the VISU_TASK it has strange behaviour. Forexample if I change the priority to 2 and cycle speed to t#2ms it became very slow. In case priority 10, and cycle speed t#10ms it is the "less slow". In Type freewhele it is completely useless. My code is very simple and the visualization as well. Any idea?

    Thanks,
    Gergö

     
  • eschwellinger

    eschwellinger - 2017-04-18

    Hi,
    upload the project to check (embedd the Bitmaps into the project)
    BR
    Edwin

     
  • cedric89 - 2021-05-07

    hi did you solve that issue ?

     

Log in to post a comment.