Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

C caller function block does not work right with unsigned integer variables

조회 수: 5 (최근 30일)
BK
BK 2019년 4월 2일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
I've been trying to implement a simple C-code into simulink, which bitshfits 2 integers and then puts them into a variable.
The code worked fine with on my visual studio compiler but here on simulink it always outputs a 0 no matter how I change the input. My first guess is that Simulink might not like the data types I'm using in my C model
The model, aswell as the C-code and the header file are in the same directory, ofcourse.
Here I created the same function but with malab code. It worked pretty well but I would have liked to know how I should go on about making the C code work.
Are there any alternatives to fix my problem?
matlab serializing.png
I appreciate every hint.

답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by