WebVisu: variable for each connected users

galexis
2020-08-17
2020-08-17
  • galexis - 2020-08-17

    Hi,
    I have a webvisu with on map, 30 lamps wich represent 10 machines.
    Machines are grouped on different zone, for example:

    • machine1: zone1
    • machine2 : zone1
    • machine3 : zone3
    • machine4: zone2
    • machine5: zone3
    • etc....

    On webvisu, user can select 1 zone to see only machine on this zone, on the map. I use variable on PLC programm to make invisible or not each lamps. Problem: if user 1 select "zone1", each connected user see only machine in "zone1".
    Is-it possible to do only that separatly ?

     
  • i-campbell

    i-campbell - 2020-08-17
    //requires VisuGlobalClientManager library in library manager
    clientzone : ARRAY [VISU_MIN_NUMBER_OF_CLIENTS .. VISU_MAX_NUMBER_OF_CLIENTS - 1] OF INT;
    

    then in your visu, where you previously had clientzone, change it to clientzone[CURRENTCLIENTID]

     

Log in to post a comment.