Enumerates the different hardware clock modes.

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

Syntax

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

Members

Member nameDescription
Encoder
Use counter as an encoder input.
Pwm
Use clock for PWM output.
TimeBase
Use clock has hardware timebase (default).

Remarks

Hardware clocks or counters/timers on a data acquisition card are often multi-purpose devices. For example, on the Quanser Q8 card, its two 32-bit counters may be individually configured as PWM outputs or hardware timebases.

The SetClockMode(array<Hil..::.Clock>[]()[], array<Hil..::.ClockMode>[]()[]) method is used to configure the mode of the hardware clocks. The Hil..::.ClockMode enumeration provides the different clock modes available.

The TimeBase mode configures the clock as a hardware timebase so that it may be used as the timebase for the buffered I/O and task methods.

The Pwm mode configures the clock as a PWM output, allowing the various PWM methods to be used to drive it.

The Encoder mode configures the counter/timer as an encoder input, allowing the various encoder methods to be used to read its value.

See Also