Hi community,
I am new to Julia and in particular MTK.
My goal is to simulate a battery cell and couple it with external C-code to run an extended Kalman filter for SOC estimation at a fixed sampling rate.
Somehow this kind of problem does not seem to be something many people deal with in Julia, at least documentation is very limited here. I guess FMU would be a possibility. However, the FMI.jl package hasn’t beed updated for a while and so far it does not support array inputs/outputs (which I ultimately need). Even then, how would the finite sampling time be realized, using events?
Is there another possibility to run external C-code functions using ccall and add the call at a certain rate to a symbolic system description? Ideally connecting it using inputs and outputs of the MTK system?
I would be grateful for general advice on best practices here.
Thanks in advance!
Edit: Just saw that FMI.jl has been updated 2 weeks ago.