Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple device synchronization Fgen

Hello people,

 

I'm already busy a while, trying to synchronize a NI PXI5402 and a PXI5412 function/arb generator. I need two signals of 134.2 KHz to be in phase, but can't reach this yet at the moment.

I tried using the NationalInstruments.ModularInstruments.SystemServices.TimingServices.TClock for Tclock synchronization.

The first thing I tried was:

-Initialize both devices to generate a sinus of 134.2 KHz

-Configure the PXI5402 to receive a digital rising edge trigger on RTSI0

-Configure the PXI5412 to receive a digital rising edge trigger on RTSI0

-Configure the PXI5412 to ConfigureSoftwareEdgeStartTrigger

-Configure the PXI5412 to export the StartTrigger signal to RTSI0

-Send a software trigger to the PXI5412

 

The second thing I tried to synchronize with the help of the TClock in the following way:

-Initialize both devices to generate a sinus of 134.2 KHz

-Add both devices to the TClockSynchronizableDevicesCollection DevicesToSynchronize

-Configure the PXI5412 for homogeneous triggers.

-Synchronize with the TClock library

-Initiate the generation

 

I see both devices generate the requested sinus wave, but the phase has a difference of about 16 degrees. The phase difference is about the same in both ways I tried. Where comes this delay from and how to improve this delay?

 

Thanks in advance,

Best regards,

Floris

0 Kudos
Message 1 of 1
(2,519 Views)