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

Image element not updating unless webpage is refreshed

celliott
2021-08-31
2021-09-03
  • celliott

    celliott - 2021-08-31

    I have written an application which includes visualization elements image which changes in runtime as required. Been using this application for around 18 months now without issue.

    So I upgraded Codesys from version V3.5.17.0 to V3.5.17.10 and now the visualization images don't update in runtime unless the webpage is refreshed.

    This issue exists for browsers Chrome, Firefox and Edge.

    I'm using a RP with version 4.0.1.0 and a MC runtime license.

    Things I've tried already:
    Changing settings within VisulizationManager
    Element image, adding a number or variable to property "Dynamic Bitmap - Bitmap Version", project compiles but doesn't download due to error "C0100: Library CmpTargetVisu has not been added to the Library Manager, or no valid license could be found"

    Any suggestions on how to resolve this issue?

     
  • m.prestel

    m.prestel - 2021-08-31

    Hey,
    could you please attach your project?

    Since your visualization package should still be 4.0.0.0, you should not have any changes to the visualization and it seems to not be directly related to changes in this area.

    Best regards,
    Marcel

     
  • celliott

    celliott - 2021-09-01

    Attached is a test project I made to demonstrate the issue. This is a very simple application which allows the user to move an image to the left or right via the visualization buttons. I made this from project scratch and left everything as default where possible.

    When executed and the image is moved at least one time, the image should only exist in either the left or right position, not both.

    For me, when I move the image via the web browser, the existing image remains and I see 2 images. This is only fixed when I refresh the web page.

    This did not happen for Codesys V3.5.17.0 and earlier versions.

     
  • m.prestel

    m.prestel - 2021-09-01

    Hey,

    seems to be a bug in the new overlay visualization.
    You can disable this in the visualization manager and should be good to go.
    Apart from this, why do you not simply hide the image instead of switching the image no an non existing one?

    Raised however an issue for this!

    Best regards,
    Marcel

     
  • m.prestel

    m.prestel - 2021-09-02

    Hey,
    I am happy to tell you that this issue is fixed with Visu Package 4.1.0.0 for the webvisualization.

    Best regards,
    Marcel

     
  • celliott

    celliott - 2021-09-03

    Thanks for the feedback and glad to hear it will be fixed within the next revision.

    In the short term as you suggested, I unchecked option "Support client animations and overlay of native elements" within the Visualization Manager which fixed the issue.

     

Log in to post a comment.