LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sprinkler Design Pattern

hi all,
I am preparing for the CLD. I would like to know which design pattern is suitable for sprinkler controller?
My opinion state machine pattern not suitable.
0 Kudos
Message 1 of 5
(2,481 Views)

Why do you think a state machine is not suitable?

0 Kudos
Message 2 of 5
(2,480 Views)
BillMe,
I cant get this idea thats why.
When timer runs . if rain selector or low waterpress detected (fp event) should stop the timer.
any thougts?
0 Kudos
Message 3 of 5
(2,474 Views)

Use rain selector and low water pressure as inputs to the timer state, along with the timing information of course. Then timing stops when the specified time has occurred, or one of the other inputs is outside the designated range. The next state may be different for each of those conditions.  This is the power of the state machine architecture, that it can respond to inputs differently based on the current state.

 

Lynn

0 Kudos
Message 4 of 5
(2,471 Views)

Dear Lynn,

As you suggested its a good idea. will make a try. 

0 Kudos
Message 5 of 5
(2,464 Views)