Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1579

Python • Re: Interfacing with CN0554 using PyADI-IIO

$
0
0
To set DAC output on the CN0554 using PyADI-IIO, use the .raw attribute of the DAC channel:

Code:

import adicn = adi.cn0554(uri="local")cn.dac.voltage0.raw = 32768  # Sets mid-scale output (~2.5V)
There’s no .write() method—use .raw to set 16-bit values (0–65535). Let me know if you need help converting voltage to raw values.

Statistics: Posted by vatredam — Thu Sep 04, 2025 8:20 am



Viewing all articles
Browse latest Browse all 1579

Trending Articles