S-Function MAX6675 for Arduino MEGA2560

조회 수: 12 (최근 30일)
Tobias Winzel
Tobias Winzel 2018년 1월 3일
편집: Luca Walther 2020년 5월 10일
Hello everyone,
since Christmas I'm desperately trying to create my own s-function block for a MAX6675 (I want to mease some temperatures). I have seen several Videos how to do it, the s-Function itself is successfully created but if I want to start my Model on my Arduino I'm always getting the same Error and I can't figure out why -.-
That's why I'm desperately looking for some help...
Thank you for your help :)
with best regards
Tobi

답변 (3개)

Nick Sarnie
Nick Sarnie 2018년 1월 5일
Hi Tobi,
Based on the compiler errors and looking at the model, it looks like the custom code included in S-Function Builder is C++. S-Function Builder only supports the C language. I recommend modifying the custom code to work in C.
  댓글 수: 1
Tobias Winzel
Tobias Winzel 2018년 1월 8일
Hey Nick,
thank you for your answer, I solved this Issue, but the next thing which appears that Simulink can't handle is the following line from my attached file:
"unrecognized mmcu atmega2560".... I I don't know what this means or how I can solve this new issue I'm having right now...
I've also attached my new SimulinkModel which belongs to the Error-file.
Do you or somebody else have some solution for me?
thank you for your help!!!!
Tobi

댓글을 달려면 로그인하십시오.


Tobias Wzl
Tobias Wzl 2018년 1월 19일
I solved the whole problem!!! The pins from the IDE-Code have to be declared as parameters in the s-function block
the loop function has to be put in the OUTPUT-Writer and thats it
  댓글 수: 2
Khan Md Shafi Ahad Siddique
Khan Md Shafi Ahad Siddique 2018년 4월 23일
Hi Tobias,
I'm new in arduino and in need of reading some temperature data from MAX6675 from matlab. Can you please share with me how you created the matlab function. thanks in advance..!!
Sofia Ricalde Sanchez
Sofia Ricalde Sanchez 2019년 4월 16일
Lograste hacerlo??

댓글을 달려면 로그인하십시오.


wael ahmed
wael ahmed 2018년 9월 29일
Hi Tobias,
I have built the MAX6675 sFunction and it has no errors, I am working on getting data on external mode but it gives only a constant value on the scope despite the sensor being heated. Any idea what could be the problem?
  댓글 수: 1
Luca Walther
Luca Walther 2020년 5월 10일
편집: Luca Walther 2020년 5월 10일
Hi Wael,
I tryed to use your Simulink block with my Arduino UNO. Did you solve the problem yet? Thanks vor sharing.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by