Error -200147: Multiple Counters in Same Task

Updated May 26, 2023

Reported In

Hardware

  • NI-9361

Driver

  • NI-DAQmx

Issue Details

I am trying to use a DAQ assistant to measure frequency on two channels simultaneously. If I add multiple counters to the task, once I run it, this error will appear: 

Error -200147:
 
There cannot be multiple counters in the same task for input operations.
Use a separate task for each counter.


Error 200147.png

 

Solution

As the error indicates, you can't use more than one counter in the same task. If, for example, you want to measure the frequency from two channels, you will need to create separate tasks for each counter and use a synchronization method to run the acquisition simultaneously. 

The link attached in the Related Links section shows an example you can use to acquire from multiple counters simultaneously. 

Additional Information

Only the NI-9361 has the architecture to include more than one counter in the same task since this module can only run one task at a time.