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.