Hi, Abdelmouneim,
Regarding your question, as you know that FOC uses SVPWM to generate 3 phase voltage, the SVPWM can guarantee the magnetic flux is sinusoidal instead of voltage. Different zero vector inserting generates different voltage waveform, the zero vector can ne 000, 111, or half 000 and half 111.
if you want to get 3 phase sine waveform voltage, you can call MCLIB_PwmIct().
I attach the 56800Ex_MCLIB.pdf, pls refer to section 3.6.10.
Hope it can help you
BR
XiangJun Rong