Skip to content

Induction machine space vector interactive visualisation using exported Simulink data.

Notifications You must be signed in to change notification settings

mstunda/motor-visual-type2-excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

About

This is a graphical tool for browsing output data of an electical drives simulation (e.g. form Matlab Simulink) in the space vector domain and in the rotor flux linkage reference frame.

Usually this data is graphed along several time axis in different scales or in a static locus around the x-y plane. This allows to view the complete development of all the scalar vector components at once, but leaves the spatial interpretation completely to the viewer.

This tool allows viewing the vecotr value development graphically one sample at a time. By browsing through the simulation, the value development is animated under full control of the viewer.

A full description of the tool can be found in: M. Stunda, "Graphical Tool for Browsing Motor Control Simulation Data in the Space Vector Domain," 2019 IEEE 7th IEEE Workshop on Advances in Information, Electronic and Electrical Engineering (AIEEE), Liepaja, Latvia, 2019, pp. 1-5.

This is a continuation of a previous project that ran on simplified motor model equations.

Preview

User input

The user only has conrol over the timepoint within the simulation. This is manipulated by four differently scaled sliders. By using diferent sliders, different processes can be observed best.

Full scale (Zoom x1)

The top slider, which moves the timepoint the fastest, is best for viewing slow processes, such as the magnetization of the machine. This is resembled by the i_mr vector, as it grows towards the target. GUI magnetization slowest

Smallest scale (Zoom x2000)

The botom slider, which can be used to move the timepoint by a single sample, is best for viewing the fastest processes, such as switching of the gates and changing of the electrical torque, which has the highest bandwidth. The "zoom coefficient" required to browse by single sample is of course dependent on the length and resolution of the simulation. GUI gates fastest

Full overview

Here is a recording of operating all the sliders. The middle sliders are best for observing the current space vector following it's target and the voltage space vector required to do so. GUI overview

Running the code

The graphical interface is built using Python 3.7 and the TkInter library.

Python setup

For a quick and easy isolated Python 3.x setup the Miniconda installer (not full Anaconda) and the Spyder IDE can be recommended. After installing miniconda Spyder can be installed through the Anaconda Prompt by running:

conda install spyder

If not yet installed, the following Python packages will be required:

  • xlrd and pandas for reading the spreadsheet
  • math for calculating the rotating Hexagon
  • tk for building the GUI.

Input data

To produce the space vector values, simulation data must be exported from Matlab Simulink in spreadsheet (.xlsx) format using "To Workspace". The column indentifiers and simulation length must be modified within the code to match the spreadsheet contents. A sample spreadsheet is added to run the code instantly. Loading it might take a while.

Releases

No releases published

Packages

No packages published

Languages