Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

generate 2 delayed triggers

i' am working with a pxi6602 board on CVI6.0.

i want to generate a delayed pulse (counter1) triggered on another one (counter0) user as a general trigger for my experiment.

on previous devices, i used to wire the output of counter0 to the gate of counter1. but i want now to do that by software.

i tried the CVI functions as:

GPCTR_Set_Application (NI6602, ND_COUNTER_1, ND_SINGLE_TRIG_PULSE_GNR);
GPCTR_Change_Parameter (NI6602, ND_COUNTER_1, ND_GATE, ND_COUNTER_0);

but this doesn't work

does anybody has an idea?
0 Kudos
Message 1 of 2
(3,047 Views)
You should be using:

GPCTR_Change_Parameter(, ND_COUNTER_1, ND_GATE, ND_OTHER_GPCTR_OUTPUT);

The possible inputs for the GPCTR_Change_Parameter method can be found in the Traditional NI-DAQ Function Reference help, which is installed with NI-DAQ.

I hope this helps.
0 Kudos
Message 2 of 2
(3,047 Views)