# RFSoC 4x2 Bypassing mixer and saving sampled data to a file

**URL:** <https://discuss.pynq.io/t/rfsoc-4x2-bypassing-mixer-and-saving-sampled-data-to-a-file/7987>\
**Category:** Support\
**Created:** [January 29, 2025, 3:43pm UTC](https://discuss.pynq.io/t/rfsoc-4x2-bypassing-mixer-and-saving-sampled-data-to-a-file/7987 "2025-01-29T15:43:56Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![mtsanic](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mtsanic](https://discuss.pynq.io/u/mtsanic)\
**Post date:** [April 23, 2025, 5:28pm UTC](https://discuss.pynq.io/t/rfsoc-4x2-bypassing-mixer-and-saving-sampled-data-to-a-file/7987/8 "2025-04-23T17:28:44Z")

</div>

Hi @crypty_potato,

Unfortunately, I currently not allowed to share the files. Moreover, my design or notebook wouldn’t help your case, as I use custom designed IPs. In my design whole information is embedded on the FPGA, function only changes based on the information I want to send. I reread the whole thread again, I realized I made some mistakes. You need to change I/Q mode real-\>real mode. That might help, but that will change the clocks as well.

> [@crypty\_potato](#):
>
> I am currently using function generator to generate the signal and sampling it using the code.

Do you mean you are using the original code in the notebooks (like in the below)?

> def set\_transmitter\_channel(channel, enable, gain, frequency):  
> channel.control.enable = enable  
> channel.control.gain = gain  
> channel.dac\_block.MixerSettings[‘Freq’] = frequency  
> set\_transmitter\_channel(base.radio.transmitter.channel[0], True, 0.8, 900)  
> set\_transmitter\_channel(base.radio.transmitter.channel[1], True, 0.1, 1500)

If you want to change sampling, you will also need to change the clocks of LMK and LMX clocking components. Check out [RFDC Start Up Fail - ADC 0 timed out at state 7 in XRFdc\_WaitForRestartClr](https://discuss.pynq.io/t/rfdc-start-up-fail-adc-0-timed-out-at-state-7-in-xrfdc-waitforrestartclr/7042/4?) topic. You need to use TICSPRO to change your sampling and clocks.

Feel free to reach out if you have any other questions.

---

_[View the full topic](https://discuss.pynq.io/t/rfsoc-4x2-bypassing-mixer-and-saving-sampled-data-to-a-file/7987)._
