Although the electrical circuit model and electric machine models cover the majority of simulation needs, most projects require some degree of customization. The Power Electronics Add-On for VeriStand was designed to enable users to extend its functionality to meet all requirements. Customization comes in two varieties depending on the simulation constraints:
- Adding a VeriStand compatible simulation model
- Integrating LabVIEW FPGA models into the Hardware Configuration.
Importing a VeriStand Compatible Simulation Model to the CPU
The easiest customization path is to import custom simulation models into the VeriStand System Definition. Typically, these models are created using The MathWorks Simulink®. Importing simulation models is a feature that is native to VeriStand, although the model inputs and outputs can be connected to the channels provided by the Power Electronics Add-On. For more information about this feature, please refer to the resources below:
Imported models are run on the real time CPU of the target (not the FPGA), and thus their timestep is limited by that of the Primary Control Loop (PCL)–typically between 1 ms and 0.1 ms. Due to this limitation, typical use cases for imported simulation models include custom mechanical loads attached to the electrical machine, or local converter controllers.
Custom FPGA models
Models that need to run at timesteps smaller than 0.1 ms must be executed on the FPGA, which cannot be achieved by standard VeriStand model importing. For this reason, the Power Electronics Add-On was designed to allow custom or third-party models to be executed in parallel to OPAL-RT models on the FPGA. The skillset to implement custom FPGA models includes but is not limited to:
- NI LabVIEW
- NI LabVIEW FPGA
- NI LabVIEW Realtime
- VeriStand Custom Device development
To understand how to integrate a custom FPGA model into the Power Electronics Add-On, please contact OPAL-RT Technical Support.