Hi Marc,
Many counter applications in DAQmx will automatically configure 2 counters if 2 counters are needed. For example, if you are configuring your counters for retriggerable pulse train generation, DAQmx will take care of configuring both counters. This is similar on the measurement side of things where taking a frequency measurement could use 2 counters.
Now if you want to configure 2 counters individually, you could just compile both examples I attached below. Basically, I am using one counter to generate a pulse train which is gated by another pulse train. My output will show up on counter 1 output and counter 0 is my retriggerable pulse that is gating counter 1. You are essentially configuring the pause trigger (Gate of counter) to
be the output of the other counter. Anyway, I hope that helps. Have a good day.
Ron