NI-HSDIO C Function Reference

NIHSDIO_ATTR_SAMPLE_CLOCK_RATE

  • Updated2023-02-21
  • 1 minute(s) read

Specific Attribute

Data
type
Access Applies to Coercion High-Level Functions
ViReal64 R/W N/A Yes niHSDIO_ConfigureSampleClock

Description

Use this attribute to specify the Sample clock rate, which controls the rate at which samples are acquired or generated when you use the Sample clock to time your application.

You must set this attribute even when you supply an external clock because NI-HSDIO uses this attribute for a number of reasons, including optimal error checking and certain pulse width selections.

If you have selected NIHSDIO_VAL_ONBOARD_CLOCK_STR as the value for the NIHSDIO_ATTR_SAMPLE_CLOCK_SOURCE attribute, getting this value shows how NI-HSDIO coerced the value.

Units: hertz

Related topics:

Log in to get a better experience