Documentation Home Page Power Electronics Add-On for NI VeriStand Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

2.8 Configuring the Local Controller

Local Controller File Path: <Public Documents>\National Instruments\<NI VeriStand 20xx>\Examples\OPAL-RT\Power Electronics Add-On\PMSM Local Control\Local Controller

A simple open-loop SPWM frequency and modulation index controller model was developed for this example and compiled into a .so file for execution on Linux RT targets.  The controller model is configured to run on the Real Time CPU and will be executed by the VeriStand Engine.  Data is routed from the CPU simulation (local controller) to the FPGA simulation using the VeriStand System Configuration Mappings.

Configuring the Local Controller

  • In the Configuration Tree, expand Controller >> Simulation Models >> ModelsClick Volts Per Hertz Controller to view the model file information.

  • In the Configuration Tree, expand Volt Per Hertz Controller >> Inports and confirm that all inports have been configured as shown in the table below.

  • Click Save.

Inport

Default Value

Inport

Default Value

Dclink

0

DesiredSpeedRPM

0

ModIndexLookup

 

Poles

3

RampRate

10

 

 

Exploring the Mappings to and from the Local Controller

The VeriStand System Configuration Mappings are used to route signals between the local controller and the other model components simulated on the FPGA. 

  • Close the VeriStand System Explorer window, to return to the VeriStand Editor

  • Open the System Definition file (.nivssdf)

  • Confirm that the signals are mapped together as shown in the image below.

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