Info

この質問は閉じられています。 編集または回答するには再度開いてください。

2 level matlab s-function

7 ビュー (過去 30 日間)
Ivan Maslennikov
Ivan Maslennikov 2019 年 5 月 26 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello! The issue i faced is what type of s-function i need to use, if i want to create drivers for hardware board. I have all necessary code for hardware board and i've already used legacy code tool before, but now i want to understand handwritten s-function. Here i found guide about s-functions, and i'm interested in first type (matlab .m s functions), because they do not need to use C code. I've created configuration block for board peripherals with input parameters and create TLC for code generation, but now i want to create functions like digital read/write, and i cannot understand, could i use that type of s function to create it? I look at generated by legacy code tool s functions and see hardware specific function prototypes of my c code in mdlstart and mdloutputs methods, and i can't understand how to implement it in .m 2 level s-function in outputs and start methods. Could i leave that methods empty and write hardware specific code only in TLC file?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by