NI-DAQmx .NET Framework 4.0 API Reference

Content Type
Programming Language
Current manual
Table of Contents

DIChannel Class

DIChannel Class

DIChannel Class

Encapsulates one or more digital input channels and the properties for a digital input channel.

Inheritance Hierarchy

SystemObject
  SystemMarshalByRefObject
    NationalInstruments.DAQmxChannel
      NationalInstruments.DAQmxDIChannel

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

Syntax

public class DIChannel : Channel, IFilteredTypeDescriptor
Public Class DIChannel
	Inherits Channel
	Implements IFilteredTypeDescriptor

The DIChannel type exposes the following members.

Properties

  NameDescription
Public propertyAcquireOn
Specifies on which edge of the sample clock to acquire samples.
Public propertyDataTransferMechanism
Specifies the data transfer mode for the device.
Public propertyDataTransferRequestCondition
Specifies under what condition to transfer data from the onboard memory of the device to the buffer.
Public propertyDescription
Specifies a user-defined description for the channel.
(Inherited from Channel.)
Public propertyDigitalFilterEnable
Specifies whether to enable the digital filter for the line(s) or port(s). You can enable the filter on a line-by-line basis. You do not have to enable the filter for all lines in a channel.
Public propertyDigitalFilterEnableBusMode
Specifies whether to enable bus mode for digital filtering. If you set this property to , NI-DAQmx treats all lines that use common filtering settings as a bus. If any line in the bus has jitter, all lines in the bus hold state until the entire bus stabilizes, or until 2 times the minimum pulse width elapses. If you set this property to , NI-DAQmx filters all lines individually. Jitter in one line does not affect other lines.
Public propertyDigitalFilterMinimumPulseWidth
Specifies in seconds the minimum pulse width the filter recognizes as a valid high or low state transition.
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 propertyInvertLines
Specifies whether to invert the lines in the channel. If you set this property to , the lines are at high logic when off and at low logic when on.
Public propertyIsGlobal
Indicates whether the channel is a global channel.
(Inherited from Channel.)
Public propertyLogicFamily
Specifies the logic family to use for acquisition. A logic family corresponds to voltage thresholds that are compatible with a group of voltage standards. Refer to the device documentation for information on the logic high and logic low voltages for these logic families.
Public propertyMemoryMappingEnable
Specifies for NI-DAQmx to map hardware registers to the memory space of the application, if possible. Normally, NI-DAQmx maps hardware registers to memory accessible only to the kernel. Mapping the registers to the memory space of the application increases performance. However, if the application accesses the memory space mapped to the registers, it can adversely affect the operation of the device and possibly result in a system crash.
Public propertyNumberOfLines
Indicates the number of digital lines in the channel.
Public propertyPhysicalName
Specifies the name of the physical channel upon which this virtual channel is based.
(Inherited from Channel.)
Public propertySynchronizationUnlockBehavior
Specifies the action to take if the target loses its synchronization to the grand master.
(Inherited from Channel.)
Public propertyTristate
Specifies whether to tristate the lines in the channel. If you set this property to , NI-DAQmx tristates the lines in the channel. If you set this property to , NI-DAQmx does not modify the configuration of the lines even if the lines were previously tristated. Set this property to to read lines in other tasks or to read output-only lines.
Public propertyType
Indicates the type of the virtual channel.
(Inherited from Channel.)
Public propertyUsbTransferRequestCount
Specifies the maximum number of simultaneous USB transfers used to stream data. Modify this value to affect performance under different combinations of operating system and device.
Public propertyUsbTransferRequestSize
Specifies the maximum size of a USB transfer request in bytes. Modify this value to affect performance under different combinations of operating system and device.
Public propertyVirtualName
Gets the name of the virtual channel.
(Inherited from Channel.)
Top

Methods

  NameDescription
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.)
Public methodDispose
Releases all resources used by Channel.
(Inherited from Channel.)
Protected methodDispose(Boolean)
Releases the managed and unmanaged resources used by Channel or optionally releases only the unmanaged resources.
(Inherited from Channel.)
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.
(Inherited from Channel.)
Top

Remarks

Use the DIChannels property to create or access a digital input channel. A DIChannel might contain more than one virtual channel because the DIChannel is defined by providing a valid NI-DAQmx channel string to the DIChannels indexer or to a DIChannelCollection create channel method. If you set a property on a DIChannel object that represents multiple channels, that property is set for all of the channels that the object represents.
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?