Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Using multiple NI9403 for Hardware Timed Input and Output Applications on a cDAQ

Solved!
Go to solution

Hello everybody,

I am developing a control application using a cDAQ-9189 chassis and Python (nidaqmx). My goal is to run simultaneous, hardware-timed Digital Input (DI) and Digital Output (DO) tasks (e.g., generating output patterns while sampling incoming digital edges, both at <10 kHz).

I am currently using an NI 9403 module, which has led to some confusion regarding its hardware timing capabilities in a cDAQ environment.

Documentation Discrepancy: The official NI 9403 specifications state: "In a CompactDAQ chassis, you can use the NI-9403 only as a static (software-timed) digital I/O module. You cannot use these modules to route timing or triggering signals."

However, in my testing, I found that I can actually run a hardware-timed continuous task (using AcquisitionType.CONTINUOUS). The limitation is that I can only run one direction at a time.

My Proposed Solution: To bypass this single direction bottleneck, I am considering installing two separate NI 9403 modules in the same cDAQ-9189 chassis:

  • Module 1: Configured entirely for hardware-timed Digital Input

  • Module 2: Configured entirely for hardware-timed Digital Output

My Questions for the Community:

  1. Is using two NI 9403 modules in this manner a valid and recommended workaround for achieving concurrent hardware-timed DI and DO in a cDAQ chassis?

  2. Are there any hidden limits with the cDAQ-9189's Correlated DIO engines that would prevent these two modules from streaming simultaneously at my target rates?

  3. From a system design perspective, would it be vastly superior to simply replace the 9403 with a parallel digital module like the NI 9401 to natively support concurrent multi-engine tasks, or is the dual-9403 approach perfectly stable?

Any insights into the best practices for this architecture would be greatly appreciated!

Best Regards,

CB

0 Kudos
Message 1 of 2
(509 Views)
Solution
Accepted by carmenberry

What you are seeing is all documented in Digital I/O Considerations for C Series and TestScale Devices

To answer your question:

1. Using two NI-9403 for separate directions is a supported configuration.

2. cDAQ has dedicated digital task for input and output, as shown in Timing Considerations for C Series Devices

Only one hardware-timed digital input task and one hardware-timed digital output task per CompactDAQ chassis at a given time is supported,

3. The main difference is the update rate. NI-9403 only supports up to 7us (about 143kHz) whereas NI-9401 supports MHz level. It shouldn't matter much for your use case of 10kHz.

https://github.com/ZhiYang-Ong
Message 2 of 2
(446 Views)