Multi-Counters Using NI-9361

Updated Apr 18, 2024

Reported In

Hardware

  • NI-9361

Software

  • LabVIEW

Issue Details

When I measure the counter input signal from two channels, Error -50103 Occurs randomly and only one of the two channels works. How can I use two counters with NI 9361? I am using cDAQ-9137 and NI-9361. I need to measure a period and a pulse width of the signal.
 

Solution

Since NI-9361 only supports a single task, you need to add all the counters to the same task. 

You can create DAQmx Task with two channels as shown below. 
Create New NI-DAQmx TAsk...>> Acquire Signals>>Counter Input >>Period(The Measurement Type)>>cDAQ1Mod1(The Module Number) >>ctr0 (The Counter Number)
You can add new channel to the same task for the pulse width


Now you can use this single task to access both channels in LabVIEW as shown below. 

Additional Information

There are several reasons to face Error -50103. Please refer Related Links below.