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

Using Dynamic Bitmap with WebVisu

sedoerr
2020-08-10
2020-08-25
  • sedoerr - 2020-08-10

    Hi there,

    i am using CoDeSys 3.5.16.10 with a hardware PLC and a Webvisu.

    I am using the streaming function to copy images from my webvisu-system to the PLC. This is already running. Actually the problem is that i overwrite existing images and the only way to see them on the webvisu is, to reload the the browser.

    i tried it also with Bitmap-Version. But after changing the image and incrementing the Bitmap-Version for that image, nothing happens.

    Does anyone know any solution?

    PS: I know there is a workaround for this by changing webvisu.cfg.json but thats not a very good solution.

    BR
    Sebastian

    PS: i am using Chrome and it seems that the caching of them is a problem, too.

     

    Last edit: sedoerr 2020-08-10
  • m.prestel - 2020-08-11

    Hey,
    I did a quick test with a bmp file and I was not able to reproduce this issue.

    Used Chrome 84.0.4147.125

    Best regards,
    Marcel

     
  • sedoerr - 2020-08-11

    Hey Marcel,
    thanks for your reply. Maybe the problem is that i use .png files?

    So you used an Integer for Bitmap-Version and incremented this, to let the webvisu reloade that image?

    BR
    Sebastian

     
  • m.prestel - 2020-08-12

    Hey,

    png makes no different for my tests.
    Yes, I used the bitmap version and just pressed a button to increment the counter after I changed the file on disc

    Best regards,
    Marcel

     
  • sedoerr - 2020-08-12

    Hmm,thats really strange. I have done it the same way and for me it does not work.

    You have done this without the workaround?

    Can it be a problem, that i show my images in a frame?
    Is is a probem if the bitmap version is incremented up and then a litte while later down?

     

    Last edit: sedoerr 2020-08-12
  • m.prestel - 2020-08-13

    How about you attach your project and we can find out the cause for the issue?

    Best regards,
    Marcel

     
  • sedoerr - 2020-08-13

    Hey Marcel,

    i think this will be not possible. First my project sizes over 250MB. The second is that it is a company project and i am not allowed to show.

     
  • m.prestel - 2020-08-13

    Then try to create a new project and reproduce the issue?
    Not much I can do without a project.

    Best regards,
    Marcel

     
  • sedoerr - 2020-08-13

    I will try to fix my problem. As you said, it should work like it is done, so maybe i need to play a little bit around.
    If i get the time i will try to prepare a new project to reproduce it.

    Whatever, many thank for your help!

    BR
    Sebastian

     
  • sedoerr - 2020-08-24

    Hi there,

    so i tried to fix my problem. The only way for me is to use Chrome Browser. Then press F12 for development tool -> Network and then check there "disable cache"

    But Chrome development tool must run all the time in background.

    I tried also Internet Explorer and Firefox, but there it does not work even with disabled cache.

    Maybe this is a PLC problem?

     
  • m.prestel - 2020-08-24

    Hey,
    again please attach your project or create a project in which the issue can be reproduced.
    Not much I can do without taking a look at the project and understanding the issue.

    Best regards,
    Marcel

     
  • dkugler - 2020-08-24

    @sedoerr why increment and decrement? Marcel increments only..?

     
    • sedoerr - 2020-08-25

      @dkugler decrementing is history. I changed my program so that it is only incrementing after changing a picture.

       

Log in to post a comment.