Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

I want to generate a C function with arguments in and a return value back.

1 Ansicht (letzte 30 Tage)
Mark
Mark am 2 Okt. 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I can generate code but it is not in the format of a function. I have simulink model that works and embedded coder builds the code, but it is not in the C function format that could be easily added to my code set.
  3 Kommentare
Bruno Pop-Stefanov
Bruno Pop-Stefanov am 7 Okt. 2014
Can you elaborate on the API that you are expecting and the declaration of the function that gets generated?
Mark
Mark am 20 Okt. 2014
I have broken my model up into functions (reference models) that connect together to build the system. I then want to build a C function from each of these individual reference models. We would then pass these functions to the software team to test in the production code.
I would like to pass in an array of data (43 X 16 bit unsigned integers) and have a 16 bit unsigned integer returned

Antworten (1)

Mark
Mark am 20 Okt. 2014
I have broken my model up into functions (reference models) that connect together to build the system. I then want to build a C function from each of these individual reference models. We would then pass these functions to the software team to test in the production code.
I would like to pass in an array of data (43 X 16 bit unsigned integers) and have a 16 bit unsigned integer returned.

Diese Frage ist geschlossen.

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by