Apex synchronize not working

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

zalick

A cup of water and a dash of salt
View Badges
Joined
May 29, 2014
Messages
1,572
Reaction score
1,855
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:
 
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:
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:

 

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top