Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

measure pulse width on all counter on PCI 6602

Hi all,
I m using pci 6602 for measuring time in second. I need to measure times on all counters simultaneously. Im able to do so on single counter only on each board and other counters give error. Kindly suggest me the best solution to acheive  correct result.
 
Also plz suggest the solution for following erro codes which i m receiving very frequently.
 
Error code: 200284
Error code: 200214
Error code: 200474
Error code: 200140
 
The VI is attached here for reference.
 
I m using DAQmx 7.5 and LabVIEW 7.
 
Warm Regards
 
GNS
0 Kudos
Message 1 of 2
(3,780 Views)

Hello GNS,

You are getting an error because you can only have one counter per counter input task.  To acquire from multiple counters, you will have to create multiple counter input tasks, which looks like you are doing in the VI you posted. 

The error codes you are referencing can be looked up in LabVIEW by going to Help >> Explain Error...  Enter in the error code and you will get an explanation of the error and then possible solutions for the error.  For some codes, you may have to add a negative sign in front of the error number.  For example, error -200474 means that you did not receive a pulse within the timeout that you have set for the DAQmx Read VI.  The default value in most examples is 10 seconds.  You will need to increase this value, or set it to -1 to wait indefinitely.  It is best to set the timeout to the maximum amount of seconds you expect to wait before receiving a pulse.  Error code -200284 is approximately the same. 

Error code -200140 means that two pulses occured within one tick of your counter timebase.  This could be due to a noisy signal causing extra counts.  The PCI-6602 has a hardware filter that can be enabled.  You can read about the filtering in the TIO Series manual(search for filter).  To enable this filter, use the DAQmx Channel property node set to the property Counter Input >> Pulse Width Digital Filter Enable.  To change the value of the filter, use the same property node set to the Counter Input >> Pulse Width Digital Filter Min Pulse Width.

I hope this helps,

Laura

0 Kudos
Message 2 of 2
(3,763 Views)