08-05-2008 07:37 AM
DAQmxConnectTerms("/Dev1/20MHzTimebase","/Dev1/RTSI7",DAQmx_Val_DoNotInvertPolarity);I then added the following commands, pertaining to the task associated with Dev3:
DAQmxConnectTerms("/Dev3/RTSI7,"/Dev3/MasterTimebase",DAQmx_Val_DoNotInvertPolarity);
DAQmxSetTimingAttribute(gTaskHandle2, DAQmx_SampClk_Timebase_Src, "RTSI7");This doesn't solve the problem. I am able to see that the 20MHz clock is correctly being exported on RTSI7 from Dev1, immediately after the first DAQmxConnectTerms command is executed. So, the exporting is fine. I just haven't figured out what the necessary/sufficient commands are to import a timebase on RTSI7 such that the board's internal clocks use it, rather than their own 20MHz oscillator.
DAQmxSetTimingAttribute(gTaskHandle2, DAQmx_SampClk_Timebase_Rate, 20e6);
08-06-2008 04:00 PM