I have a NI 9401 in a cRIO 9045.
I want to know if I can use two of the inputs to read a PWM (2 CTR inputs) and use two of the inputs to read a simple digital input (normally DIO) on the same 9401?
I know I can configure the 9401 to read one or the other, but have not been able to figure out how to do both.
Can a CTR input be used to read a simple digital input? How?
using the FPGA of your cRIO you can implement any kind of functionality for your quite fast DIO module.
The cRIO9045 also supports DAQmx in the RT target: have you tried to setup your DAQmx tasks as needed?
I guess I should have added, I am not using FPGA and I am using real time I/O scan. I have other modules connected to the cRIO that are setup for that.
I guess I should have added, I am not using FPGA
(IMHO you should use the FPGA, most often you can get the most of your DAQ modules this way.)
I am using real time I/O scan. I have other modules connected to the cRIO that are setup for that.
The ScanEngine does not allow to mix different options within one module. Atleast this was the reason I switched to FPGA several years ago.
AFAIK you can mix DAQmx with ScanEngine (and FPGA) easily: you should manage the NI9401 with DAQmx and use the ScanEngine for your other modules. (Haven't played with any of those newer cRIO targets so far, only heard the announcements from NI and watched some webinars about "DAQmx on RT".)
Unfortunately, FPGA is not an option at this time. I need the 9401 to read the PWM signal, which it can and I have it programmed to do so in real time I/O scan mode. But, when in the Counter mode, can any of the other inputs be used just to detect a high or low signal. I know the Counter mode has several options, I just don't really understand how those other selections work.