1) Give a description of the problem
I created a simple piston that mirrors one lights behavior at certain times (time argument isn’t currently in the piston).
2) What is the expected behaviour?
When one light turn on, the other turns on and vice versa
3) What is happening/not happening?
When the initial light is turned on/off, there is a lag anywhere from 8-10 seconds before the second light turns on/off. I’m guessing this is the semaphore log event, but not sure how to fix.
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach logs after turning logging level to Full
+1ms | ╔Received event [Entry Way Light].switch = on with a delay of 54ms |
---|---|
+10064ms | ║RunTime Analysis CS > 15ms > PS > 10026ms > PE > 23ms > CE |
+10065ms | ║Piston waited at a semaphore for 10020ms |
+10068ms | ║Runtime (37327 bytes) successfully initialized in 10026ms (v0.3.114.20220203) (10066ms) |
+10070ms | ║╔Execution stage started |
+10081ms | ║║Comparison (enum) on changes_to (string) on = true (1ms) |
+10084ms | ║║Cancelling condition #2’s schedules… |
+10087ms | ║║Cancelling statement #3’s schedules… |
+10105ms | ║║Executed physical command [Porch Light].on() (12ms) |
+10107ms | ║║Executed [Porch Light].on (16ms) |
+10109ms | ║║Condition #2 evaluated true (32ms) |
+10110ms | ║║Cancelling condition #1’s schedules… |
+10112ms | ║║Condition group #1 evaluated true (state changed) (35ms) |
+10120ms | ║║Comparison (enum) on changes_to (string) off = false (1ms) |
+10123ms | ║║Condition #7 evaluated false (6ms) |
+10124ms | ║║Condition group #6 evaluated false (state did not change) (9ms) |
+10127ms | ║╚Execution stage complete. (57ms) |
+10128ms | ╚Event processed successfully (10128ms) |
5/4/2022, 1:37:39 PM +430ms | |
+1ms | ╔Received event [Entry Way Light].switch = off with a delay of 88ms |
+10050ms | ║RunTime Analysis CS > 14ms > PS > 10019ms > PE > 17ms > CE |
+10051ms | ║Piston waited at a semaphore for 10015ms |
+10053ms | ║Runtime (37326 bytes) successfully initialized in 10019ms (v0.3.114.20220203) (10051ms) |
+10054ms | ║╔Execution stage started |
+10060ms | ║║Comparison (enum) off changes_to (string) on = false (1ms) |
+10061ms | ║║Condition #2 evaluated false (4ms) |
+10062ms | ║║Condition group #1 evaluated false (state did not change) (5ms) |
+10067ms | ║║Comparison (enum) off changes_to (string) off = false (1ms) |
+10068ms | ║║Cancelling condition #7’s schedules… |
+10069ms | ║║Condition #7 evaluated false (5ms) |
+10070ms | ║║Cancelling condition #6’s schedules… |
+10071ms | ║║Condition group #6 evaluated false (state changed) (7ms) |
+10072ms | ║╚Execution stage complete. (19ms) |
+10073ms | ╚Event processed successfully (10073ms) |