Pour la documentation en FRANÇAIS, utilisez l’outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

In this tutorial, we will configure and deploy the Dual PMSM VDQ Local Control example onto a Real Time PXI system with a PXIe-7868R FPGA card (required).  For an in-depth overview of this and other examples, please refer to the Examples Section of the documentation.

The Dual PMSM VDQ Local Control example uses the eHS Solver to simulate a two-level inverter circuit that will drive a PMSM machine model on the FPGA.  An open loop controller model executes on the Real Time CPU of the system to provide gating signals to the inverter through the FPGA-based SPWM signal generators.


Step 1: Confirm Target Configuration

  1. Open the NI Measurement and Automation Explorer (NI MAX).
  2. In the configuration tree, expand Remote Systems and locate your Real Time PXI target to confirm that it is properly connected.
  3. Click the target and make note of its IP Address and Operating System.
  4. Expand the Software section under the target and confirm that the NI VeriStand Engine is installed.  The version of VeriStand installed on the target must match the version installed on the development machine.
    • For more information about connecting and installing software to a target, refer to the NI documentation for Linux systems or PharLap systems.
  5. Expand Devices and Interfaces and locate the NI PXIe-7868R card under the PXIe chassis.  Confirm that the card is named FPGA0.

Step 2: Open the Example

  1. The example is installed in <Public Documents>\National Instruments\<NI VeriStand 20xx>\Examples\OPAL-RT\Power Electronics Add-On\Dual PMSM VDQ Local Control\Project\Dual PMSM VDQ Local Control.nivsproj.
  2. Before making changes to the original example, consider creating a second copy of the project by copying and pasting the Dual PMSM VDQ Local Control folder and its contents to another directory (such as the Desktop).
  3. Open NI VeriStand.
  4. Click Open Legacy Project.
  5. Navigate to Dual PMSM VDQ Local Control.nivsproj and select it.


If using Veristand 2018, it is not necessary to use the Open Legacy Project feature.  Simply navigate to the NI VeriStand Project (.nivsproj) file in Windows Explorer and double-click it to open the project in VeriStand.

Step 3: Configure the Example

  1. In the tab for the Dual PMSM VDQ Local Control.nivssdf System Definition file, click Configure... to launch the System Explorer
  2. Navigate to the Controller section.
  3. Configure the Operating System and IP Address fields with the information obtained in Step 1.3.
  4. If your real time target is running the Phar Lap operating system, replace the control model file with its equivalent DLL version:
    1. Navigate to Controller >> Simulation Models >> Models and click the VoltPerHertzController item.
    2. Click Browse Simulation Model in the menu bar and select VoltPerHertzController.dll from the path below.

      C:\Users\Public\Documents\National Instruments\<NI VeriStand 20xx>\Examples\OPAL-RT\Power Electronics Add-On\Dual PMSM VDQ Local Control\Local Controller
  5. Click Save and close the System Explorer.



Step 4: Deploy the System Definition

  1. In the main VeriStand window, select Operate >> Deploy.
  2. Double click the Dual PMSM VDQ Local Control.nivsscreen file to open the Workspace.
  3. Experiment with the Workspace controls to monitor the simulation results.
  4. In the main VeriStand window, select Operate >> Undeploy to stop the simulation.


  • No labels