Apparently the cDAQ chasis concept is lost on me, because I cannot get any of the triggers/sample clocks or other fancy features on the cDAQ-9174 to work with my simple Digital Input Module NI9421. I have three digital sigals created by Hall sensors coming into the Front of the Module. I know they work, because the LEDs all toggle when I run my magnets over them.
However when I try to create a Digital In task, and then connect a start Trigger, or Reference Trigger , the only options available are other Ports on the Module.
cDAQMod2 is the Digital Module NI9421, PFI0-PFI7 are ???? I think the ports on the board.
Whether it is the Sample Trigger or the Reference Trigger, I get the same options for cDAQ2Mod2/PFI0-7 as triggers.
According to the cDAQ Manual, there a re multiple Triggers available on the Chassis, why can't I see or use them?
The manual also says I can route these to ANY PFI Terminal, which may be(or Not) the PFI0-7 entries I see in the dropdown lists on the Max application. Unfortunately, I cannot find information on how to route these to anything.
If I look at the Device Routes for the cDAQ-9174, it has lots of green entries, but all of them tie back to another port on teh cDAQ-9174, there are no entries for any of the modules .
If I look at the device table for the NI9421 DI Module, it shows no possible connections to anything, anywhere.
If I try to use the DI Sample Clock of the cDAQ to run the Digital Input Task
I get an error that tells me I have routed the cDAQ DI SampleClock, to the cDAQ DI Sample Clock
Which does not make sense, because the cDAQ DI Sample clock is supposed to be used by the NI 9421 Digital Input Module to read the Digital input at that rate. Eventually, I would like to use a single sample rate and trigger to synchronize reads of a Digital Input Module NI 9421 and an Analog Input Module NI9229.
From the looks of the MAX application, it will not be possible to make a single task that would do both of these, and I can only run one task at a time .
The Eureka moment will be to have a Labview application that can read all these signals, using the same sample clock and same sample trigger so the measurements are synchronized. That data would then be dumped into a single array to write out to a file.
The last attempt I made, the deviation in sampling between the Analog and digital signals was 20% ( with a signal frequency of 100 Hz and sampling frequency of 10KHz)
Is it possible to run two tasks in Max at once? Can I have a single task in Max that reads both on the same task?