Greetings,
I have a fairly complex system that I need some help on. I am trying to do digital I/O, analog output, and analog input all with different sample rates but starting at the same time. For example, I want to use the following setup (All cards are connected through a RTSI bus):
-- NI 6071E -- dev1 -- Analog input -- I set this device up using its own sample clock (I left the source unwired). I want to use this device as the trigger for all the others to start.
-- Two NI 6713 AO cards -- dev 3 and dev4 - each with 8 output channels . I have set these up to use different a sample clock than the 6071, using the same rate for both, although I do not have them using the same source for the sample clocks (right now I have the "source" terminal unwired on the "Sample Clock" blocks). I think I should probably change this, yes? Also, I have set this up to trigger on dev1/ai/StartTrigger and I get no errors when running.
-- NI 6534 DIO - dev5 -- 8 channels output (port0), 2 channels input (port2), using the same sample clock. I followed one of the examples and used PFI2 as the source for the output task sample clock and PFI3 for the input task sample clock, routed together through RTSI0 using the block "DAQmx connect terminals." This part works correctly. However, when I try to set up the two tasks (input/output) to use a digital start trigger from source Dev1/ai/StartTrigger, I get Error -215006 -- undefined error. I have tried exporting Dev1/ai/StartTrigger to a channel on Dev1/RTSI (I've tried multiple) and setting up the trigger source to be the same, but then I get error 89137 -- resources currently in use by another route. The same thing happens if I try to export the signal to a channel on Dev5/RTSI.
My understanding was that I could set up the start trigger in the configuration, start all the tasks in order using error signal routing, keeping the Analog Input task last so the start trigger would trigger all the other events. My code is not easily posted for review because it's broken up into functions and spread across a few VIs.
I apologize if this is hard to understand. Please ask questions if clarification is needed. I appreciate any help!
Kevin