You can change the output terminal on M Series devices using the following function:
int32 __CFUNC DAQmxSetCOPulseTerm(TaskHandle taskHandle, const char channel[], const char *data);
On M Series devices you can route the output of a counter to any PFI line.
I hope this helps!
gus....