I don't know how to set environment variable.my iar root is E:\Program Files (x86)\IAR Systems.According to Motor_Control_Toolbox_Installation_Quick_Start.pdf,I set the environment variable IAR_TOOL = E:\Program Files (x86)\IAR Systems.But the error produce in the simulink.My hardware is frdm-kv31f.
Hi Hongjin,
It seems that the MATLAB is not seeing the IAR_TOOL environment variable, you must restart the MATLAB after you set the variable and try again.
Regards,
Radu