DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Event length bell curve

Hi, I was hoping for some help.

 

I have some data which effectively shows when a electric motor for an air compressor is on or off (1 is off, 2 is on). It switches on and off frequently and I would like to plot a bell curve which shows the distribution of how long it's on for when it comes on. I've tried a few things but nothing is really working as I would hope. Any help would be appreciated. 

 

Kind Regards,

Kieran

0 Kudos
Message 1 of 2
(1,971 Views)

Hi DEKieranrb,

 

First you need to calculate the duration of all those ON states.  For that I recommend you use the "Event Search" function in the "Channel Functions" palette in the ANALYSIS panel.  You can use the standard "Window" event definition and specify > 1.5 (and < 2.5) to highlight all the ON states.  You'll need to choose the X channel and "minimum" and "maximum" Characteristic Values to calculate inside those state regions.  You can then use the "Subtract" function in the "Basic Mathematics" palette to subtract the minimum channel (time) values from each region from the maximum channel (time) values from each region, creating a (time) duration channel. Then you can take that duration channel and run it through the "Histogram Classification" function in the "Statistics" palette of ANALYSIS to get your "bell curve".

 

Brad Turpin

Senior Technical Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(1,902 Views)