02-16-2006 12:57 AM
02-16-2006 03:42 AM
02-16-2006 08:46 PM
Thanks for your suggestion. I have connected the two boards together using the RTSI cable.
I have tried to set the source of the sampling clock to the first master device in DAQmxCfgSampClkTiming function call for the slave device. However the outputs of the boards are not synchronized. I'm not sure whether have I done it correctly. Can anyone please advise? Thank you.
02-16-2006 10:24 PM
Hi
Plz attach the code you have developed so that we can suggest better
02-17-2006 02:16 AM
02-17-2006 11:39 AM - edited 02-17-2006 11:39 AM
Message Edited by Michael P on 02-17-2006 11:53 AM
02-17-2006 01:27 PM
02-18-2006 02:40 AM
02-20-2006 12:06 AM
Hello,
Thanks a lot for your help. Managed to do the synchroniztion. I added the RTSI cable in MAX and added in the codes:
\\ Dev 1
DAQmxErrChk (DAQmxCreateTask("",&taskOut1));
DAQmxErrChk (DAQmxCreateAIVoltageChan(taskOut1,"Dev1\ai0" ,"",DAQmx_Val_Cfg_Default,minIn,maxIn,DAQmx_Val_Volts,NULL));
DAQmxErrChk (DAQmxCfgSampClkTiming(taskOut1,"",rateOut,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,bufferSize));
\\ Dev 2
DAQmxErrChk (DAQmxCreateTask("",&taskOut2));
DAQmxErrChk (DAQmxCreateAIVoltageChan(taskOut2,"Dev2\ai0","",DAQmx_Val_Cfg_Default,minIn,maxIn,DAQmx_Val_Volts,NULL));
\\ Change the source of the sample clock here
DAQmxErrChk (DAQmxCfgSampClkTiming(taskOut2,"\Dev1\ai\SampleClock",rateOut,DAQmx_Val_Rising,DAQmx_Val_FiniteSamps,bufferSize));
Thank you once again.