Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How long do variable assignments / init take?

Featured Replies

Posted

I have a program that resets values for reporting at the end of month day 1, so I can evaluate highs and lows in future days.  The last few lines curiously don't seem to work. However, after 2 months of testing, its clear the last few lines aren't executing. I'm thinking its taking longer than the 5 seconds I gave it, the day value changes and program dies before completing:

Assumption: that the variable assignments and inits don't take very long.

Sump Pump Monthly Values Reset PM - [ID 0047][Parent 001A]

If
        'TimeData' Day of Month is 1 days
    And Time is 11:59:55PM
 
Then
        $Sump_Pump_Maximum_daily_Gallons  = $Sump_Pump_Gallons_Daily
        $Sump_Pump_Maximum_daily_Gallons Init To $Sump_Pump_Maximum_daily_Gallons
        $Sump_Pump_Minimum_daily_gallons  = $Sump_Pump_Gallons_Daily
        $Sump_Pump_Minimum_daily_gallons Init To $Sump_Pump_Minimum_daily_gallons
        $Sump_Pump_Minimum_daily_cycles  = $Sump_Pump_Cycles
        $Sump_Pump_Minimum_daily_cycles Init To $Sump_Pump_Minimum_daily_cycles
        $Sump_Pump_Maximum_daily_cycles  = $Sump_Pump_Cycles
        $Sump_Pump_Maximum_daily_cycles Init To $Sump_Pump_Maximum_daily_cycles
        $Sump_Pump_Monthly_Gallons  = $Sump_Pump_Gallons_Daily
        $Sump_Pump_Monthly_Gallons Init To $Sump_Pump_Monthly_Gallons
 
Else
   - No Actions - (To add one, press 'Action')
 

I just updated it to 11:59:45 and will look next month

The question, approximately how long should assign or init take?

Paul

1 hour ago, paulbates said:
$Sump_Pump_Monthly_Gallons  = $Sump_Pump_Gallons_Daily

This looks suspicious.  Agreed you may be changing the day and rerunning before it completes.  Do the values change right at midnight so that if it reruns, you would get the wrong results the second pass?   Nevermind, if the days changes it would not run again right away.

Edited by gzahar

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.