Using NI-DAQmx Property Nodes for Analog Input Channels

Publish Date: Jan 09, 2019 | 7 Ratings | 2.86 out of 5 | Print | 2 Customer Reviews | Submit your review

Table of Contents

  1. Overview
  2. NI-DAQmx Channel Property Node
  3. NI-DAQmx Read Property Node
  4. Conclusion
  5. Additional Resources

The National Instruments Getting Started with NI-DAQmx Series is aimed at helping you learn NI-DAQmx programming fundamentals. Through video and text tutorials, this series will take you from verifying your device's operation in Measurement & Automation Explorer (MAX) to programming data acquisition applications using LabVIEW. It is intended for both the beginner who wants to learn how to use the DAQ Assistant, as well as the experienced user who wishes to take advantage of advanced NI-DAQmx functionality.

1. Overview

The NI-DAQmx driver exposes most of the advanced attributes or properties related to a data acquisition task via various property nodes. This document introduces few of these property nodes related to an analog input data acquisition task.   

Back to Top

2. NI-DAQmx Channel Property Node

You can use a NI-DAQmx channel property node to read or configure different properties associated with an analog input channel. This property node can be found in the DAQmx - Data Acquisition sub-palette under Measurement I/O palette. Figure 1 indicates the exact location of this property node.

Figure 1: NI-DAQmx Channel Property Node

Figure 1. NI-DAQmx Channel Property Node.

You can also find this property node under the DAQmx Constants & Property Nodes sub-palette located under the DAQmx Advanced sub-palette. Figure 2 illustrates this.

Figure 2: DAQmx Constants & Property Node Sub-palette

Figure 2. DAQmx Constants & Property Node Sub-palette.

Properties for An Analog Input Channel

The NI-DAQmx channel property node categorizes different properties into either general properties or channel specific properties. This is necessary because, for example, properties valid for an analog input voltage channel would not hold valid for an analog input current channel. Figure 3 shows the available properties (and categories of properties) for an analog input channel.

Figure 3: Analog Input Channel Properties

Figure 3. Analog Input Channel Properties.

Examples of Analog Input Channel Properties

Figure 4 illustrates two examples of AI channel properties. Figure 4(a) illustrates the situation in which the DAQmx channel property node is being used to define the channel terminal configuration. The different terminal configurations that are available are Referenced Single Ended (RSE), Non-Referenced Single Ended (NRSE), Differential and Pseudodifferential. Figure 4(b) shows the case where the property node is being used to define the type of the thermocouple connected analog input channel.

Figure 4: Examples of Analog Input Properties

Figure 4. Examples of Analog Input Channel Properties.

Back to Top

3. NI-DAQmx Read Property Node

Besides using the NI-DAQmx Channel Property Node, you can also use the NI-DAQmx Read Property Node to tweak your data acquisition tasks. You can use this property node to, for example, configure from what position in a buffer you want to start the read operation or perhaps query the current status of the read operation. This property node can be located on the DAQmx - Data Acquisition sub-palette. Figure 5 shows the location of this property node on this palette.

Figure 5: NI-DAQmx Read Property Node

Figure 5. NI-DAQmx Read Property Node.

Examples of Read Properties

Figure 6 shows three example of the read properties. In figure 6(a) the NI-DAQmx Read property node is being used to query the number of available samples to read per channel. Figure 6(b) shows the Total Samples Per Channel Acquired property. Figure 6(c) illustrates the OverWrite Mode property which is used to specify whether to overwrite samples in the buffer that you have not yet read or not.

Figure 6: Examples of NI-DAQmx Read Property Node

Figure 6. Examples of NI-DAQmx Read Property Node.

Back to Top

4. Conclusion

The DAQmx Channel and Read property nodes can be used to programmatically read or configure different attributes associated with an analog input task. For example programs refer to the shipping examples which could be accessed using the NI Example Finder.

Back to Top

5. Additional Resources

Back to Top

Customer Reviews
2 Reviews | Submit your review

Detailed Explanation of NI-DAQmx VIs  - Feb 18, 2008

In reference to Tim's comment, an excellent resource for programming with DAQmx can be found here: Getting Started with NI-DAQmx 34 As Tim mentions, the best resource for in depth information on each specific VI is the NI-DAQmx Help.

Poor  - Nov 12, 2007

No detail. Where in the world can I find a detailed explaination of the DAQmx VIs? The help can be used to find some detail on each VI but I would like to get an overview of the VIs.

Bookmark & Share


Rate this document

Answered Your Question?
Yes No