I have to integrate python with external so library. Unfortunately, the C code uses a global variable SimpleTest_Y (structure) and I need to access it in order to modify the value(s).
Here the C code
SimpleTest.c file
#include "SimpleTest.h"
/* External inputs (root inport signals with auto storage) */
ExtU_SimpleTest_T SimpleTest_U;
/* External outputs (root outports fed by signals with auto storage) */
ExtY_SimpleTest_T SimpleTest_Y;
/* Model initialize function */
void SimpleTest_initialize(void)
{
/* external outputs */
SimpleTest_Y.Out1 = 3.0;
}
SimpleTest.h file
#ifndef SimpleTest_COMMON_INCLUDES_
# define SimpleTest_COMMON_INCLUDES_
#include
#include
#endif
/* External inputs (root inport signals with