Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you set the gating mode on a 6025E

I am using traditional NI DAQ functions/Visual C++ and am trying to set the gating mode on counter 1.
When I try to set the gate mode it displays reports the following error;
 
-10403 The specified device does not support the requested action (the driver recognizes the device, but the
action is inappropriate for the device)
 
I have connfigured counter 0 to generate a pulse and have wired counter 0's output to counter 1 gate
input. While the gate is high on counter 1 I want to generate a pulse train
 
 
        _____________Counter 0 Out _____________
____|                                                                           |____
 
_______|_____|_____|_____|_____|_____|_____|_____
 
                                 
0 Kudos
Message 1 of 2
(2,790 Views)

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.

0 Kudos
Message 2 of 2
(2,780 Views)