Randomizing Wavemakers

Do you have a question on how to do something.
Ask in here.
Post Reply
rossbryant1956
Posts: 471
Joined: Sat Jan 14, 2012 2:08 pm
Location: Montgomery Village, MD

Randomizing Wavemakers

Post by rossbryant1956 »

Found this piece of code:

ReefAngel.Wavemaker( Port5, 90 );
ReefAngel.Relay.Set( Port6, !ReefAngel.Relay.Status( Port5 ) );

But what I'd rather do is this:

ReefAngel.WavemakerRandom(Port5, 60, 100 );
ReefAngel.Relay.Set (Port6, !ReefAngel.Relay.Status(Port5 ) );

So in other words, I like the concept of randomizing, but would like the other power head working in concert with the other. What I don't want is for the two powerheads to be on the same cycle, both firing at the same time.

Thx
Roscoe's Reefs - Starting Over Again:

Building new 29g Nano after landlord went berserk over my 4 75 gallon tanks, Multiple RA's, Water mixing stations, etc. Your help welcomed in remembering all I've forgotten.
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Randomizing Wavemakers

Post by cosmith71 »

That second bit of code should do it. The second line sets Port6 to the opposite of Port5.
Post Reply