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.

SCIM Local Control Example Configuration

Expand each of the sections below to explore the parameters configured in the SCIM Local Control example. The information on this page can also be used to validate project settings or to re-create the example in a new VeriStand project.

Example Directory

<Public Documents>\National Instruments\<NI VeriStand 20xx>\Examples\OPAL-RT\Power Electronics Add-On\SCIM Local Control

Project Path

<SCIM Local Control>\Project\<NI PXIe-XXXX>\SCIM Local Control.nivsprj

Opening the Example

  1. To avoid modifying the original example, make a local copy of the Example Directory shown above.

  2. Open VeriStand and Browse to the copied directory, then continue browsing to the Project Path and select the VeriStand Project (.nivsprj) file.

  3. Click Configure... to open the System Definition file.

  4. See the following sections on this page to explore the parameters configured in the Configuration Tree of the System Definition file.

Hardware Configuration

  1. In the Configuration Tree, expand Controller >> Custom Devices and click the Power Electronics Add-On custom device to open its configuration page.

  2. The Hardware Configuration selected in the Configuration dropdown depends on the FPGA card targeted by the project.

NI FPGA Card

Hardware Configuration

NI FPGA Card

Hardware Configuration

NI PXIe-7868R

eHSx64_Quad_IM_SM_IO_7868R

NI PXIe-7891

eHSx64_Dual_PMSM_VDQ_Quad_IM_SIM_IO_7891

 

SCIM Config.PNG

 

Circuit Model

The Circuit Model in this example consists of a three-phase, two-level inverter, complete with the necessary components and snubbers for coupling to a machine model. The inverter is powered by a DC voltage source.

  1. In the Configuration Tree, expand Power Electronics Add-On and click Circuit Model.

  2. The Circuit Model File Path points to the currently loaded Circuit Model. Open the file in Simulink to observe the circuit.

  3. (optional) Click Reload to trigger a model update in the System Definition.

  4. (optional) Click the Refresh button to see additional model information.

Circuit Model File Path: <SCIM Local Control>\Circuit Model\Inverter_SCIM.slx

Sources

The Sources page maps signals to each source of the circuit model. In this example, the machine phase currents are fed back to the inverter. The two halves of the DC voltage source are controlled using VeriStand channels.

  1. In the Configuration Tree, expand Circuit Model and click Sources. This page is populated with a list of sources from the circuit model.

  2. The mappings are configured as shown below.

 

 

Switches

The Switches page maps signals to each switch of the circuit model. In this example, the six inverter switches are controlled using the FPGA-based PWM Generators.

  1. In the Configuration Tree, expand Circuit Model and click Switches. This page is populated with a list of switches from the circuit model.

  2. The mappings are configured as shown below.

 

 

Electric Model

In this example, the IM SM model simulates a 220-Horsepower, 550-Volt squirrel cage induction machine. The model receives three phase voltages from the two-level inverter Circuit Model also simulated on the FPGA.

  1. In the configuration tree, expand Circuit Model and click IM SM 1 to open the configuration page for the machine.

  2. The Machine Configuration and Input Mapping Configuration parameters are configured as summarized below.

  3. The unused models, IM SM 2, IM SM 3, and IM SM 4, are disabled to allow IM SM 1 to achieve a Minimum Solver Timestep of 1.2E-7s.

Machine Configuration

Machine Configuration

Machine Type

Squirrel-Cage Induction Machine

Stator Resistance (Ohm)

0.0256

Stator Leakage Inductance (H)

0.00032879

Rotor Resistance (Ohm)

0.0207

Rotor Leakage Inductance (H)

0.00032879

Pole Pairs

2

Mutual Inductance (H)

0.0133

Zero-Sequence

Don't Include

Solver Timestep (s)

1.2E-7

Input Mapping Configuration

Voltage Phase A

Circuit Model 1.Va_inv

Voltage Phase B

Circuit Model 1.Vb_inv

Voltage Phase C

Circuit Model 1.Vc_inv

 

Mechanical Model

  1. In the configuration tree, expand IM SM 1 and click Mechanical Model to view the mechanical model parameters.

  2. The Initial Values and Configuration parameters are configured as summarized below.

  3. In the configuration tree, expand Mechanical Model and click the Mechanical Model Mode channel.

  4. The Default Value of the Mechanical Model Mode channel is set to 1 (Torque Controlled).

Initial Values

Initial Values

Initial Rotor Angle (Deg)

0

Configuration

Viscous Damping

0.0489

Static Friction

0

Inertia

2.5239

Mechanical Model Mode (VeriStand Channel)

1

PWM Generators

In this example, the FPGA-based PWM Generators control the six IGBTs of the simulated inverter at a switching frequency of 2000Hz. The duty cycle of each PWM is commanded by the simulated controller.

  1. In the configuration tree, expand Circuit Model and click PWM Generators.

  2. The PWM Generators parameters for PWM 0, PWM 1, and PWM 2 are configured as summarized below.

PWM Generators

PWM Generators

Freq (Hz)

2000

Duty Cycle

0%

Dead Time (s)

1E-7

Phase Shift

0

Polarity

High

Wave Mode

Asymmetric

Update Moment

Both

 

 

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter