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的DAT格式,有特殊的说明,第一行是头信息。如果想在Matlab中导入CCS的DAT文件,需要自己写一个Matlab的函数,跳过第一行,然后将每一行的16进制数读进来,注意前面的0x也是需要跳过的。
Code Composer Studio data file
A text file that contains one line of header information and stores the data as one sample per line. The data can be in any of the following formats:
· Hexadecimal
· Integer
· Long
· Float
The header information for data files uses the following syntax:
MagicNumber Format StartingAddress PageNum Length
MagicNumber: Fixed at 1651.
Format: A number from 1 to 4, indicating the format of the samples in the file. This number represents a data format: hexadecimal, integer, long, or float.
StartingAddress: The starting address of the block that was saved.
PageNum: The page number the block was taken from.
Length: The number of samples in the block.
All header values are assumed to be TI-style hexadecimal values.
您好,我想向您请教一下,如何在CCS里面调用MATLAB生成的mat文件。我看有些论坛上说要先把mat文件转化为dat文件,然后在CCS里调用。但在CCS里面如何调用dat文件呢?希望您能帮忙解答一下,谢谢