Getting Started with DAQmx: Basics of DAQmx Property Nodes

Publish Date: Nov 27, 2017 | 22 Ratings | 1.36 out of 5 | Print | 6 Customer Reviews | Submit your review

Table of Contents

  1. Overview
  2. NI-DAQmx System Property Node
  3. NI-DAQmx Device Property Node
  4. DAQmx Channel Property Node
  5. DAQmx Timing Property Node
  6. DAQmx Trigger Property Node
  7. DAQmx Read and Write Property Nodes

 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

In general, property nodes allow you to modify or query the property of a certain reference. The DAQmx Property Node gives you the ability to read or write properties of your data acquisition system. 

Back to Top

2. NI-DAQmx System Property Node

The DAQmx System Property Node can return the available devices, tasks, or channels on the current computer. The figure below shows the System Property Node returning the device names on the current system.

DAQmx System Property Node

C Function: DAQmxGetSysDevNames

Back to Top

3. NI-DAQmx Device Property Node

You can use a DAQmx Device Property Node to query general device settings such as the bus type (PCI, PXI) or the device serial number. You can also query more specific settings to find the maximum analog input sampling rate or even which pins are used to access the onboard counters. The figure below shows an example of using the Device Property Node.

DAQmx Device Property Node

C Function: DAQmxGetDevIsSimulated


There is also a property node that corresponds to each major DAQmx functionality-creating channels, timing, triggering, reading, and writing. These property nodes can be used to access advanced functionality.

Back to Top

4. DAQmx Channel Property Node

The DAQmx Channel Property Node can be used to configure or read the more advanced features of a DAQmx channel. This property node requires the task reference from the DAQmx Create Channel VI. This reference tells the driver that the property node is referring to the specified channel. The figure below shows how the Channel Property Node can be used to both read and write properties of a channel.

DAQmx Channel Property Node


Back to Top

5. DAQmx Timing Property Node

The DAQmx Timing Property Node gives the user access to dozens of attributes that are not available from the DAQmx Timing VI.

DAQmx Timing Property Node

C Function: DAQmx<Get/Set/Reset>SampClkActiveEdge

From this property node you can change the Active Edge of the clock, configure Change Detection on a digital line, or query the sample clock rate. In general, this property node provides you with dozens of more advanced timing properties.

Back to Top

6. DAQmx Trigger Property Node

The DAQmx Trigger VI also has a property node associated with it that provides access to advanced triggering functionality. However, you can also use the DAQmx Triggering Property Node without the Trigger VI to set up a triggering event. The figure below shows a snippet of code that sets up a pause trigger for a counter output task. All of the triggering is configured via the property node.

DAQmx Trigger Property Node

C Function: DAQmx<Get/Set/Reset>PauseTrigType


Back to Top

7. DAQmx Read and Write Property Nodes

There are propertys node for both the DAQmx Write and the DAQmx Read VIs. These property nodes are useful in querying the status of a write or read operation. They can also be used to programmatically change an ongoing write or read task.

Specifically, you could use the DAQmx Read Property Node to specify which samples you want to read off of the buffer. For example, you could choose to read only the most recent values by setting the RelativeTo property. The figure below shows how to configure the property node to read the most recent 100 samples on the buffer.

DAQmx Read Property Node

C Function: DAQmx<Get/Set/Reset>ReadRelativeTo

Similarly, you could write to these same properties with the DAQmx Write Property Node to define where to put new data on the output buffer. You can also use the Write Property Node to configure analog output regeneration or to query the buffer to see how much space is available. The figure below shows how this property node can be used to continually monitor the buffer status of a write operation.

DAQmx Write Property Node

C Function: DAQmxGetWriteCurrWritePos

Use the LabVIEW help documentation for detailed descriptions of all the different available DAQmx properties.

Back to Top

Customer Reviews
6 Reviews | Submit your review

Some links to illustrations remain broken. Could they please be updated. I attended the DAQ and Signal Process training course and the manual has referred me to this page  - Aug 3, 2017

Could you please re-upload the images so that they can appear on the page for I would like to ensure I'm following the instructions correctly

Broken image links  - Sep 16, 2016

Don't know why I am doing this, NI apparently doesn't read these comments (see previous three). I mean you've had enough time to address them...

Links to figures broken  - Nov 23, 2015

The figures aren't displayed. Could you update the links?

  - Feb 8, 2013

Links to most (but not all) of the Figures appear to be broken. Neither IE nor FireFox can display Figures 2, 3, 5, or 7. Would appreciate an e-mail when this is fixed so I can re-read it (with the figures).

Figures missing  - Jan 2, 2013

The figures cannot be displayed. Please corect it.

does offset mean number of samples?  - Oct 6, 2008

According to document, the offset -100 will set 100 samples to be read. Is it correct? Or does it mean something else?

View more reviews

Bookmark & Share


Rate this document

Answered Your Question?
Yes No