VeriStand Electric Motor Simulation Toolkit API Reference

SRM Linear Model Custom Device

  • Updated2023-02-21
  • 2 minute(s) read

Requires: Electric Motor Simulation Toolkit

After creating an Electric Motor Simulation custom device, you can use the Custom Device Configuration page to view or configure the device. This custom device simulates a switched reluctance motor (SRM) using the linear model function. Visit ni.com/info and enter the Info Code ex7s7w for more information about configuring the device.

  • Custom Device Settings
    • Name—Specifies the name of the custom device. After you change the name of the custom device, the device name in the configuration tree gets updated.
    • Description—Provides a description for the custom device. You can enter customized descriptions in this field.
  • SRM Linear Model Settings
    • SRM Parameters—Specifies the parameters describing the linear model of an SRM.
      • Number of Phases—Specifies the number of phases in an electric motor. The Number of Phases must be 3, 4, or 5.
      • Number of Poles—Specifies the number of poles in the electric motor. The Number of Poles must be an even number.
      • Initial Rotor Position—Specifies the mechanical rotor position, in degrees, when the motor starts.
      • Rotor Position Offset—Specifies the angle, in degrees, between the rotor salient pole and the stator salient pole when the rotor position is 0.
      • Unaligned Inductance—Specifies the equivalent inductance, in henries, of the coil at the unaligned position. The value of Unaligned Inductance must be greater than 0.
      • Aligned Flux—Specifies the flux, in webers, of the Saturated Position Current at the aligned position. The value of Aligned Flux must be greater than 0.
      • Saturated Position Current—Specifies the current, in amperes, of the coil at the saturated position. The value of Saturated Position Current must be greater than 0.
      • Maximum Current—Specifies the maximum current in amperes. The value of Maximum Current must be greater than 0.
    • Mechanical Parameters—Specifies the mechanical parameters of the electric motor. The mechanical parameters impact the forces and movement of the motor.
      • Inertia—Specifies the moment of inertia, in kgm^2, of the electric motor. The value of Inertia must be equal to or greater than 0.
      • Friction Coefficient—Specifies the friction coefficient of the electric motor. The value of Friction Coefficient must be equal to or greater than 0.
    • dt—Specifies the time interval, in seconds, at which VeriStand simulates the electric motor. The value of dt must be greater than 0. The default value is 8E-7.
    • DC Voltage—Specifies the voltage, in volts, of the direct current (DC) to apply to the inverter in the electric motor. The value of DC Voltage must be greater than 0.
    • Resistance—Specifies the resistance, in ohms, of the electric motor. The value of Resistance must be greater than 0.
  • Hardware Settings
    • RIO Device—Displays the address to the RIO device.
    • FPGA Bitfile—Displays the path to the FPGA bitfile.
    • Reset—Resets the hardware. Click Reset to reconfigure the RIO device and FPGA bitfile in the Configure FPGA dialog box.

Related Information

Creating and Configuring Custom Devices

Configure FPGA Dialog Box

Log in to get a better experience