I use a m-File to write a function in the function-block in PLECS. The input variable of the function has to be a value that is recalculated in each simulation-step in PLECS. The problem is that I need to have this variable in the m-File.
How can I get a PLECS-Variable that changes in every simulation step to the Matlab workspace?
The "To File" Block is not suitable because it gives course of the variable back after the whole simulation but I need this variable after every time step to feed in the function.