Editing the conditions in the Dispatcher
 

Editing the conditions in the Dispatcher

Begonnen von fur, 28. April 2016, 16:18:31

Vorheriges Thema - Nächstes Thema

fur

I try to tell the dispatcher that I want it to do an action when either one of to buttons are green or one of two other buttons are green. I have tried for some time now, but I don't manage to get the "Ors" and "Ands" right. I suppose this should be possible. Anyone out there who can help ?
Best regards from
Morten in Oslo
  • Win-Digipet-Version:
    2015.2 Premiun Edition
  • Anlagenkonfiguration:
    Märklin H0, CS2, LDT HSI-88-USB
  • Rechnerkonfiguration:
    Windows 10

Stefan Lersch

#1
Hi,

welcome to the forum. It is common here to sign by with the name. The first name is sufficient. We prefer to call the people by name and not just "hi".

To your problem. Let's say your buttons are called A1, A2, B1, and B2. One of the A's has to be green or one of the B's.

I suppose you mean either one of the A's or one of the B's. Because if it could be just any of them it would be simple.

Which version of WDP do you have? Please fill out the forum profile. 2012? 2015? Small? Professional? I assume 2015 Professional. The Small version doesn't have a dispatcher as far as I know.

The logic is:
or
  and
    B1 = red
    B2 = red
    or
      A1 = green
      A2 = green
  and
    A1 = red   
    A2 = red
    or
      B1 = green
      B2 = green


This translates to: A1 or A2 are green and B1 and B2 are red or vica versa.
Viele Grüße,
Stefan
  • Win-Digipet-Version:
    WDP 2021.x Beta
  • Anlagenkonfiguration:
    N-Anlage im Bau, Minitrix & Co., Tams MC 2.2.3, DCC
  • Rechnerkonfiguration:
    Quad Core 8 GB mit Win 10, 32"quot Bildschirm

fur

Hi Stefan !

Thx for your answer. I will try this soon.
I have filled in the lacking information in my profile now.
Thx again.

Morten
Best regards from
Morten in Oslo
  • Win-Digipet-Version:
    2015.2 Premiun Edition
  • Anlagenkonfiguration:
    Märklin H0, CS2, LDT HSI-88-USB
  • Rechnerkonfiguration:
    Windows 10

fur

Hi again, Stefan !

I'm sorry, I cant understand the logic in the dispatch condition field.
I want to the following:

If (A=green or B=green) and (C=green or D=green) : take action.
Regardless of the rest of situations.
(I need one of A or B and one of C or D. They all can be green, that's fine, as long as one in each group is green.)

My problem, I think, is that I cant see what scope the Ors and Ands rules over. If you can give me examples of this I will be grateful. (It's quite many years since my school education in this topic.)
Best regards from
Morten in Oslo
  • Win-Digipet-Version:
    2015.2 Premiun Edition
  • Anlagenkonfiguration:
    Märklin H0, CS2, LDT HSI-88-USB
  • Rechnerkonfiguration:
    Windows 10

fur

Hi again !

I think my brain has worked during my sleep last night because now I see how to do this. And I have tested it to be ok, also. Yippi !
Best regards from
Morten in Oslo
  • Win-Digipet-Version:
    2015.2 Premiun Edition
  • Anlagenkonfiguration:
    Märklin H0, CS2, LDT HSI-88-USB
  • Rechnerkonfiguration:
    Windows 10

Pierangelo

Hi Morten

I am happy that you reach your target, just as info for any other guy interest in i will include an example of your problem.
I have defined four buttons A,B,C,D and i want that a signal will be turned to green when A or B are green and C or D are green.
In the enclosed images you can find the dispatcher record definition and the result action.

Bye
Pierangelo
  • Win-Digipet-Version:
    2015.1b
  • Anlagenkonfiguration:
    Intellibox + Uhlenbrock feedback modules
  • Rechnerkonfiguration:
    Windows 7 64 bit -8Gb Ram