Wavemaker extended time

Do you have a question on how to do something.
Ask in here.
Post Reply
Threedo
Posts: 22
Joined: Mon Apr 02, 2012 9:02 am

Wavemaker extended time

Post by Threedo »

is there a way to turn the wavemaker on for say 1 hour then off for 10 minutes then on for 1 hour and off for 10 minutes or something along these lines?

i only see it goes up to a minute or so.
rimai
Posts: 12857
Joined: Fri Mar 18, 2011 6:47 pm

Re: Wavemaker extended time

Post by rimai »

Yes, but the cycles are symetric on the standard wavemaker function.
So, if you use this:

Code: Select all

ReefAngel.Wavemaker(Port5,3600);
You would get a wavemaker on for 1h and off for 1h.
If you want on for 1h and off for 10 minutes, we'll have to create a custom function.
But, if the total cycle is 1hr, you could use this:

Code: Select all

ReefAngel.Relay.On(Port5);
if (minute()<10) ReefAngel.Relay.Off(Port5);
The code above would turn the port off whenever the minutes of the hour are less than 10.
Let me know if you need a custom function.
Roberto.
Post Reply