# dutyCycle(a)

Determines the duty cycle of an arbitrary signal.

### Syntax

o_dutyCycle(a)
  a: waveform - signal to be analyzed
  return: scalar Real- duty cycle of the (presumed) periodic signal

### Usage

Returns the duty cycle of a signal, as defined by 10-90 transitions between a "high" and "low" value.

### Location

menu: veeos ==> Signal Processing ==> dutyCycle

library: sigLib

### Example

see example in veeos menu

### Notes

One common parameter for digital signals is duty cycle: the relative time spent "high" vs "low". This is normally presented as a ratio, with "1" being "high all the time and "0" being "low all the time". This function uses that standard and defines "up" as within 10% of highest value and "down" as within 10% of the lowest value. Given these margins the function is resistant to noise in the signal, but of course gets best results with many cycles.

### Reference

### Dependencies

### Supported On

VEE 7.0+, all platforms

### See Also

fallTime, frequency, period, riseTime

© 2015-2017. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 24 February 2017 08:58.