I'm attempting to enable the Transmit / DDS for Transmit (Tx) DMA output buffer transfers for Tx 1 on the PicoZed SDR through a script without the aid of the IIO Oscope application (and the associated IIO server daemon [iiod]).
From my understanding, in order to enable / activate the data for Tx1, I can use the following echo commands to set the following IIO parameters for the cf-ad94361-dds-core-lpc (iio:device2) device to a one (1):
echo 1 > /sys/bus/iio/devices/iio:device2/scan_elements/out_voltage0_en
echo 1 > /sys/bus/iio/devices/iio:device2/scan_elements/out_voltage1_en
echo 1 > /sys/bus/iio/devices/iio:device2/buffer/enable
However, after I a script that contains these commands, it appears that when I write data to the DMA Tx buffer the spectrum doesn't appear to change as if the data isn't being written.
Am I missing something in order to enable the DAC output buffers for Tx1?
Any feedback would be appreciated. I look forward to your response.
I would recommend avoiding direct usage of the file descriptors. This is what libiio was designed to make easier.
Here is an example which uses TX DMA buffers: libiio/ad9361-iiostream.c at master · analogdevicesinc/libiio · GitHub
Here is an example which uses TX DDSs: plutosdr_scripts/power.c at master · analogdevicesinc/plutosdr_scripts · GitHub