Enumerates the different PWM modes.

Namespace:  Quanser.Hardware
Assembly:  Quanser.Hardware.Hil (in Quanser.Hardware.Hil.dll)

Syntax

Visual Basic (Declaration)
Public Enumeration PwmMode
C#
public enum PwmMode
Visual C++
public enum class PwmMode
JavaScript
Quanser.Hardware.PwmMode = function();
Quanser.Hardware.PwmMode.createEnum('Quanser.Hardware.PwmMode', false);

Members

Member nameDescription
DutyCycle
PWM outputs vary in duty cycle.
Frequency
PWM outputs vary in frequency.
Period
PWM outputs vary in period.

Remarks

On some data acquisition cards, such as the Quanser Q8, the PWM output channels may be configured in a variey of modes. This enumeration provides a symbolic representation of the different modes available. The SetPwmMode(array<Int32>[]()[], array<Hil..::.PwmMode>[]()[]) method is used to configure the mode of the PWM outputs.

The DutyCycle mode configures a PWM output with a fixed frequency and variable duty cycle. This mode is the default because it corresponds to traditional PWM usage. The PWM duty cycle is specified as a signed fraction between -1.0 and 1.0, representing 0-100% duty cycle in each direction. The PWM frequency is set using the SetPwmFrequency(array<Int32>[]()[], array<Double>[]()[]) method.

The Frequency mode configures a PWM output with a fixed duty cycle and variable frequency. This mode actually makes the PWM output a frequency-modulated or FM output. The PWM output values are specified as a frequency in Hertz in this case rather than a duty cycle. The fixed duty cycle is set using the SetPwmDutyCycle(array<Int32>[]()[], array<Double>[]()[]) method.

The Period mode configures a PWM output with a fixed duty cycle and variable period. This mode actually makes the PWM output a frequency-modulated or FM output, except that the PWM output values are specified as a period rather than a frequency. The fixed duty cycle is set using the SetPwmDutyCycle(array<Int32>[]()[], array<Double>[]()[]) method.

See Also