03-12-2006 09:15 AM
03-13-2006
04:03 PM
- last edited on
04-16-2025
03:52 PM
by
Content Cleaner
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