I'm using two distinct assertions in my simulation with dedicated callback functions. The first assertion callback asks for an xls input file which has the simulation data with respect to time. I need to read the current simulation time at that moment in the m-file which is used to calculate the condition for the second assertion. Basically what I want to achieve is a time trigger for the second assertion which is dependent to the current simulation time and the execution time of the xls file. (t_trigger = tout + txls)
The problem is tout is not available in the workspace until the simulation is ended and trying to export the simulation time with a "to workspace" block does not work either. Is there any other methods to obtain the simulation time during a callback execution or do I have to think of another way around?
Thanks a lot in advance!