Hi,
I am trying to generate a differential sine wave with the two DAC channels. I modified the generate.c file to fill both g_awg_cha_mem[] and g_awg_cha_mem[] with the corresponding data. Is there an easy way to synchronize the output of both channels?
Has anyone tried something similar?
I'd appreciate any help.
Thanks,
Martin
DAC Channel synchronisation
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: DAC Channel synchronisation
The two DAC channels run from the same clock, and can be started simultaneously, since the software triggers for both are located in one register.
So if you reset the ASG, set both channels up with sample data, frequency, amplitude and offset and then write 0x00110011 to the configuration register, both channels start generating output synchronously.
So if you reset the ASG, set both channels up with sample data, frequency, amplitude and offset and then write 0x00110011 to the configuration register, both channels start generating output synchronously.
-
- Posts: 4
- Joined: Thu Feb 12, 2015 1:14 pm
Re: DAC Channel synchronisation
Thanks, this helped me a lot.
But I had to reset the state machines as well, therefore the configuration register needs to be 0x00510051.
But I had to reset the state machines as well, therefore the configuration register needs to be 0x00510051.
-
- Posts: 2
- Joined: Thu Apr 02, 2015 9:21 pm
Re: DAC Channel synchronisation
Hi, I have the same question about channel synchronisation. Could you please tell me how to do it? Thank you in advance.
-
- Posts: 1441
- Joined: Sat Jun 07, 2014 12:49 pm
- Location: Königswinter
Re: DAC Channel synchronisation
You cannot do it from the web-apps.
After loading the waveforms into the bufffers, you need to open a console and use the monitor utility, or you write a program that does it.
Either way, after setting up your parameters, write 0x00400040 to the DAC configuration register (0x40200000) to reset the ASG, followed by 0x00110011 to the same address to simultaneously start both channels.
After loading the waveforms into the bufffers, you need to open a console and use the monitor utility, or you write a program that does it.
Either way, after setting up your parameters, write 0x00400040 to the DAC configuration register (0x40200000) to reset the ASG, followed by 0x00110011 to the same address to simultaneously start both channels.
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie
Who is online
Users browsing this forum: No registered users and 91 guests