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.

TSW1400EVM: Examples Matlab code for Read/Write_Registers

Part Number: TSW1400EVM

Hi,

I'm using a TSW1400EVM to capture data from an AFE5818EVM. I found HSDCPro_Matlab_Example and able to run "HSDCPro_Automation_DLL_ADC_Example_64bit" without error. However the ADC result is not correct.

I assumed that it is because there is no initialization to the AFE-registers done in this example, and I have to set the values for AFE-registers myself using "Read_Registers" and "Write_Registers" DLL functions. Unfortuantely I couldn't get them to work and also I didn't find any example for these "Read/Write_Registers" DLL function.

Is my assumption correct? and is there any Matlab example shows how to use DLL "Read/Write_Registers" (I found the HSDCPro DLL Automation documentation, but still can't run them properly) ?

Thanks,

Bien

  • Bien,

    The automation for HSDC Pro is only used for controlling HSDC Pro.  The programming of the AFE still needs to be handled by the AFE GUI. 

    The Read/Write DLL functions you are referring to are only used to communicate to the connected EVM, in this case the TSW1400EVM.

    Ken

  • Hi Ken,

    Ok, I get it now. So the initialization of AFE module can only be done via either AFE-GUI or SPI right ?
    Is there DLL functions or Matlab-Script for controlling the AFE GUI ?

    Thanks,
    Bien
  • Bien,

    There does exist a way to use matlab to connect to the USB chipset and perform a write and read to the SPI bus. However I will defer to this device apps team to support that function. I will make them aware of your need and let them respond.

    Ken.
  • Hi Bien,

    We currently only support using the HMC-DAQ GUI to perform reads/writes to the device via SPI. Some of our customers do use external microcontrollers or FPGAs to communicate with the device on our EVM via SPI.

    Sincerely,
    Olu
  • Hi Ken, Olu
    Thanks for the information. Then we'll try to access the AFE registers via an external microtroller.

    Best regards,
    Bien