PSIM supports TI InstaSPIN code generation and simulation.
Using Texas Instrument’s InstaSPIN-FAST algorithm for your motor control applications is now easier than ever with PSIM. You can use InstaSPIN in both a PIL (Processor-In-the-Loop) simulation or with code generation using SimCoder.
This video covers the use of PSIM & InstaSPIN to determine the motor parameters of a PMSM motor. The technique is applicable for any three phase motor. PSIM generates the ‘*.h’ files the InstaSPIN uses. InstaSPIN is an observer algorithm from Texas Instruments