External clock Clause Samples

External clock. AlazarTech boards optionally support using a user-supplied external clock signal input to the ECLK connector on its PCI/PCIe mounting bracket to clock its ADC converters. To use an external clock signal as a timebase, call AlazarSetCaptureClock specifying SAMPLE_RATE_USER_DEF as the sample rate identifier, and select a clock source identifier appropriate for the board model and the external clock properties. The following code fragment shows how to configure an ATS460 to acquire at 100 MS/s with a 100 MHz external clock. AlazarSetCaptureClock( handle, // HANDLE –- board handle FAST_EXTERNAL_CLOCK, // U32 –- clock source Id SAMPLE_RATE_USER_DEF, // U32 –- sample rate Id or value CLOCK_EDGE_RISING, // U32 –- clock edge Id 0 // U32 –- decimation ); See the board reference manual for the properties of an external clock signal that are appropriate for a board, and AlazarSetCaptureClock for a list of external clock source identifiers.