I have thought to set Metadata to store the Input Atgument, but I can't get modelname in the Callback function. Here is the link. https://de.mathworks.com/help/simulink/slref/simulink.mdlinfo.getmetadata.html
Here is a relativ question i found in Mathworks, maybe can inspire you to find some way to help me. https://de.mathworks.com/matlabcentral/answers/87676-return-value-from-timer-callback-function https://de.mathworks.com/matlabcentral/answers/19135-set_param-and-callback-argument