AnsweredAssumed Answered

Calculating signal ON duration inside an Event Frame

Question asked by Idris on May 15, 2016
Latest reply on May 26, 2016 by Idris

Hi All,

I am just starting to use OSI PI to do analysis on some signals. I was wondering if anyone here can help me with what I am trying to do.

I think this can be done using PI Event Frame but I just can't figure out how to do this.


In summary: I would like to calculate the duration of signal 2 = ON, whenever signal 1 is ON.

From that, I may also want to calculate how much of that duration is in percentage over the time when Signal 1 is ON.

I have attached a picture to try illustrate this: Calculate the duration of the green area.

 

Signal.png

(excuse the crude Excel drawing)

 

Practical Example:

We have a machine that is operated by different operators during the course of the day. I would like to know for each operators, the total time a particular button is pressed when he/she is operating that machine.

I'd like to use this as a performance comparison between each operators.

In the above diagram, Signal 1 would be the Operator name/ID; and Signal 2 would be that particular button.

 

Attempts so far:

There are tutorial videos on how to calculate duration for a particular signal using Event Frames.

However I can't seem to find any examples of what I'm trying to do.

I've tried using Event Frame Generation in Analyses tab and put

  • "Trigger on:" Signal 1, and
  • "StartTrigger" as Signal 2

.... but I don't think this gives me the right result.

 

Thank you in advanced.

Outcomes