Clocks
The buffered I/O and task functions all have a clock parameter. The clock parameter determines the source of the timing for these functions. Clocks come in two major categories: system clocks and hardware clocks.
System clocks are provided by the operating system. System clocks, in general, may be used by more than one HIL block at the same time. In Windows, only one system clock is supported:
SYSTEM_CLOCK_1
Under RTSS, three system clocks are supported:
SYSTEM_CLOCK_1
SYSTEM_CLOCK_2
SYSTEM_CLOCK_3
Hardware clocks are provided by the HIL board.
Hardware clocks, in general, may be used by only one HIL function at the same
time. This exclusion is particularly true of task functions. Two buffered I/O
functions may share a hardware clock because they do not use the clock at the
same time. The number of hardware clocks available depends on the HIL board
selected. For the Q8 card, for example, two hardware clocks are available: HARDWARE_CLOCK_0
and HARDWARE_CLOCK_1
. The range of sampling frequencies supported
by a hardware clock also depends on the HIL board selected. The Q8 card's
hardware clocks have a 60 ns resolution so fast sampling rates are supported,
limited only by speed of the CPU and the hardware configuration of the
computer.
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.