AnsweredAssumed Answered

How to create and interpret hex data in dac_buffer.c

Question asked by cswanson on Jan 8, 2018
Latest reply on Jan 10, 2018 by larsc

Support,

I am examining the hex data in sine_lut[1024] of no-OS/common_drivers/dac_buffer/dac_buffer.c.  I want to view this in Matlab or Python and then possibly create my own custom waveform.  This data is used by no-OS/fmcdaq2/fmcdaq2.c when the DMA_BUFFER is defined as 1 and then chosen by

 

#if DMA_BUFFER
ad9144_channels[0].sel = DAC_SRC_DMA;
ad9144_channels[1].sel = DAC_SRC_DMA;
dac_data_setup(&ad9144_core);

if(!dmac_start_transaction(ad9144_dma)){
printf("daq2: transmit data from memory\n");
};
#else
ad9144_channels[0].sel = DAC_SRC_DDS;
ad9144_channels[1].sel = DAC_SRC_DDS;
dac_data_setup(&ad9144_core);

 

It has been pretty painful to take the Sine Look Up Table hex data and manipulate it in Notepad++ to plot it in Matlab.

1) How did you create the sine wave?  What tool did you use?  Can you share the code on how it was created?

2)  How would you suggest I proceed to interpret the data that I see in Matlab?

Regards,

Craig

Outcomes