LabVIEW Electric Motor Simulation Toolkit API Reference

Content Type
Programming Language
Current manual

Generate PMSM FEA Model FPGA Data VI

Generate PMSM FEA Model FPGA Data VI

Owning Palette: Permanent Magnet Synchronous Motor VIs

Requires: Electric Motor Simulation Toolkit

Generates data for simulating a permanent magnet synchronous motor (PMSM) on FPGA targets by using the JMAG finite element analysis (FEA) model function. Wire data to the resistance input to determine the polymorphic instance to use or manually select the instance.

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.

Generate FPGA Data (Uniform Resistance)

PMSM FEA model specifies a reference to the PMSM FEA model. Use the Create PMSM FEA Model 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.
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, of the stator winding with a positive number. If the value of resistance is equal to or less than 0, this VI uses the resistance in the PMSM FEA model reference for calculation. The default value is -1.
FPGA data returns the data of the PMSM FEA model as an array of integer numbers. The FPGA data contains results, such as the inductance and torque of the motor, from the finite element analysis 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.
PMSM FEA model parameters on FPGA 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.
base values advanced returns the base values of the resistance, flux, inductance, and torque. This VI calculates base values advanced from the voltage, current, and speed base in the base values input.
voltage base returns the base value of the voltage in volts.
current base returns the base value of the current in amperes.
speed base returns the base value of the motor speed in revolutions per minute.
resistance base returns the base value of the resistance in ohms.
flux base returns the base value of the flux linkage in webers.
inductance base returns the base value of the inductance in henries.
torque base returns the base value of the torque in newton meters.
error out contains error information. This output provides standard error out functionality.

Generate FPGA Data (Phase Resistance)

PMSM FEA model specifies a reference to the PMSM FEA model. Use the Create PMSM FEA Model 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.
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, of the stator winding under each phase of the three phases. Therefore, this array must have three elements, and each array element must specify the resistance under one phase. If this array is empty, this VI uses the resistance in the PMSM FEA model reference for calculation.
FPGA data returns the data of the PMSM FEA model as an array of integer numbers. The FPGA data contains results, such as the inductance and torque of the motor, from the finite element analysis 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.
PMSM FEA model parameters on FPGA 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.
base values advanced returns the base values of the resistance, flux, inductance, and torque. This VI calculates base values advanced from the voltage, current, and speed base in the base values input.
voltage base returns the base value of the voltage in volts.
current base returns the base value of the current in amperes.
speed base returns the base value of the motor speed in revolutions per minute.
resistance base returns the base value of the resistance in ohms.
flux base returns the base value of the flux linkage in webers.
inductance base returns the base value of the inductance in henries.
torque base returns the base value of the torque in newton meters.
error out contains error information. This output provides standard error out functionality.
Was this information helpful?