Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

6602: How to use 8 counters simultaneously in C++ using traditional Daq for frequency measurement

Hi Everybody;

 

I'm new to Ni-DAQ cards and working on NI PCI-6602 Card in Borland C++, I should use Traditional DAQ for my project. Now I want to use all the 8 counters simultaneously for frequency measurement.

 

1.Where should I connect my External signal, to source or gate, at present I have connected to source.

 

2. How to set parameters and start the counters simultaneously, what are the parameters to be set for frequency measurement.

 

3.How to start counting.(parameter settings)

 

4.Should I set any PFI Lines or by default are they set to counters.

 

 

status = GPCTR_Set_Application (1, gpctrNum, ND_SIMPLE_EVENT_CNT)

status = GPCTR_Change_Parameter (1, gpctrNum, paramID, paramValue)

iStatus = GPCTR_Watch(1, gpctrNum, ND_ARMED, entityValue);

status = GPCTR_Watch (deviceNumber, gpctrNum,ND_COUNT, entityValue)

 

 

what is the paramID in my case, Clear and appropriate answers would be very helpful and thanks in advance.

Message Edited by Pavan K on 07-11-2009 12:38 AM
0 Kudos
Message 1 of 3
(4,624 Views)

Can any old user of labview help him in the same .

Regards ,

Ramita

0 Kudos
Message 2 of 3
(4,584 Views)

  I have made a program with LabVIEW 5.1 based on NI 6602, in which four counters were used.

  Counter 3 is used to generate pulses, which are directed to the gates of counter 0, 1 and 2. 

  The source terminals of counter 0,1 and 2 receive pulses, individually, to count how many pulses appear during the time interval of each gate pulse.

  The results are stored in a data file.

  In order to test its performance, only one signal of ramdom pulses is sent to counter 0,1 and 2.

  But I find that at the beginning the counts for the three counters are the same, but the following counts are totally different!

  What's wrong? And how to solve such a problem? Does it have something related with synchronization?

  Thank you very much!

 

0 Kudos
Message 3 of 3
(4,115 Views)