Collect and Process Motor Data
Collect this nonlinear motor data from dynamometer testing or finite element analysis (FEA):
d- and q-axis current
d- and q-axis flux linkage
Electromagnetic motor torque
For a script that preprocesses raw motor data and calculates voltages from flux, current, and speed, see Preprocess Permanent Magnet Synchronous Motor (PMSM) Data and Autogenerate Current Controller Calibration Tables. The script outputs a data set to use in the Model-Based Calibration Toolbox™ (MBC) app to generate calibrations.
Use the data preprocessing script to calculate these variables:
Current magnitude, Is, in A
Voltage magnitude, Vs, in V
Total flux, Ψtotal, in Wb
Allowed flux, Ψmax, in Wb
Run the script using different DC voltages to generate data files for calibrating controller tables at each DC voltage level.
For each DC voltage level, create a preprocessed data file containing these data:
Total flux, Ψtotal, in Wb
Allowed flux, Ψmax, in Wb
d-axis current, Id, in A
q-axis current, Iq, in A
Current magnitude, Is, in A
Voltage magnitude, Vs, in V
Motor torque, Te, in N·m
Motor speed, n, in rpm
For this example:
Pole pairs, P, is 4.
Inverter bus voltage, Vdc, is 350.
The data file
matlab\toolbox\mbc\mbctraining\PMSM_MBCData.xlsx contains the motor
data.