Comparing the value of a previous time step.
Posted: Thu May 04, 2006 12:37 pm
Hello.
I have a variable that outputs a series of irregular pulses - for example:
01010011011100 - the time step is 1 hour.
However, I don't want 2 consecutive 1's - so I want the above series to read:
01010010010000
What I was thinking was, is there any way of comparing the previous time step value to the current time value so that if they are both 1, the current time value becomes 0? I have tried using the Time Shift function, but it only appears to work with Data and Constant values (and not Auxillary).
Thanks in advance.
I have a variable that outputs a series of irregular pulses - for example:
01010011011100 - the time step is 1 hour.
However, I don't want 2 consecutive 1's - so I want the above series to read:
01010010010000
What I was thinking was, is there any way of comparing the previous time step value to the current time value so that if they are both 1, the current time value becomes 0? I have tried using the Time Shift function, but it only appears to work with Data and Constant values (and not Auxillary).
Thanks in advance.