In this tutorial, we will configure and deploy the PMSM Local Control example onto a Real Time PXI system with either a PXIe-7868R or PXIe-7891 FPGA card. For an in-depth overview of this and other examples, please refer to the Examples Section of the documentation. The steps described below can be performed on any of the shipping examples to quickly configure and run them.
The PMSM 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
Open the NI Measurement and Automation Explorer (NI MAX).
In the configuration tree, expand Remote Systems and locate your Real Time PXI target to confirm that it is properly connected.
Click the target and make note of its IP Address. Confirm that the Operating System is NI Linux Real-Time.
Expand the Software section under the target and confirm that the NI VeriStand Engine and FlexRIO 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.
Expand Devices and Interfaces and locate the NI PXIe-7868R or the NI PXIe-7891 card under the PXIe chassis. Confirm that the card to be used is named FPGA0.
Step 2: Open the Example
It is not recommended to modify the examples directly from the default example installation directory. Before making changes to the original example, consider creating a second copy of the project by copying and pasting the PMSM Local Control folder and its contents to another directory, such as the Desktop.
Navigate to <Public Documents>\National Instruments\<NI VeriStand 20xx>\Examples\OPAL-RT\Power Electronics Add-On\PMSM Local Control\Project\<PXIe-XXXX>
Click PMSM Local Control.nivsprj to open the VeriStand project.
Step 3: Configure the Example
In the tab for the PMSM Local Control.nivssdf System Definition file, click Configure... to launch the System Explorer.
Navigate to the Controller section of the tree.
Configure the IP Address field with the information obtained in Step 1.3.
If permissions are configured on your Real Time target, enter the credentials in the Username and Password fields. National Instruments targets are programmed with the following credentials by default:
Username: admin Password: <blank>Click Save and close the System Explorer.
Step 4: Deploy the System Definition
In the VeriStand Editor, select Idle >> Deploy.
Navigate to Main.nivsscr file to view the main user interface.
Experiment with the UI controls to monitor the simulation results.
In the VeriStand Editor, select Connected >> Undeploy to stop the simulation.