Hi, I am basically at lost trying to figure out how to record the time when a certain condition is met in a simulation. I am using pop wrangle in this case.
The basic problem is that once I set the value to @Time. the attribute get linked to the global time attribute, basically the clock is still running. I know is pretty logical but presents me with a problem... how can I record the exact time when a condition is met.
You can take a look at the file for an example and if you see the attributes in the geometry spreadsheet you will see how state and time all start appropriately but time_start remains running even after state changes.
i@state = 0;
f@time_start = 0;
if (dist < outRadius && @state == 0 )
{
@time_start = @Time;
@state = 1;
}
timer.hiplc