Example Program Drafts

Showing results for 
Search instead for 
Did you mean: 

Update Pulse Train on the Fly - Multiple Channels

by Member Chris-NI ‎11-13-2012 06:58 PM - edited ‎01-30-2017 10:27 AM

This example is an augmentation of an existing piece of code posted in a Developer Zone tutorial that outputs on a single channel.  This example demonstrates how to change the frequency and duty cycle of multiple pulse trains on multiple physical channels in DAQmx while a task is running.  In this new revision, property nodes are used to set the physical output channel of each counter, in addition to checking each counter for a TRUE value on RdyForNewVal using the ActiveChans property node before updating duty cycle and frequency information.

Please note: On certain hardware, different counter resources must be selected for each channel.