08-16-2005 05:54 PM
08-17-2005 03:48 PM
Hello,
Try using the following command:
GPCTR_Change_Parameter(iDevice, ulGpctrNum, ND_GATE, ND_OTHER_GPCTR_OUTPUT).
The "ND_OTHER_GPCTR_OUTPUT" parameter internally routes the counter 0 output to the gate of counter 1.
Try running the attached code which will generate a square wave on counter 1 that is gated by the output of counter 0. To see the gating, set up a slow (about 0.5 Hz) pulse wave generation on counter 0 in MAX.
I hope this helps. Please let me know if you have any further questions.
Regards,
Sean C.