Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i generate a pulse with one counter and count event on the others 6 during this pulse(PXI 6602 +BNC2121)

Hello, I want to configure my board to count events during a specified time: so i configure one counter in pulse gen and the others in event count.
I have connected(hardware) the output of the first counter to the gate of the others on the BNC2121. but it doesn't work.should i use the select_signal function and how: i don't understand how it works.
thanks
floweez
0 Kudos
Message 1 of 5
(3,555 Views)
Hi Floweez,

To have the output from your counter show up on the signal connector, yes you will need to use select signal. Here is an example use of the function:
iStatus = Select_Signal(iDevice, ulGpctrOutput, ulGpctrOutput, ND_LOW_TO_HIGH);

If you installed support for your programming language when you installed NI-DAQ you should also have a group of shipping examples. Depending on your language:
VB or VC++: c:\program files\national instruments\NI-DAQ\Examples
LabWindows\CVI: c:\program files\national instruments\measurementstudio\samples

Anyway, hope that helps.

Ron
0 Kudos
Message 2 of 5
(3,555 Views)
Sorry, the select signal function should be:
iStatus = Select_Signal(iDevice, ND_GPCTR0_OUTPUT, ND_GPCTR0_OUTPUT, ND_LOW_TO_HIGH);

I had a variable defined for the constant.

Ron
0 Kudos
Message 3 of 5
(3,555 Views)
I have another question:how exactly do you make a gated counting: i can do it with the 6025E series board which as only 2 counters by using the ND_OTHER_CTR_OUTPUT constant, but with the PXI6602 i can't do that because i want that the counter 6's output, gate the other counters!
thanks in advance!
floweez
0 Kudos
Message 4 of 5
(3,555 Views)
Hi Floweez,

The way the ND_OTHER_CTR_OUTPUT constant works is that it deals with counter pairs. Here are the counter pairs for all devices:
Counter 0 & 1 (E Series, 660x etc.)
Counter 2 & 3 (6601, 6602)
Counter 4 & 5 (6602)
Counter 6 & 7 (6602)

Therefore, you will only be able to internally route counter 6's output to the gate of counter 7. If you need counter 6's output at the other counter's gates then you will have to output counter 6 to a pin and physically connect this output to all the other counter's gates (through the corresponding PFI lines).

Hope that helps.

Ron
0 Kudos
Message 5 of 5
(3,555 Views)