Hi,
I am trying to calculate the time intervals between when a curve goes above and below a certain threshold value. That is to say, on an XY-plot with X representing time in milliseconds and Y the curve in question, I would like to calculate the time interval X1-X0 where X0 is the time when the Y curve goes above a certain value Yv (30 in my case) and X1 is the time when it goes below it again. All calculated interval times then have to be stored in a channel called IntervalTimes.
I imagine it to be a ChnEvent problem but I am struggling since the update to Diadem 2017 as I still haven't gotten used to the news calculator, its functions and scripts.
Help would be most appreciated.
Thanks,
Tim