Web Visu - Multiple CLient instances.

arrotek
2022-10-07
2022-11-06
  • arrotek - 2022-10-07

    Hello,

    Does anyone know if it is possible to connect to same instance of Web Visu from two different remote computers and have the ability to view different web pages in each of the remote computers.

     
  • eschwellinger

    eschwellinger - 2022-10-07

    sure..there is an example here on forge I guess

     
  • rickj - 2022-11-06

    Essentially you have to do the "session management" yourself. Any variables used to manage screens/sessions need to be arrays indexed by the client id.

    For example I've declared the following variable on one of my main screens. The screen contains a Frame set and I use Frame[VisuElemBase.CurrentClientId] to select the desired frame. Each client has its own id an so each can be independently viewing frame.

    VAR
        Frame           : ARRAY [0..gHMI.MAXCLIENTS] OF USINT;
    END_VAR
    

    The same has to be done for any variables used to manage screens for a specific client.

     

Log in to post a comment.