Hello.
In «Dispatcher»
I have put in some conditions. When they are valid, there is another window "When conditions are valid (switch on)" where I put in the actions to do. This works very find.
But now, I do have a special need to, in that window, set a counter to 2 different values, depending on the setting of a switch in the layout. Is this possible in any way? (Kind of like a sub-routine)
Regards,
Per
Hi Per,
use a complex calculation for the counter as show in the following pictures.
The used logic result folder in the calculation can be used to combine calculation and logic results in any way
Regards
Markus
P.S.: Other possibilities: you could also produce the result 0/1 by the logic folder and multiply it afterwards with constants etc. And if you summarize then multiple of these multiplications then you can make your choices.
Hello Markus!
Thank you! I am sorry, I have tried and tried but cannot figure it out. May I ask you to try to help me some more?
This is the situation:
In the layout I have a switch and a counter for this. When the switch is "Red" I want the counter to be set to the value 1. When the switch is "Green" I want the counter to be set to the value 10. This must be done from the window "When conditions are valid (switch on)", not from the "Conditions" window (that would be easy 😊 ) in the dipspatcher.
I know it is rather complex, and maybe cannot be done, but I hope it can 😊 otherwise I must re-write a bigger part of the Dispatcher contents.
Best regards,
Per
Hi Per
Please take again a look at my pictures. These show exactly what you want.
The right part of the window does not show the condition part of the dispatcher but the calculation window which can be reached via the fx button in the counter calculation show in the left picture
Regards
Markus
Hello Markus.
Sorry for bothering you with this, I think I am a bit slow :)
I will continue to try :)
Regards,
Per.
Hello again :)
I think I am doing this wrong, or misunderstand something. I have tried to explain what I did in the enclosed PDF-file.
Best regards,
Per.
Hi Per,
Please provide Back-up of the Project
Regards
Markus
Hello again.
I think I have found my mistake(s). I will test some more.
Thank you for your help!
Best regards,
Per.