This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sample Matlab Code for TSW3100 & DAC3283EVM

Other Parts Discussed in Thread: DAC3283EVM, DAC3283

Hi,

I was wondering if anyone had some sample Matlab code for generating the vectors that go into the TSW3100 which will be used to generate RF using the DAC3283EVM.  Long term, I am planning on trying to generate a BPSK signal, but for now, I just want a snippet of code which will generate a simple CW tone and save the vectors out to a file of the correct format to import into the TSW3100.  I guess the output from the simple snippet would be a set of I and Q data which is in quadrature.

If someone also has sample code that generates BPSK test data, that would be great too.

Thanks in advance !!

Jim

  • Jim

    Attached is a loader program for TSW3100, which if provided with a .mat file that contains I/Q data, would load it into the TSW3100. The data should be 16-bit, 2 complement format i.e. [-32768,32767]. Choose "BwDDR" option for DAC3283.

    example MATLAB code is


    t = (0:9999)*1/500e6; data = round((sin(2*pi*50e6*t) + sqrt(-1)*cos(2*pi*50e6*t))*32767);

    save('data','data')

    load data.mat in the loader

    Regards,

     

     

    TSW3100_Loader_v2p7.zip