Visu Utils FbOpenDialogExtended

tvm
2022-02-17
2022-02-18
  • tvm - 2022-02-17

    A couple questions about the use of FbOpenDialogExtended in the Visu Utils library:
    1. Does it have to be called from the visualization task? It would seem to make sense, but in the example here: https://forge.codesys.com/prj/codesys-example/visu-dialog-st/home/Home/ it's called from the main task.
    2. Can there be multiple instances of this function block? For example, if I have several libraries, and they all use it, would it be better to put it into a GVL somewhere that they can all access the same instance? Or is it ok to declare it in different function blocks or libraries?
    3. Does it take multiple scans to run? If I have it declared, say, in a GVL, should I be able to run it from the input configuration of a visu element ("Execute ST-Code")

    thanks

     
  • m.prestel - 2022-02-18

    Hey,

    1. No, VisuUtils is designed in a way so that you dont have to call it from the VISU_TASK.
    2. You should be good using multiple instances.
    3. To be honest I only called it from a program, never from Execute ST-code. Cant give you an answer for this one.

    Best regards,
    Marcel

     

Log in to post a comment.