I am writing a C MEX S-Function to perform some calculations on various datastores. Therefore, I would like to access the datastore values directly from within the S-function without explicitly specifying them as input ports.
I tried the function mexGetVariablePtr
, but could not find a way to get the value of a datastore during simulation.