Example Code

Programmatically Setting AC and DC Coupling for Individual Channels on one DAQmx Task

Code and Documents

Attachment

Introduction

Some DSA modules allows individual channels to be configured as either AC or DC coupled.  The DAQmx Channels Property Node can also set a combination of AC and DC Coupling must be set for different channels in that task.

Steps to Complete

Type in the channels to be AC coupled and DC coupled into their respective input controls under Coupling Parameters.  Use colons to enter multiple channels in a row (0:3 for channels 0 through 3) and commas to choose different channels (0,3 for channels 0 and 3).

AI_coupling.png

ai_coup_bd.png

Additional Notes

To choose one or the other, open the block diagram and delete the last two options for the DAQmx Channel property node.

Applications Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors