|Download Help (Windows Only)|
Sets the source of the sample clock and the rate of the sample clock.
Assembly: NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 188.8.131.52
|Visual Basic (Declaration)|
Public Sub ConfigureSampleClock ( _ signalSource As String, _ rate As Double, _ activeEdge As SampleClockActiveEdge, _ sampleMode As SampleQuantityMode _ )
public void ConfigureSampleClock( string signalSource, double rate, SampleClockActiveEdge activeEdge, SampleQuantityMode sampleMode )
|DaqException||The NI-DAQmx driver returned an error.|
You cannot apply this method to a subset of devices in the task, and you must apply this method to the task as a whole. You must call this method on the instance of Timing returned from the Timing property on the Task class. Accessing this method on instances of Timing returned from the Item property throws an exception.
|Note: Before calling this method, you must configure channels on the task using one of the channel collection properties (for example, CreateVoltageChannel on Task.AIChannels).|