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.
[Obsolete("This method has been deprecated, do not use this method. Consider calling GetSampleClockRates().Distinct().Single() for the same functionality.", true)]
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 sample clock rate is the same value 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.