Page 1 of 1

Alarm on certain time

Posted: Mon Aug 15, 2005 1:17 pm
by Pinkie2
Sorry for this question, but I realy don't know how!



I made a Null Device with prop. User Definable Time Property 1 and a property edit control on my SoftR to change the value of this definable time.

Now I want to make a task that executes when this prop1 time is equal the system time. How do I do this?!

Every way I tried it did not work.

So please help this stupid newbie.

Posted: Mon Aug 15, 2005 7:29 pm
by spike5884
The conditional line in your Task should be something like:


Code: Select all

If ('System Time.Time Without Seconds' is Equal 'NullDevice.Time Property') Then


You may need to use "%%System Time.Time Without Seconds%%". Check the help on how to use it.



And if you don't have the seconds in your times, just remove the "Without Seconds" parts.

Posted: Mon Aug 15, 2005 8:06 pm
by dlmorgan999
I have a task that does this and here is the code I use:


Code: Select all

If ('System Time.Time' is Equal '%%Bedroom Clock Radio.Alarm Time%%' Then
      Change 'Bedroom Clock Radio.State' to 'Running'


-- Dave