NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

Timing Class

Timing Class

Timing Class

Contains properties and methods that configure the sample timing and duration of the Task.

Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    NationalInstruments.DAQmxTiming

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

Syntax

public class Timing : MarshalByRefObject, IFilteredTypeDescriptor, 
	IServiceProvider
Public Class Timing
	Inherits MarshalByRefObject
	Implements IFilteredTypeDescriptor, IServiceProvider

The Timing type exposes the following members.

Properties

  NameDescription
Public propertyAIConvertActiveEdge
Specifies on which edge of the clock pulse an analog-to-digital conversion takes place.
Public propertyAIConvertMaximumRate
Indicates the maximum convert rate supported by the task, given the current devices and channel count.
Public propertyAIConvertRate
Specifies in Hertz the rate at which to clock the analog-to-digital converter. This clock is specific to the analog input section of multiplexed devices.
Public propertyAIConvertSource
Specifies the terminal of the signal to use as the AI Convert Clock.
Public propertyAIConvertTimebaseDivisor
Specifies the number of AI Convert Clock Timebase pulses needed to produce a single AI Convert Clock pulse.
Public propertyAIConvertTimebaseSource
Specifies the terminal of the signal to use as the AI Convert Clock Timebase.
Public propertyChangeDetectionDIFallingEdgePhysicalChannels
Specifies the names of the digital lines or ports on which to detect falling edges. The lines or ports must be used by virtual channels in the task. You also can specify a string that contains a list or range of digital lines or ports.
Public propertyChangeDetectionDIRisingEdgePhysicalChannels
Specifies the names of the digital lines or ports on which to detect rising edges. The lines or ports must be used by virtual channels in the task. You also can specify a string that contains a list or range of digital lines or ports.
Public propertyChangeDetectionDITristate
Specifies whether to tristate lines specified with ChangeDetectionDIRisingEdgePhysicalChannels and ChangeDetectionDIFallingEdgePhysicalChannels that are not in a virtual channel in the task. If you set this property to , NI-DAQmx tristates rising/falling edge lines that are not in a virtual channel in the task. If you set this property to , NI-DAQmx does not modify the configuration of rising/falling edge lines that are not in a virtual channel in the task, even if the lines were previously tristated. Set this property to to detect changes on lines in other tasks or to detect changes on output-only lines.
Public propertyChangeDetectionOverflowed
Indicates if samples were missed because change detection events occurred faster than the device could handle them. Some devices detect overflows differently than others.
Public propertyDelayFromSampleClock
Specifies the amount of time to wait after receiving a Sample Clock edge before beginning to acquire the sample. This value is in the units you specify with DelayFromSampleClockUnits.
Public propertyDelayFromSampleClockUnits
Specifies the units of DelayFromSampleClock.
Public propertyDigitalFilterEnable
Specifies whether to apply a digital filter to the AI Convert Clock.
Public propertyDigitalFilterMinimumPulseWidth
Specifies in seconds the minimum pulse width the filter recognizes.
Public propertyDigitalFilterTimebaseRate
Specifies in hertz the rate of the digital filter timebase. NI-DAQmx uses this value to compute settings for the filter.
Public propertyDigitalFilterTimebaseSource
Specifies the terminal of the signal to use as the timebase of the digital filter.
Public propertyDigitalSynchronizationEnable
Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.
Public propertyFirstSampleClockOffset
Specifies, in seconds, the offset to apply to the FirstSampleClockTime value. This offset modifies when the first sample clock occurs and is used to account for known delays in the signal path.
Public propertyFirstSampleClockTime
Gets or sets the time of the first sample clock.
Public propertyFirstSampleClockTimescale
Specifies the timescale to be used for the value of FirstSampleClockTime.
Public propertyFirstSampleTimestamp
Gets the timestamp of the first sample.
Public propertyFirstSampleTimestampEnable
Specifies whether to enable the first sample timestamp.
Public propertyFirstSampleTimestampTimescale
Specifies the timescale to be used for the first sample timestamp.
Public propertyHandshakeDelayAfterTransfer
Specifies the number of seconds to wait after a handshake cycle before starting a new handshake cycle.
Public propertyHandshakeSampleInputDataCondition
Specifies on which edge of the Handshake Trigger an input task latches the data from the peripheral device.
Public propertyHandshakeStartCondition
Specifies the point in the handshake cycle that the device is in when the task starts.
Public propertyImplicitUnderflowBehavior
Specifies the action to take when the onboard memory of the device becomes empty.
Public propertyItem
Gets an instance of Timing that contains settings for only the specified devices. In Visual C#, this property is the indexer.
Public propertyMasterTimebaseRate
Specifies the rate of the Master Timebase.
Public propertyMasterTimebaseSource
Specifies the terminal of the signal to use as the Master Timebase. On an E Series device, you can choose only between the onboard 20MHz Timebase or the RTSI7 terminal.
Public propertyOnDemandAOIsSimultaneous
Specifies whether to update all channels in the task simultaneously, rather than updating channels independently when you write a sample to that channel.
Public propertyReferenceClockRate
Specifies the frequency of the Reference Clock.
Public propertyReferenceClockSource
Specifies the terminal of the signal to use as the Reference Clock.
Public propertySampleClockActiveEdge
Specifies on which edge of a clock pulse sampling takes place. This property is useful primarily when the signal you use as the Sample Clock is not a periodic clock.
Public propertySampleClockDigitalFilterEnable
Specifies whether to apply the pulse width filter to the signal.
Public propertySampleClockDigitalFilterMinimumPulseWidth
Specifies in seconds the minimum pulse width the filter recognizes.
Public propertySampleClockDigitalFilterTimebaseRate
Specifies in hertz the rate of the pulse width filter timebase. NI-DAQmx uses this value to compute settings for the filter.
Public propertySampleClockDigitalFilterTimebaseSource
Specifies the input terminal of the signal to use as the timebase of the pulse width filter.
Public propertySampleClockDigitalSynchronizationEnable
Specifies whether to synchronize recognition of transitions in the signal to the internal timebase of the device.
Public propertySampleClockMaximumRate
Indicates the maximum Sample Clock rate supported by the task, based on other timing settings. For output tasks, the maximum Sample Clock rate is the maximum rate of the DAC. For input tasks, NI-DAQmx calculates the maximum sampling rate differently for multiplexed devices than simultaneous sampling devices.
Public propertySampleClockOverrunBehavior
Specifies the action to take if Sample Clock edges occur faster than the device can handle them.
Public propertySampleClockRate
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 propertySampleClockSource
Specifies the terminal of the signal to use as the Sample Clock.
Public propertySampleClockTerminal
Indicates the name of the internal Sample Clock terminal for the task. This property does not return the name of the Sample Clock source terminal specified with SampleClockSource.
Public propertySampleClockTimebaseActiveEdge
Specifies on which edge to recognize a Sample Clock Timebase pulse. This property is useful primarily when the signal you use as the Sample Clock Timebase is not a periodic clock.
Public propertySampleClockTimebaseDivisor
Specifies the number of Sample Clock Timebase pulses needed to produce a single Sample Clock pulse.
Public propertySampleClockTimebaseMasterTimebaseDivisor
Specifies the number of pulses of the Master Timebase needed to produce a single pulse of the Sample Clock Timebase.
Public propertySampleClockTimebaseRate
Specifies the rate of the Sample Clock Timebase. Some applications require that you specify a rate when you use any signal other than the onboard Sample Clock Timebase. NI-DAQmx requires this rate to calculate other timing parameters.
Public propertySampleClockTimebaseSource
Specifies the terminal of the signal to use as the Sample Clock Timebase.
Public propertySampleClockTimebaseTerminal
Indicates the name of the internal Sample Clock Timebase terminal for the task. This property does not return the name of the Sample Clock Timebase source terminal specified with SampleClockTimebaseSource.
Public propertySampleClockTimingResponseMode Obsolete.
Specifies how the device responds to the sample clock and to triggers. This property has been deprecated in favor of the ConfigurePipelinedSampleClock(String, Double, SampleClockActiveEdge, SampleQuantityMode, Int32) method.
Public propertySampleClockUnderflowBehavior
Specifies the action to take when the onboard memory of the device becomes empty. In either case, the sample clock does not stop.
Public propertySampleQuantityMode
Specifies if a task acquires or generates a finite number of samples or if it continuously acquires or generates samples.
Public propertySamplesPerChannel
Specifies the number of samples to acquire or generate for each channel if SampleQuantityMode is FiniteSamples. If SampleQuantityMode is ContinuousSamples, NI-DAQmx uses this value to determine the buffer size.
Public propertySampleTimingEngine
Specifies which timing engine to use for the task.
Public propertySampleTimingType
Specifies the type of sample timing to use for the task.
Public propertySinglePoint
Gets an instance of SinglePoint.
Public propertySynchronizationClockInterval
Specifies the interval, in Sample Clock periods, between each internal Synchronization Clock pulse. NI-DAQmx uses this pulse for synchronization of triggers between multiple devices at different rates. Refer to device documentation for information about how to calculate this value.
Public propertySynchronizationPulseMinimumDelayToStart
Specifies in seconds the amount of time that elapses after the master device issues the synchronization pulse before the task starts.
Public propertySynchronizationPulseResetDelay
Specifies in seconds the amount of time to wait after the Synchronization Pulse before resetting the ADCs or DACs on the device. When synchronizing devices, query SynchronizationPulseResetTime on all devices and note the largest reset time. Then, for each device, subtract the reset time from the largest reset time and set this property to the resulting value.
Public propertySynchronizationPulseResetTime
Indicates in seconds the amount of time required for the ADCs or DACs on the device to reset. When synchronizing devices, query this property on all devices and note the largest reset time. Then, for each device, subtract the value of this property from the largest reset time and set SynchronizationPulseResetDelay to the resulting value.
Public propertySynchronizationPulseSource
Specifies the terminal of the signal to use as the synchronization pulse. The synchronization pulse resets the clock dividers and the ADCs/DACs on the device.
Public propertySynchronizationPulseTerminal
Indicates the name of the internal Synchronization Pulse terminal for the task. This property does not return the name of the source terminal.
Public propertySynchronizationPulseTime
Indicates in seconds the delay required to reset the ADCs/DACs after the device receives the synchronization pulse.
Public propertySynchronizationPulseTimescale
Specifies the timescale to be used for timestamps for a sync pulse.
Public propertySynchronizationPulseTriggerTime
Gets or sets the start time of the synchronization pulse.
Public propertySynchronizationPulseType
Specifies the type of sync pulse used in the task.
Top

Methods

  NameDescription
Public methodConfigureChangeDetection(String, String, SampleQuantityMode)
Configures the task to acquire samples on the rising and/or falling edges of the specified lines or ports.
Public methodConfigureChangeDetection(String, String, SampleQuantityMode, Int32)
Configures the task to acquire samples on the rising and/or falling edges of the specified lines or ports and sets the number of samples to acquire.
Public methodConfigureHandshaking(SampleQuantityMode)
Determines the sample timing and duration of the task using standard 8255/82C55 digital handshaking between the device and a peripheral device.
Public methodConfigureHandshaking(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.
Public methodConfigureHandshakingBurstExportClock
Determines when the DAQ device transfers data to a peripheral device, using the onboard sample clock of the DAQ device to control burst handshake timing and exporting that clock for use by the peripheral device.
Public methodConfigureHandshakingBurstImportClock
Determines when the DAQ device transfers data to a peripheral device, using an imported sample clock to control burst handshake timing.
Public methodConfigureImplicit(SampleQuantityMode)
Sets only the duration of the task without specifying timing.
Public methodConfigureImplicit(SampleQuantityMode, Int32)
Sets only the duration of the task and the number of samples to acquire or generate without specifying timing.
Public methodConfigurePipelinedSampleClock
Sets the source of the sample clock, the rate of the sample clock, the number of samples to acquire or generate, and configures the sample clock for pipelining.
Public methodConfigureSampleClock(String, Double, SampleClockActiveEdge, SampleQuantityMode)
Sets the source of the sample clock and the rate of the sample clock.
Public methodConfigureSampleClock(String, Double, SampleClockActiveEdge, SampleQuantityMode, Int32)
Sets the source of the sample clock, the rate of the sample clock, and the number of samples to acquire or generate.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Protected methodDispose
Releases the managed and unmanaged resources used by Task or optionally releases only the unmanaged resources.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodToString
Returns a string representation of the object.
(Overrides ObjectToString.)
Top

Remarks

Tip Tip
Example applications are located in the Public Documents\National Instruments\NI-DAQ\Examples\DotNET4.x directory or in the Start menu at National InstrumentsNI-DAQmxNI-DAQmx Examples.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Was this information helpful?