since i changed to SP17, to get this new warning about POU "GetNextClient". I really use this often in my project.
Does anyone know how to use VisuUtils instead?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@m.prestel
yes, i checked the example, but at the moment, i don't understand how to replace "GetNextClient" with this what @Thomas has done in his example.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
In the example, the custom filter "ClientFilter" is used as itfClientFilter.
The "ClientFilter" accepts currently all clients, since "IsAccepted" always returns true
You can use the "ClientFilter" from the example, but VisuUtils also provides some predefined filters, see "Globals" inside VisuUtils.
Once you defined your filter, check out "VisuClientIteration".
In your case I would reset your counter inside "StartIteration" and increase it in HandleClient.
Best regards,
Marcel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey there,
since i changed to SP17, to get this new warning about POU "GetNextClient". I really use this often in my project.
Does anyone know how to use VisuUtils instead?
Hey,
hope the example of "VU.IVisualizationClientIteration" will help.
Regards
THX for this. I will check this if i have time.
Edit: i think i need some food for thought.
I have several functions which use "GetNextClient"
for Example:
Last edit: sedoerr 2021-05-03
hey @sedoerr,
have you checked out the example by Thomas?
You can adjust the ClientFilter or use a predefined one from the VisuUtils.
Best regards,
Marcel
@m.prestel
yes, i checked the example, but at the moment, i don't understand how to replace "GetNextClient" with this what @Thomas has done in his example.
@sedoerr
In the example, the custom filter "ClientFilter" is used as itfClientFilter.
The "ClientFilter" accepts currently all clients, since "IsAccepted" always returns true
You can use the "ClientFilter" from the example, but VisuUtils also provides some predefined filters, see "Globals" inside VisuUtils.
Once you defined your filter, check out "VisuClientIteration".
In your case I would reset your counter inside "StartIteration" and increase it in HandleClient.
Best regards,
Marcel