Generate SRM FEA Model FPGA Data VI
- Updated2023-02-21
- 5 minute(s) read
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.
| ||||||||||||||||
![]() |
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.
| ||||||||||||||||
![]() |
initial state specifies the initial state of the motor when the motor starts.
| ||||||||||||||||
![]() |
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.
| ||||||||||||||||
![]() |
error out contains error information. This output provides standard error out functionality. |