S-Function MAX6675 for Arduino MEGA2560
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (3)
Nick Sarnie
am 5 Jan. 2018
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.
Tobias Wzl
am 19 Jan. 2018
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 Kommentare
Khan Md Shafi Ahad Siddique
am 23 Apr. 2018
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..!!
wael ahmed
am 29 Sep. 2018
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 Kommentar
Luca Walther
am 10 Mai 2020
Bearbeitet: Luca Walther
am 10 Mai 2020
Hi Wael,
I tryed to use your Simulink block with my Arduino UNO. Did you solve the problem yet? Thanks vor sharing.
Siehe auch
Kategorien
Mehr zu Device Driver Blocks finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!