LabVIEW Electric Motor Simulation Toolkit API Reference

Content Type
Programming Language
Current manual

Generate SRM FEA Model FPGA Data VI

Generate SRM FEA Model FPGA Data VI

Owning Palette: Switched Reluctance Motor VIs

Requires: Electric Motor Simulation Toolkit

Generates data for simulating a switched reluctance motor (SRM) on FPGA targets using the JMAG finite element analysis (FEA) model function.

This VI prepares the FPGA data on the host computer, and thus reduces the workload of calculations on FPGA targets. You can transfer the FPGA data and motor parameters to an FPGA target where you simulate a motor. You can either use the direct memory access (DMA) or the front panel controls in an FPGA VI to transfer data and parameters from the host computer to an FPGA target.

SRM FEA model specifies a reference to the SRM FEA model. Use the Read SRM RTT File VI to generate this reference.
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.
base values specifies the voltage, current, and speed in a defined base unit quantity. Using base quantities simplifies the calculations because quantities expressed as per-unit are the same regardless of the voltage level. The FPGA VIs utilize the per-unit system for electric motor simulation.
voltage base specifies the base value of the voltage, in volts, that you can use to convert an engineering unit to a per-unit, and vice versa. The default is 1 volt.
current base specifies the base value of the current, in amperes, that you can use to convert an engineering unit to a per-unit, and vice versa. The default is 1 ampere.
speed base specifies the base value of the speed, in revolutions per minute, that you can use to convert an engineering unit to a per-unit, and vice versa. The default is 1 revolution per minute.
initial state specifies the initial state of the motor when the motor starts.
initial rotor position specifies the mechanical rotor position, in degrees, when the motor starts. The default value is 0.
initial current specifies the current, in amperes, in each phase when the motor starts. The default value is 0.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
dt specifies the time interval, in seconds, at which LabVIEW simulates the electric motor. The value of dt must be greater than 0.
resistance specifies resistance in ohms. If the value of resistance is equal to or less than zero, this VI uses the data in the SRM FEA model reference for calculation. The default value is -1.
FPGA data returns the data of the SRM FEA model as an array of integer numbers. The FPGA data contains results of the finite element analysis, such as the inductance and torque of the motor, as the current in the motor varies. Use the direct memory access (DMA) to transfer the FPGA data from the host computer to an FPGA target.
SRM model information returns the motor parameters, such as number of poles and resistance, for use by the electric motor simulation on an FPGA target. Use the front panel controls in an FPGA VI to transfer the motor parameters from the host computer to an FPGA target.
SRM initial state and scaling factors returns the motor state at the starting point and the scaling factors on FPGA targets.
initial rotor position returns the mechanical rotor position, in degrees, when the motor starts.
initial electric angle returns the electric angle of each phase, in degrees, when the motor starts.
initial inductance returns the inductance, in henries, of the motor when the motor starts.
current factor returns the factor to scale the current of the simulated motor on FPGA targets.
inductance factor returns the factor to scale the inductance of the simulated motor on FPGA targets.
torque factor returns the factor to scale the torque of the simulated motor on FPGA targets.
voltage factor returns the factor to scale the voltage of the simulated motor on FPGA targets.
scaled R*dt returns the scaled value calculated by the following formula: y=(R * dt) / x, where R is the resistance and x is the inductance factor.
error out contains error information. This output provides standard error out functionality.
Was this information helpful?