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.
Wavemaker extended time
-
rimai
- Posts: 12857
- Joined: Fri Mar 18, 2011 6:47 pm
Re: Wavemaker extended time
Yes, but the cycles are symetric on the standard wavemaker function.
So, if you use this:
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:
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.
So, if you use this:
Code: Select all
ReefAngel.Wavemaker(Port5,3600);
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);
Let me know if you need a custom function.
Roberto.