Great!!! The example code worked as per my expectation. The automatic routing feature does the thing.
Earlier I was manually routing the SampleClockTimebase source through the star lines & that works normally if both the card's are PXI-4472 but the same thing does not work if a PXI-446x device is placed in slot 2 & 4472 acting as a slave.
Here is the Routing code(PXI1Slot2 is a 4462 card & PXI1Slot5 is a 4472 card) :
DAQmxConnectTerms("/PXI1Slot2/SampleClockTimebase","/PXI1Slot2/PXI_Star2",DAQmx_Val_DoNotInvertPolarity);
DAQmxConnectTerms("/PXI1Slot5/PXI_Star","/PXI1Slot5/SampleClockTimebase",DAQmx_Val_DoNotInvertPolarity);
DAQmxSetSampClkTimebaseSrc(*slaveTaskHandle,"/PXI1Slot5/PXI_Star");
Jack, Is there a way to use the manual routing feature(any additions to the above code piece) to get the same result as that of automatic routing since my requirement was to create all the hardware routes in the initialization of my program where I don't have any ready-made tasks & automatic routing feature can only be applied to a task.
Thanks for all the help.
Satish.