08-25-2014 10:09 AM
I have an NI9401 plugged into a cDAQ-9172.
I have 8 digital inputs on the port.
I need to measure the high time of these input signals which are aperiodic.
What is the minimum pulse width I can measure? The NI9401 datasheet says 100nS?
How should I go about measuring high speed pulses on this port? Can I set the port to change detection then use either available counter in the cDAQ-9172 for pulse width detection?
I am looking to measure pulses in the sub 10 uS range.
Thanks in advance for any pointers in the right direction.
08-26-2014 12:29 PM
Go to the NI Example Finder (Tools >> Find examples ) open Hardware Input and Output >> DAQmx >> Counter Input >> Counter - Read Pulse Width and Frequency (On Demand).vi
This example should help you out with how to measure the pulse width. The following picture is what it will look like once you choose the correct state.
Your 9401 will have to be in slot 5 or 6 of the 9172 chassis to access the counters. I simulated your hardware and PFI1 was the input terminal on my computer. It is possible this will vary on yours.
To check your hardware you can create a task in NI Measurement & Automation Explorer (MAX). Create a new task for the 9401 in slot 5 or 6. then choose Aquire Signals >> Counter Input >> Pulse Width >> Next >> ctrl0 >> "Enter a name for the task" >> Finish. Underneath the starting edge pull down menu, you will see "Connect your Signal to (input Terminal)". Under that will be your input pin.
Regards