Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Synchronization routines for PXIe-6368 Cards

Highlighted

Synchronization routines for PXIe-6368 Cards

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

0 Kudos
Message 1 of 4
(475 Views)

Re: Synchronization routines for PXIe-6368 Cards

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

Jen P.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(443 Views)

Re: Synchronization routines for PXIe-6368 Cards

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

0 Kudos
Message 3 of 4
(437 Views)

Re: Synchronization routines for PXIe-6368 Cards

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

0 Kudos
Message 4 of 4
(382 Views)