LabVIEW Electric Motor Simulation Toolkit API Reference

Content Type
Programming Language
Current manual

Generate SRM Linear Model FPGA Data VI

Generate SRM Linear Model FPGA Data VI

Owning Palette: Switched Reluctance Motor VIs

Requires: Electric Motor Simulation Toolkit

Generates data and parameters for simulating a switched reluctance motor (SRM) on FPGA targets using the linear model function.

This VI prepares the FPGA data on the desktop, and thus reduces the workload of calculations on FPGA targets.

Example

SRM linear model parameters specifies the parameters describing the linear model of an SRM.
unaligned inductance specifies the equivalent inductance, in henries, of the coil at the unaligned position.
saturated position current specifies the current, in amperes, of the coil at the saturated position.
aligned flux specifies the flux, in webers, of the saturated position current at the aligned position.
max current specifies the maximum current in amperes.
rotor position offset specifies the angle, in degrees, between the rotor salient pole and the stator salient pole when the rotor position is 0.
SRM type specifies the number of poles and phases in the electric motor.
number of poles specifies the number of poles in the electric motor. The number of poles must be an even number.
number of phases specifies the number of phases in an electric motor. The number of phases can only be 3, 4, or 5.
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.
initial rotor position specifies the mechanical rotor position, in degrees, 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 the resistance, in ohms, of the electric motor. The value of resistance must be greater than 0.
SRM linear model parameters on FPGA returns a reference to the SRM linear model, which you can use to simulate an electric motor 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.
model initial state returns information about the SRM linear model at the starting time. Use the information of initial state for calculations on FPGA targets later.
rotor speed returns the rotor speed, in radian per second, when the motor starts.
rotor position returns the mechanical rotor position, in radian, when the motor starts.
delta theta returns the increment in the rotor position at the starting time. The unit is radian.
theta returns an array that contains the electric angles of all SRM phases.
sin (# of poles * theta) returns an array of numbers calculated by the following formula: sin ( # of poles * theta), where # of poles is the number of poles, and theta is the electric angle.
cos (# of poles * theta) returns an array of numbers calculated by the following formula: cos ( # of poles * theta), where # of poles is the number of poles, and theta is the electric angle.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the SRM Linear Model Configuration VI in the labview\examples\Electric Motor Simulation\SRM\SRM Linear Model Configuration directory for an example of using the Generate SRM Linear Model FPGA Data VI.

In This Section
Was this information helpful?