1) Give a description of the problem
I must not understand how the “for” loop works, since I get one extra iteration than expected. Hoping someone can explain to me how this is supposed to work, or maybe I’m just confused by the logs.
2) What is the expected behavior?
I expect the first iteration of the for loop to happen at 2:00am. On the 2nd iteration at 2:15am (approx), I expect the the loop count to have incremented already – which it does not.
3) What is happening/not happening?
The piston first runs at 2:00am, and I expect that the for loop first executes at that time. Looking at the log, it seems on at 2:00am the loop does not execute and then executes for the first time on the next iteration (after a 15min wait). I’m looking at the log line at 2:15am at +193msec below, which shows a count of 0 which tells me this is the FIRST iteration of the for loop rather than the 2nd.
Also, I don’t see any comparison/reference to the index comparison on that first execution at 2:00am in the log (behaviour I’d expect since its seen on later iterations, but maybe theres some initialization process on the first loop)
**4) Post a Green Snapshot of the piston![image|45x37]
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)
9/30/2018, 2:14:58 AM +58ms
+1ms ╔Received event [HayekHome].time = 1538298899356 with a delay of -1298ms
+150ms ║RunTime Analysis CS > 19ms > PS > 115ms > PE > 15ms > CE
+152ms ║Runtime (39601 bytes) successfully initialized in 115ms (v0.3.108.20180906) (150ms)
+154ms ║╔Execution stage started
**+193ms ║║Comparison (decimal) 0.0 is_equal_to (integer) 10 = false (2ms)**
+195ms ║║Condition #12 evaluated false (8ms)
+197ms ║║Condition group #11 evaluated false (state did not change) (10ms)
+217ms ║║Comparison (decimal) 693.88 is_less_than_or_equal_to (integer) 150 = false (2ms)
+219ms ║║Condition #8 evaluated false (13ms)
+221ms ║║Condition group #7 evaluated false (state did not change) (15ms)
+225ms ║║Cancelling statement #9’s schedules…
+230ms ║║Executed virtual command wait (1ms)
+235ms ║║Requesting a wake up for Sun, Sep 30 2018 @ 2:29:58 AM PDT (in 900.0s)
+253ms ║╚Execution stage complete. (100ms)
+256ms ║Setting up scheduled job for Sun, Sep 30 2018 @ 2:29:58 AM PDT (in 899.98s), with 1 more job pending
+270ms ╚Event processed successfully (270ms)
9/30/2018, 1:59:59 AM +142ms
+1ms ╔Received event [HayekHome].time = 1538298000000 with a delay of -859ms
+143ms ║RunTime Analysis CS > 19ms > PS > 99ms > PE > 26ms > CE
+147ms ║Runtime (39589 bytes) successfully initialized in 99ms (v0.3.108.20180906) (145ms)
+148ms ║╔Execution stage started
+192ms ║║Comparison (decimal) 693.88 is_less_than_or_equal_to (integer) 150 = false (3ms)
+195ms ║║Condition #8 evaluated false (16ms)
+197ms ║║Condition group #7 evaluated false (state did not change) (19ms)
+202ms ║║Cancelling statement #9's schedules...
+210ms ║║Executed virtual command wait (1ms)
+213ms ║║Requesting a wake up for Sun, Sep 30 2018 @ 2:14:59 AM PDT (in 900.0s)
+222ms ║╚Execution stage complete. (74ms)
+225ms ║Setting up scheduled job for Sun, Sep 30 2018 @ 2:14:59 AM PDT (in 899.99s), with 1 more job pending
+232ms ╚Event processed successfully (233Logging levelm
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.s