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.

CCS/TMS320F28335: List of possible mathematical operations in worspace

Part Number: TMS320F28335


Tool/software: Code Composer Studio

Hi,

I would like to know a list of possible math operations in the workspace. (For example: sqrt())

Specifically, I need to link two Uint16 and read a Float

Thanks in advance, Jorge.

  • Look at the math.h header.

  • Thanks

    Sorry, I mean the math operations of global variables within Watch Windows.

    Regards, Jorge.

  • Jorge,

    I'm still not exactly sure what you are looking to do. Are you trying to do a specific mathematical operation in the Expressions view? Can you provide more details?

    Thanks

    ki

  • Hello Ki,

    I am working with Code Composer Studio 3.3 which requires an old project.

    I add image for better understanding.

    in the figure above:

    View -> Watch Window

    An example of a sum is shown in the image:
    SUM_Ia_Ib: meas_grid.Ia + meas_grid.Ib

    The sum works well.
    But if I try sqrt(mas_grid.Ia) it doesn't work.

    1)
    I would like to know what are the possible functions that can be used within Watch Window.


    2)
    I need to read a float, which is composed of the union of two Uint16 (LOW and HIGH). Is it possible to perform this operation in the Watch Window? Could you help me?
    
    
    Thank you very much in advance.
    Best Regards, Jorge






  • Hello Jorge,

    basic arithmetic operations and (i believe) bitwise operations are supported by the debugger expressions evaluator. Calling functions into the C math library like sqrt, pow, exp, etc.. is not.

    Thanks

    ki