03-13-2018 11:19 AM
Hi all
I have installed PXIe-1085 chassis with 03 PXIe-6368 cards and am trying to synchronize them in C++ but not successful yet. On the NI Discussion forum, i have found one synchronization method "Reference Clock Synchronization" in a relevant article http://zone.ni.com/devzone/cda/tut/p/id/11369.
I need some help how to write C APIs equivalent to VI shown in figure-8 of above article please
Thanks
03-14-2018 03:23 PM
Hi Asim,
While we don't have examples for C++, we do have examples available for ANSI C that should be able to get you started as long as you have our DAQmx driver installed. Check the following link and go to the ANSI C section >> Synchronization >> DSA Shared Timebase and Triggered Analog Input and Analog Output. This example has code that sets up reference clock synchronization for PXI systems.
Text Based NI-DAQmx Data Acquisition Examples: http://www.ni.com/example/6999/en/#CSync
03-14-2018 08:44 PM - edited 03-14-2018 08:46 PM
Hi Jen P
Thanks for help. As one quick look at the example, it said that:
/* Note: If you are using PXI DSA devices, the master device must reside in PXI Slot 2. */
Is this same for X series devices also as i am using PXIe-6368 Cards in PXIe 1085 chassis?
Thanks
03-25-2018 01:01 AM
Hi Jen P.
In the example you mentioned, the following commands gives an error when i tried to synchronize two PXIe-6368 cards:
DAQmxErrChk (GetTerminalNameWithDevPrefix(gMasterAItaskHandle,"SyncPulse",syncPulseSrc));
DAQmxErrChk (DAQmxSetSyncPulseSrc(gSlaveAItaskHandle,syncPulseSrc));
Does these work for PXIe-6368 Cards also?
Note: I have also tried to use "PXIe_Sync100" in place of SyncPulse but did not work
Thanks