Calling a Series of Pistons with Wait Times


#1

1) Give a description of the problem
I’m calling a series of pistons - each of which I want to wait a period of time. But I want them to wait_at the same time_. It appears they wait for the predecessor piston to complete before calling the next one.

2) What is the expected behavior?
Multiple pistons call and wait at the same time.

3) What is happening/not happening?
Looks like they fire in series after waiting for the predecessor to finish.

4) Post a Green Snapshot of the pistonimage

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)


#2

First thought, not sure if it will work… have you tried

Creating separate statement actions for each of the Execute piston tasks and set them asynch so they’ll be independent of each other. It might be a pain to set up each one but it might be what you need. I’d probably set up a couple first just to test the theory.


#3

Haven’t tried async. Would seem that it would create a huge number of if statements to do that. Not sure it’s worth that. I’ll look into it, but really looking to fire a series of pistons that fade different lights. I have a piston to turn on/off/fade each switch. But, probably could create one that does multiples…


#4

No need for separate IFs, one sec… I was thinking something like this. Each Execute piston task in a separate task statement (not IF).

image

Edit mode:
image


#5

Thanks! I’m going to take a look at this at my next opportunity and will get back to the group.