06-18-2008 10:54 PM - edited 06-18-2008 10:55 PM
06-20-2008 04:06 PM
Hi David,
In order to synchornize the M-series Acquisition and the Counter Input tasks you will have to share a sample clock between the tasks and ensure that the Counter task is started first. This can be seen in the VI I am attaching below. The Counter Task's Sample Clock is pointed at the AI Sample Clock, and through routing the error cluster, I have enforced order of execution. The reason the Counter task has to start first is because it needs to be ready to begin when the AI task starts generating the sample clock. While you can use one analog input task for multiple channels by having PXI2Slot2/ai0:3, you will need to add a new Counter Input task for each counter you use. I hope this explanation helps.
Regards, Mallori M.