"A picture is worth a 1000 words..."
Attached you will find and example file built in Lookout 4.5.1 Build 18.
Note: If you change the reference pot's value the days of the week will not be correct. I chose 1/1/01 as my reference date, That happens to be a Monday.
Quick Summary of how to do it:
Truncate system time- this gives you a whole number.
Subtract the reference date from the truncated system time- this gives the # of days since the reference.
Use the Mod function on the # of days since the reference using 7 as the divisor. Since our reference was on a Monday this gives you the days since Monday (0=Monday,6=Sunday).This is the value that you can use to initiate action in the process file. I used it to display the day of the
week using an if statement displayed as text: IF(Days_since_monday=0,"Monday",IF(Days_since_monday=1,"Tuesday", etc....
Hope this gets you going.
Regards,
Tommy Scharmann