CIR using MATLAB simulink

Is is possible to extract CIR directly in MATLAB simulink in real time?
if possible how one can do this?
I am new in this embedded field, if any other programming knowledge needed then it would be very appreciated if i get proper guide how to extract it from dw1000 register 0x25
thanks in advance

regards,
Tapan Patel

Hi Tapan,

what you can do is to read the data from the CIR register and send them to the Simulink model.

If your UWB device has Ethernet, you can collect the data from the CIR register and send them via UDP to the Simulink. In Simulink you will need to create an UDP receiver similar to this one:


There are plenty of examples on internet. Just look for something like “simulink udp c code example”.

You can do similarly for other interfaces like serial UART etc.

There have been plenty of posts related to the CIR reading on this forum so look there for more information.

Cheers,
TDK

1 Like

Hello TDK,

Now I have CIR log file. Can you please tell me how can I plot this data into MATLAB in realtime?

Thanks in advance

Regards,
Tapan Patel

Hi Tapan,

I no longer have Matlab so I cannot really help you. In the past I have done that with the instructions I have sent before. It will require some study around it but it was not really difficult.

Cheers,
TDK