03-27-2020 02:23 PM
My concern is 9171 says it only supports 4 counters but 9361 has 8 counters.
https://www.ni.com/en-us/shop/details/product-item.783407-01.html
https://www.ni.com/pdf/manuals/374037b.pdf
What am I missing?
Thanks.
03-27-2020 03:23 PM
The 9171 has 4 counters in its hardware. The 9361 module has 8 counters in its hardware.
If you use a 9361, you would use the counters that the module has, not those in the chassis. Ensure you are familiar with the single task limitation of the module, stated in the notes in the following document: Number of Concurrent Tasks on a CompactDAQ Chassis Gen II
If you wish to use the chassis counters, please see: cDAQ Module Support for Accessing On-board Counters
All the best,
03-27-2020 05:20 PM
Thanks for sharing the information. I thought chassis is just an enclosure without any "smarts".
Just to confirm, I plan to read all 8 counters of 9361 at once using 9171 chassis.
DAQmxCreateCICountEdgesChan(counterTask, "cDAQ1Mod1/ctr0:7", "", DAQmx_Val_Rising, 0, DAQmx_Val_CountUp);
DAQmxReadCounterU32Ex (counterTask, DAQmx_Val_Auto, 10.0, DAQmx_Val_GroupByChannel, counter_values_array, 10, &samples, 0); //Read all 8 counters and store values in array
Above works with cDAQ chassis with 8 slots.
Please confirm.
Thanks in advance!