Pulsing for a varying period of time
Posted: Tue May 09, 2006 2:09 pm
Hi there,
I'm trying to create a pulse of between 5-30 days to follow after an amalgamation of two previous pulses.
The formula I'm using isn't working as I'd expected, perhaps someone has any ideas?
I've basically got two pulses:
A Check:
PULSE TRAIN( 0, A Time+"Aircraft Wash Pre & Post", A Repeat Time, 5000)
C Check:
PULSE TRAIN( 0, C Time+"Aircraft Wash Pre & Post", C Repeat Time, 5000)
Where A & C Time and A & C Repeat Times are variable.
These pulses work fine as expected.
What I am trying to do is add a pulse train (Testing) that begins when either an A or C Check has finished ie, the pulse goes back to 0. The pulse train should be for a period of between 5 and 30 days.
The formula I'm currently using is:
Testing:
IF THEN ELSE( A Check=0:OR:C Check=0, PULSE TRAIN( 0, Testing Time, A Check=0:OR:C Check=0, 5000), 0)
Where Testing time is the Variable between 5 and 30.
I think I'm falling down on the repeat time part of the Pulse Train. I basically want it to repeat every time an A or C Check has completed.
Any help would be much appreciated, many thanks in advance.
Gemma
I'm trying to create a pulse of between 5-30 days to follow after an amalgamation of two previous pulses.
The formula I'm using isn't working as I'd expected, perhaps someone has any ideas?
I've basically got two pulses:
A Check:
PULSE TRAIN( 0, A Time+"Aircraft Wash Pre & Post", A Repeat Time, 5000)
C Check:
PULSE TRAIN( 0, C Time+"Aircraft Wash Pre & Post", C Repeat Time, 5000)
Where A & C Time and A & C Repeat Times are variable.
These pulses work fine as expected.
What I am trying to do is add a pulse train (Testing) that begins when either an A or C Check has finished ie, the pulse goes back to 0. The pulse train should be for a period of between 5 and 30 days.
The formula I'm currently using is:
Testing:
IF THEN ELSE( A Check=0:OR:C Check=0, PULSE TRAIN( 0, Testing Time, A Check=0:OR:C Check=0, 5000), 0)
Where Testing time is the Variable between 5 and 30.
I think I'm falling down on the repeat time part of the Pulse Train. I basically want it to repeat every time an A or C Check has completed.
Any help would be much appreciated, many thanks in advance.
Gemma