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.

LAUNCHXL-CC1310: Using SA1350 DLL from SA13x0 Spectrum Analyzer.

Part Number: LAUNCHXL-CC1310

I have LAUNCHXL-CC1310 working with SA13x0 Spectrum Analyzer, but I need my own spectrum application for testing purpose. So, I am trying to use sa1350.dll (included in SA13x0 Spectrum Analyzer) within my own code. I've done some reverse engineering and is able to successfully call few initialization functions from that dll, such as sa1350Init, sa1350Connect. Also I can call functions to setup frequency sweep parameters, these functions gave me no errors, but i cannot get any spectrum array, function sa1350GetFrame returns just zeros. There are source codes over there, but I cannot compile it, and I could not find any usable documentation for sa1350.dll API, so there is only solution for me is to do reverse engineering just by looking at code as plain text.

Are there any sa1350.dll documentation available?

Are there anybody who had success writing own application using sa1350.dll?

Are there any simple samples of code explaining proper order of functions call?

I am using labview but any other languages are also welcome as a samples.

  • Hi Serge,

    It sounds like you have already made some pretty significant progress regarding connecting and communicating with the device.

    The area I would recommend you focus on reviewing is within the drvSA1350.cpp file, drvSA1350::stateRun function as a high-level view of what needs to happen after connecting to the device in order to retrieve a spectrum reading.

    Specifically within stateRun, drvSA1350::cmdsetFrq makes a series of set frequency parameter calls which configure the current spectrum configuration, and I would encourage you to replicate both the order and the parameters set when making your own program. In particular, I would make sure CMD_SETSPANINDEX is your final set parameter call before calling cmdGetSpectrum.

    The System Overview pages of each program's (SA1350-GUI, SA1350-Firmware) document do contain high-level descriptions of the DLL commands and the Firmware's interaction which may be helpful to get started, but you seem to be getting into the nitty-gritty so nothing documents quite like the code itself!

    Best Regards,

    Mark-

  • Hello Mark,

    Thank you for your answer , I was looking at drvSA1350::cmdsetFrq(), I have copied all operations and their order to my code, seems like that part has no errors, such as all calls return no errors. And yes, CMD_SETSPANINDEX is my last one to setup parameters, also returns no errors. Seems like setup parameters part is ok, I will look deeply on drvSA1350::cmdGetSpectrum(), thank you.