Azzera filtri
Azzera filtri

How to execute ECG signal notch filter c code converted from matlab coder in any C/C++ code compilers?

4 visualizzazioni (ultimi 30 giorni)
Hi respectful coders,
I had converter ECG notch filter code from matlab to C code using matlab coder (Matlab R2022b pre-release version). When I am trying to execute in VS code it shows the following error:
cannot open source file "tmwtypes.h" (dependency of "mynotch.h")
I was trying lot to solve this error but still I could n't resolve.
Please help me with it.
Thanks.

Risposte (1)

Yoga
Yoga il 10 Set 2023
I understand that you are facing the error 'cannot open source file' while converting code from MATLAB to C.
The "cannot open source file 'tmwtypes.h'" issue you're getting means that the C code produced by MATLAB Coder depends on a header file called "tmwtypes.h," which is unique to MATLAB and contains particular data type definitions. You must make sure that your C code can access and include this header file in order to fix this problem.
You can refer to one of the MATLAB answer posts which explains how to perform the same - https://www.mathworks.com/matlabcentral/answers/286826-matlab-coder-compiler-can-t-find-tmwtypes-h.
I hope this helps resolve your issue.

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by