FemLab has standard facilities to export models to SimuLink. Normally, the standard export works well if the solvers, available in SimuLink, can handle the problem. However, if a model in FemLab needs special solvers, for example airflow or other non-linear problems, the standard export to SimuLink is often not suitable, because the standard solvers of SimuLink cannot handle such a problem efficiently. This can cause long simulation duration times and even leads to no solution at all. The paper presents a possible solution to this problem by implementing FemLab code in the discrete section of a SimuLink S-Function. The S-Function solves each time step the non-linear problem using the FemLab solver. After each time step the solution is expor...