Autor Thema: Editing the conditions in the Dispatcher  (Gelesen 2794 mal)

Offline fur

  • Junior-Mitglied
  • Beiträge: 6
  • Ort: Dal Ort bei GoogleMaps suchen no
  • Morten
Editing the conditions in the Dispatcher
« am: 28. April 2016, 16:18:31 »
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

Offline Stefan Lersch

  • Moderator
  • Senior-Mitglied
  • *
  • Beiträge: 6433
  • Ort: Brühl (bei Köln) Ort bei GoogleMaps suchen de
    • Infos zum Down-Syndrom alias Trisomie 21
Re: Editing the conditions in the Dispatcher
« Antwort #1 am: 28. April 2016, 18:22:27 »
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.
« Letzte Änderung: 28. April 2016, 18:33:45 von Stefan Lersch »
Viele Grüße,
Stefan
  • Win-Digipet-Version:
    WDP 2021.x Beta
  • Anlagenkonfiguration:
    N-Anlage im Bau, Minitrix &amp Co., Tams MC 2.2.3, DCC
  • Rechnerkonfiguration:
    Quad Core 8 GB mit Win 10, 32"quot Bildschirm

Offline fur

  • Junior-Mitglied
  • Beiträge: 6
  • Ort: Dal Ort bei GoogleMaps suchen no
  • Morten
Re: Editing the conditions in the Dispatcher
« Antwort #2 am: 28. April 2016, 23:35:22 »
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

Offline fur

  • Junior-Mitglied
  • Beiträge: 6
  • Ort: Dal Ort bei GoogleMaps suchen no
  • Morten
Re: Editing the conditions in the Dispatcher
« Antwort #3 am: 29. April 2016, 02:31:04 »
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

Offline fur

  • Junior-Mitglied
  • Beiträge: 6
  • Ort: Dal Ort bei GoogleMaps suchen no
  • Morten
Re: Editing the conditions in the Dispatcher
« Antwort #4 am: 29. April 2016, 10:02:07 »
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

Offline Pierangelo

  • Junior-Mitglied
  • Beiträge: 17
  • Ort: Genova Ort bei GoogleMaps suchen it
Re: Editing the conditions in the Dispatcher
« Antwort #5 am: 03. Mai 2016, 13:58:04 »
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

Zu diesem Beitrag gehören 2 Anhäng(e). Um diese zu sehen oder zum Download müssen Sie sich einloggen.
  • Win-Digipet-Version:
    2015.1b
  • Anlagenkonfiguration:
    Intellibox + Uhlenbrock feedback modules
  • Rechnerkonfiguration:
    Windows 7 64 bit -8Gb Ram