NI-DAQmx .NET Framework 4.0 API Reference

Table of Contents

Timing.ConfigureHandshaking Method (SampleQuantityMode, Int32)

  • Updated2023-02-21
  • 2 minute(s) read
Timing.ConfigureHandshaking Method (SampleQuantityMode, Int32)
Determines the sample timing and duration of the task with the specified number of samples, using standard 8255/82C55 digital handshaking between the device and a peripheral device.

Namespace:  NationalInstruments.DAQmx
Assembly:  NationalInstruments.DAQmx (in NationalInstruments.DAQmx.dll) Version: 20.7.40.49302

Syntax

public void ConfigureHandshaking(
	SampleQuantityMode sampleMode,
	int samplesPerChannel
)
Public Sub ConfigureHandshaking ( 
	sampleMode As SampleQuantityMode,
	samplesPerChannel As Integer
)

Parameters

sampleMode
Type: NationalInstruments.DAQmxSampleQuantityMode
The duration of the task. A task is either finite and stops once the specified number of samples has been acquired or generated, or it is continuous and continues to acquire or generate samples until the task is explicitly stopped.
samplesPerChannel
Type: SystemInt32
The number of samples to acquire or generate for each channel in the task if sampleMode is FiniteSamples. If sampleMode is ContinuousSamples, NI-DAQmx uses this value to determine the buffer size.

Exceptions

ExceptionCondition
DaqExceptionThe NI-DAQmx driver returned an error.

Remarks

Use this method if the task requires a finite number of samples. These devices support handshake timing.

The NI-DAQmx driver does not determine if the requested settings are possible until the task is verified. This method does not throw an exception for parameter values that are not compatible with your hardware or other settings in your task. To determine if all of the settings for a Task are valid, you must verify the task by starting the task, either with Start or by reading from or writing to the task, or by calling Control(TaskAction) with Verify.

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 ItemString property throws an exception.

See Also

Log in to get a better experience