Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

two counters using 6602 synchronously

sonyProj,

 

I think I have found your problem!

 

In this KnowledgeBase article on the error you are recieving case 3 talks about 2 counters with finite generation.  Basically in order to do finite pulse train generation 2 counters are needed and thus 1 is "occupied" when you try to access it.  If you change your pulse train generation to continuous the problem should clear up.

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 11 of 12
(927 Views)

Hello Jason,

 

Thank you for this document. I read the case 3 which says " When performing a finite pulse train generation, one counter generates the pulse train, and the other counter generates a pulse that acts as a gate for the first counter. If you change the pulse train to generate continuously or only generate one pulse, you can run two counter tasks at the same time without error." 

In my code, there is no connection between two counters and also I am not interested in generating pulse train that will act as a gate to first counter.

 

As this document suggested I tried the two options of continious pulses and finite pulses with just single pulse, it doesnt work for me.

 

I was wondering if pair of counters does matter in this case. I tried to work with ctr0 and ctr7, also ctr1 and ctr5 and so on. It doesnt work.   

0 Kudos
Message 12 of 12
(924 Views)