Apex synchronize not working

  • Thread starter Thread starter zalick
  • Start date Start date
  • Tagged users Tagged users None

zalick

A cup of water and a dash of salt
View Badges
Joined
May 29, 2014
Messages
1,574
Reaction score
1,765
Location
Portland
Rating - 0%
0   0   0
I am trying to synchronize two Stream 3 and the timing is off. I can see the pumps out of synch and also watch the lights on the tunze controller out of sync. I believe I have the program correct. I'm trying to run the pumps opposite each other asynchronously
Any ideas?
Screenshot_20210211-153447~2.png Screenshot_20210211-153509~2.png
 
The problem is that your first pump has a total cycle time of 16 seconds (0 + 8 + 8), but the 2nd pump has a cycle time of 24 seconds (8 + 8 + 8). You need to understand the "Initial Off Time" adds to the "Off Time" for how long the pump remains off each cycle:

Screen Shot 2021-02-11 at 3.50.24 PM.png


You should change the 2nd pump to:

Initial Off Time: 8
On Time: 8
Off Time: 0

This will cause the first pump to be on for 8 seconds while the 2nd one is off (due to the Initial Off Time), then the 2nd one will turn on for 8 seconds while the first one is off. Both will have a 16 second cycle, with one using the 8 second Off Time and the other using the 8 second Initial Off Time.

Behind the scenes, it's just running the OSC command. See my tutorial on Apex Timers for details and examples of how OSC works:
https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/
 
Last edited:
The problem is that your first pump has a total cycle time of 16 seconds (0 + 8 + 8), but the 2nd pump has a cycle time of 24 seconds (8 + 8 + 8). You need to understand the "Initial Off Time" adds to the "Off Time" for how long the pump remains off each cycle:

Screen Shot 2021-02-11 at 3.50.24 PM.png


You should change the 2nd pump to:

Initial Off Time: 8
On Time: 8
Off Time: 0

This will cause the first pump to be on for 8 seconds while the 2nd one is off (due to the Initial Off Time), then the 2nd one will turn on for 8 seconds while the first one is off. Both will have a 16 second cycle, with one using the 8 second Off Time and the other using the 8 second Initial Off Time.

Behind the scenes, it's just running the OSC command. See my tutorial on Apex Timers for details and examples of how OSC works:
https://www.reef2reef.com/ams/neptune-apex-programming-tutorials-part-2-timers.689/
Thanks!!

I just assumed "initial" meant at startup and not as part of a repeating cycle. Knowing it's just running osc in the back makes sense.

Thanks for the tutorial link too! Timers are next on my list. :)
 
Thanks!!

I just assumed "initial" meant at startup and not as part of a repeating cycle. Knowing it's just running osc in the back makes sense.

Thanks for the tutorial link too! Timers are next on my list. :)
I know...They should change the wording to "Leading Off Time" and "Trailing Off Time".

Glad to help. Feel free to peruse my whole series of Apex tutorials:

https://www.reef2reef.com/ams/authors/suncrestreef.93940/
 

TOP 10 Trending Threads

WHAT KIND OF TANKMATE DYNAMIC STANDS OUT MOST IN YOUR REEF?

  • A fish pair or group that sticks together

    Votes: 3 27.3%
  • Some other kind of symbiotic pairing (fish & shrimp, crab and anemone, etc)

    Votes: 2 18.2%
  • A cleaner shrimp or fish with regular clients

    Votes: 1 9.1%
  • A fish that has adopted a coral or anemone

    Votes: 2 18.2%
  • An unexpected friendship between different tankmates

    Votes: 2 18.2%
  • A persistent rivalry or territorial feud

    Votes: 0 0.0%
  • No standout tankmate dynamic yet

    Votes: 0 0.0%
  • Other (Post in the comments)

    Votes: 1 9.1%
Back
Top
Home
Post thread…
Market
What's new