Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

A complex retriggerable AIAO task

I am trying to program retriggerable AIAO (like the simple examples) EXCEPT, the triggers are not regularly periodic.  With the help of NI engineers I have figured out how to use channel 0 on my M6281 card to generate such a train of triggers.  This works.  I am now trying to combine this with the retriggerable AIAO part.  I started with the simple example "Multi-function-ctr Retrigg Pulse Train Generate for AI Sample Clock".  But when I put the two together, it
generates an error that a resource needed is reserved. 

I attach the VI.  I am using a PXI-1031 system.  I also have a 6602 (timer/counter) card available if I need it.  But I can't put the digital task on the 6602 because it does not support buffered digital output (only channel 0 on the 6281 does that).

Pretty arcane task I know, but oh so useful if I can get it to work. 


0 Kudos
Message 1 of 3
(3,184 Views)

If you start from the "Multi-function-ctr Retrigg Pulse Train Generate for AI Sample Clock" (which is the best place to start) you should just have to add the code from the "Cont Gen Voltage Wfm-Ext Clk.vi" and specfiy the same clock source as the AI task (the counter output). You should not need the 6602. If you want us to take a look, please attach your code, or detail what settings you are using.

Cheers,

Andrew S

0 Kudos
Message 2 of 3
(3,170 Views)
Got it figured out.  B ecause both the digital pulse and AI task are retriggerable, each needs 2 clocks.  I was having trouble using the 6602 clocks for the AI task because I didn't have the PXI chassis declared correctly. 

Thank you for your suggestion though.

0 Kudos
Message 3 of 3
(3,155 Views)