MATLAB Answers

How to access the extern declared global variables in a imported C function?

30 views (last 30 days)
Jose Peral
Jose Peral on 11 Feb 2020 at 19:38
Edited: Jose Peral on 12 Feb 2020 at 9:33
Hi,
I imported C code into Embedded Coder using C caller block.
My C file has extern declarations for variables.
I do not know how I can access this extern variables to pass them values from Simulink application.
I am thinking to create an interface C function that receive lot of arguments and define and assign the values to the externs. But there is a lot of signals (global variables).
Is it any other simpler way of doing this without having to write explicitly new interface C functions?
Regards.

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.