How to specify Back EMF parameters in the Schematic Editor ?
The PMSM block has a "Back EMF profile" parameter, in the "Electrical" tab, which is a dropdown. When the "User defined" option is selected, you are allowed to specify a file which should contain the Back EMF values in the “Back EMF profile table" field.
This file has to be in a specific format which is described below.
What is the format of the Back EMF parameters file ?
The Back EMF parameters are described in a JSON format. The following parameters must appear in the file.
Paremeter (JSON key) | Value type | Unit | Description | Example |
---|---|---|---|---|
backEmfValues | double[1024] | N/A | One dimensional array of the back EMF waveform values. The range of values must be from -1 to 1! Needs to be 1024 values! | "backEmfValues": [ |
All the examples above concatenated would give in a valid JSON format: