Hi Mr Jingles,
I could solve the synchronization by using the TClk Synchronization method.
But my problems are far from solved.
I would like to generate a sinus with specified DC component and initial phase=0. This has to be done for various frequencies.
Example: 1V DC + 0,1V Sinus signal @ 10kHz<freq<10MHz
The 5421 has a limitation: when I set a sinus (Standard waveform or User Defined) the DC component can be at maximum 25% of the Sinus Amplitude.
So I define an Arbitrary Waveform. It is a bit a mess to correctly generate and synchronously read in periodic waves for a bunch of different frequencies, because you have to take care that the sampling and signal frequencies are in a correct ratio. What that means is that after some vi-math you are anyhow limited to generating only certain frequencies.
Anyhow I can live with that. Now I have my 0,1V sinus with 1V amplitude.
But the initial phase is not zero! Why??
-The initial phase does not depend on the length of the arbitrary wave (number of samples). If I double the samples by taking 2 periods, or take 10 of them, or what else, I still have the same initial dephasing.
- The initial phase depends on signal frequency and sampling frequency, but from what I see it is not a "time", like an initial delay due to programming the module memory.
Any idea? I hope somebody can give a hint.
Ciao, Leodp