# DC offset removal

**URL:** <https://www.ruby-forum.com/t/dc-offset-removal/214152>\
**Category:** GNU Radio\
**Created:** [November 23, 2011, 12:01pm UTC](https://www.ruby-forum.com/t/dc-offset-removal/214152 "2011-11-23T12:01:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [November 23, 2011, 12:01pm UTC](https://www.ruby-forum.com/t/dc-offset-removal/214152/1 "2011-11-23T12:01:18Z")

</div>

Hi all

Is it possible to disable the automatic DC offset removal control loop  
in  
the FPGA to measure DC? In old posts I found the function  
“set\_dc\_offset\_cl\_enable”. But if I try that, this function can not be  
found.

I use a USRP N210 with a LFRX board.

my code:  
…  
self.uhd\_usrp\_source\_0 = uhd.usrp\_source(  
device\_addr="",  
stream\_args=uhd.stream\_args(  
cpu\_format=“fc32”,  
channels=range(1),  
),  
)  
…  
self.uhd\_usrp\_source\_0.set\_dc\_offset\_cl\_enable(0x0,0xF)  
…

Any help will be appreciated.

Thanks  
Michael

---

<div class="post-metadata">

**Author:** ![SSMichael\_HSSinSS\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7feea3/32.png) [@SSMichael\_HSSinSS\_S](https://www.ruby-forum.com/u/SSMichael_HSSinSS_S)\
**Post date:** [November 23, 2011, 4:48pm UTC](https://www.ruby-forum.com/t/dc-offset-removal/214152/2 "2011-11-23T16:48:17Z")

</div>

On 11/23/2011 03:00 AM, Michael H. wrote:

> …

Can you give this a try?  
[http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/include/gr\_uhd\_usrp\_source.h#n254](http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/include/gr_uhd_usrp_source.h#n254)

Let me know if it works for you.

-josh
