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.
Hi,
I am using F28027 Piccollo Launchpad for a motor application. I now wish to observe the data I stored in data log by plotting in the CCS graph tool. However, from the watch window, it says *(DLOG_4CH_buff1) cannot load from non-primitive location. What does this mean? How can I solve this?
Thank you.
Jingzhe
Hi,
This message means, that you are trying to display a non primitive variable. What data type did you attach to the DLOG module? is it a struct maybe?
BR Andreas
Hi Andeas,
I indeed try to output a structure member to data log. The data type of the structure member is _iq. Before entering data log, it is converted to suit data log data type by (unit16)_IQtoIQ15. I think it is proper data log type. Can't see why it is not a primitive data type.
Thanks.
Jingzhe
How did you assign the data to the log module? did you just cast the struct member? I would recommend to cast the data into a suitable variable first and then attach this variable to the log module.
Andreas
Hi Andreas,
You are right. I just cast the structure member to data log. Probably I should cast the value to a variable and then data log it.
My solution is to create a buffer array myself and store relevant values into array during every interrupt, and it works fine.
Thank you.
Jingzhe