Method GetSampleClockRateDistinct
- Assembly
- NationalInstruments.SemiconductorTestLibrary.Extensions.dll
GetSampleClockRateDistinct(DAQmxTasksBundle)
Specifies the sampling rate in samples per channel per second. If you use an external source for the Sample Clock, set this input to the maximum expected rate of that clock./>
public static double GetSampleClockRateDistinct(this DAQmxTasksBundle tasksBundle)
Parameters
tasksBundle
DAQmxTasksBundleThe DAQmxTasksBundle object.
Returns
- double
Sample clock rate.
Remarks
This method is the same as GetSampleClockRates(DAQmxTasksBundle), except it also checks if the flag state is the same values across all sessions in the bundle. If the values are the same, it returns the single double value. Otherwise, it throws an exception.
Exceptions
- NISemiconductorTestException
The value for the sample clock rate is not the same for all underlying instrument sessions.