Documentation Home Page OPAL-RT Schematic Editor Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

BLDC Back EMF parameters file

How to specify Back EMF parameters in the Schematic Editor ?

The BLDC 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

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": [
    -0.0,
    -0.005,
    -0.01,
[…]
0.01,
0.005
],

All the examples above concatenated would give in a valid JSON format:

 

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323