[go: up one dir, main page]

CN104166040A - PMSM stator voltage detection system and method under the condition of two-phase transformation - Google Patents

PMSM stator voltage detection system and method under the condition of two-phase transformation Download PDF

Info

Publication number
CN104166040A
CN104166040A CN201410363997.7A CN201410363997A CN104166040A CN 104166040 A CN104166040 A CN 104166040A CN 201410363997 A CN201410363997 A CN 201410363997A CN 104166040 A CN104166040 A CN 104166040A
Authority
CN
China
Prior art keywords
synchronous motor
voltage
phase
motor stator
permanent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410363997.7A
Other languages
Chinese (zh)
Other versions
CN104166040B (en
Inventor
宋奇吼
于淑萍
童岩峰
徐百钏
陈莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Institute of Railway Technology
Original Assignee
Nanjing Institute of Railway Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Institute of Railway Technology filed Critical Nanjing Institute of Railway Technology
Priority to CN201410363997.7A priority Critical patent/CN104166040B/en
Publication of CN104166040A publication Critical patent/CN104166040A/en
Application granted granted Critical
Publication of CN104166040B publication Critical patent/CN104166040B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Tests Of Circuit Breakers, Generators, And Electric Motors (AREA)
  • Control Of Ac Motors In General (AREA)

Abstract

一种两相变换下的永磁同步电机定子电压检测系统及其方法,电磁感应电压传感器分别同带有串行通信接口模块的基于DSP的数据采集系统的第一信号接收管脚和第二信号接收管脚相连接,所述的基于DSP的数据采集系统还通过串行数据通信的接口同上位机相连接,所述的上位机带有两相变换下的永磁同步电机定子电压检测模块,所述的两相变换下的永磁同步电机定子电压检测模块包含有三相旋转坐标到两相旋转坐标变换模块,所述的上位机中还包含有VISA模块,并结合其方法可有效避免现有技术中的还没有这样的技术来由于数据量的庞大动态观测两相旋转坐标下的定子电压至今无法通过简便的方式来解决的缺陷。

A permanent magnet synchronous motor stator voltage detection system and method thereof under two-phase conversion, the electromagnetic induction voltage sensor is connected with the first signal receiving pin and the second signal of the DSP-based data acquisition system with a serial communication interface module respectively The receiving pins are connected, and the DSP-based data acquisition system is also connected with the upper computer through the interface of serial data communication, and the upper computer has a permanent magnet synchronous motor stator voltage detection module under two-phase conversion, The permanent magnet synchronous motor stator voltage detection module under the two-phase conversion includes a three-phase rotating coordinate to two-phase rotating coordinate conversion module, and the upper computer also includes a VISA module, and the combination of the method can effectively avoid existing There is no such technology in the technology to solve the defect that the dynamic observation of the stator voltage under the two-phase rotating coordinates cannot be solved in a simple way so far due to the huge amount of data.

Description

两相变换下的永磁同步电机定子电压检测系统及方法Stator voltage detection system and method for permanent magnet synchronous motor under two-phase conversion

技术领域technical field

本发明属于永磁同步电机技术领域,具体涉及一种两相变换下的永磁同步电机定子电压检测系统及其方法。The invention belongs to the technical field of permanent magnet synchronous motors, and in particular relates to a permanent magnet synchronous motor stator voltage detection system under two-phase conversion and a method thereof.

背景技术Background technique

永磁同步电动机具有结构简单,体积小、重量轻、损耗小、效率高、功率因数高等优点,主要用于要求响应快速、调速范围宽、定位准确的高性能伺服传动系统和直流电机的更新替代电机。The permanent magnet synchronous motor has the advantages of simple structure, small size, light weight, low loss, high efficiency, high power factor, etc. It is mainly used for the update of high-performance servo drive systems and DC motors that require fast response, wide speed range, and accurate positioning. Replacement motor.

在永磁同步电动机的运行过程中常常需要把定子电压从三相旋转坐标转变到两相旋转坐标下的定子电压以此操纵,现在却缺乏一种方便简单的针对永磁同步电动机的转变到两相旋转坐标下的定子电压的实时监测装置。During the operation of the permanent magnet synchronous motor, it is often necessary to change the stator voltage from the three-phase rotating coordinate to the stator voltage under the two-phase rotating coordinate for manipulation, but now there is a lack of a convenient and simple transformation for the permanent magnet synchronous motor to two A real-time monitoring device for stator voltage in phase rotation coordinates.

发明内容Contents of the invention

本发明的目的提供一种两相变换下的永磁同步电机定子电压检测系统及其方法,电磁感应电压传感器分别同带有串行通信接口模块的基于DSP的数据采集系统的第一信号接收管脚和第二信号接收管脚相连接,所述的基于DSP的数据采集系统还通过串行数据通信的接口同上位机相连接,所述的上位机带有两相变换下的永磁同步电机定子电压检测模块,所述的两相变换下的永磁同步电机定子电压检测模块包含有三相旋转坐标到两相旋转坐标变换模块,所述的上位机中还包含有VISA模块,并结合其方法可有效避免现有技术中的还没有这样的技术来由于数据量的庞大动态观测两相旋转坐标下的定子电压至今无法通过简便的方式来解决的缺陷。The purpose of the present invention provides a permanent magnet synchronous motor stator voltage detection system and method thereof under two-phase conversion. Pin is connected with the second signal receiving pin, and the described data acquisition system based on DSP is also connected with the host computer through the interface of serial data communication, and the described host computer has a permanent magnet synchronous motor under two-phase conversion Stator voltage detection module, the permanent magnet synchronous motor stator voltage detection module under the two-phase conversion includes a three-phase rotating coordinate to two-phase rotating coordinate conversion module, and the upper computer also includes a VISA module, combined with its method It can effectively avoid the defect that there is no such technology in the prior art to dynamically observe the stator voltage under the two-phase rotating coordinates due to the huge amount of data, which cannot be solved in a simple way so far.

为了克服现有技术中的不足,本发明提供了一种两相变换下的永磁同步电机定子电压检测系统及其方法的解决方案,具体如下:In order to overcome the deficiencies in the prior art, the present invention provides a solution to the permanent magnet synchronous motor stator voltage detection system and method thereof under two-phase conversion, specifically as follows:

一种两相变换下的永磁同步电机定子电压检测系统,包括在永磁同步电机定子的三相绕组中的两相绕组旁分别设置有第一电磁感应电压传感器1和第二电磁感应电压传感器2,所述的第一电磁感应电压传感器1和第二电磁感应电压传感器2能够分别感应出所述的两相绕组的电压,所述的第一电磁感应电压传感器1和第二电磁感应电压传感器2分别同带有串行通信接口模块的基于DSP的数据采集系统4的第一信号接收管脚5和第二信号接收管脚6相连接,所述的基于DSP的数据采集系统4还通过串行数据通信的接口8同上位机9相连接,所述的上位机9带有两相变换下的永磁同步电机定子电压检测模块10,所述的两相变换下的永磁同步电机定子电压检测模块10包含有三相旋转坐标到两相旋转坐标变换模块11,所述的上位机9中还包含有VISA模块。A permanent magnet synchronous motor stator voltage detection system under two-phase conversion, comprising a first electromagnetic induction voltage sensor 1 and a second electromagnetic induction voltage sensor respectively arranged beside two phase windings of the three-phase windings of the permanent magnet synchronous motor stator 2. The first electromagnetic induction voltage sensor 1 and the second electromagnetic induction voltage sensor 2 can respectively sense the voltages of the two-phase windings, and the first electromagnetic induction voltage sensor 1 and the second electromagnetic induction voltage sensor 2 are respectively connected with the first signal receiving pin 5 and the second signal receiving pin 6 of the DSP-based data acquisition system 4 with the serial communication interface module, and the described DSP-based data acquisition system 4 is also connected through the serial The interface 8 for data communication is connected with the upper computer 9, and the upper computer 9 has a permanent magnet synchronous motor stator voltage detection module 10 under the two-phase conversion, and the permanent magnet synchronous motor stator voltage under the two-phase conversion is The detection module 10 includes a three-phase rotating coordinate to two-phase rotating coordinate transformation module 11, and the host computer 9 also includes a VISA module.

所述的两相变换下的永磁同步电机定子电压检测模块10还包括有人机交互界面,所述的人机交互界面包括操作界面部分与显示界面部分,所述的操作界面部分为通过对操作界面的进行操作后就能经过两相变换下的永磁同步电机定子电压检测模块10对上位机9发送指令;所述的显示界面部分分为波形显示部分和仪表显示部分,所述的波形显示部分能够检测到选定范围内永磁同步电机的定子在两相旋转坐标系下的电压数据的整个变化过程;所述的仪表显示部分能够稳定显示永磁同步电机的定子在两相旋转坐标系下的电压的数据。The stator voltage detection module 10 of the permanent magnet synchronous motor under the two-phase conversion also includes a man-machine interface, and the man-machine interface includes an operation interface part and a display interface part, and the operation interface part is for operating After the operation of the interface, the permanent magnet synchronous motor stator voltage detection module 10 under the two-phase conversion can send instructions to the upper computer 9; the display interface part is divided into a waveform display part and an instrument display part, and the waveform display part Part of it can detect the entire change process of the voltage data of the stator of the permanent magnet synchronous motor in the two-phase rotating coordinate system within the selected range; the instrument display part can stably display the stator of the permanent magnet synchronous motor in the two-phase rotating coordinate system The voltage data below.

所述的波形显示部分通过波形显示窗口显示永磁同步电机的定子电压的幅值-时间曲线,所述的仪器显示部分包括有两个圆弧状刻度区域,所述的两个圆弧状刻度区域分别用来表示永磁同步电机定子在两相旋转坐标系下的d轴电压值范围以及永磁同步电机定子在两相旋转坐标系下的q轴电压值范围,所述的两个圆弧状刻度区域的下方各自设置有一个指针状图标,所述的两个圆弧状刻度区域的上方分别设置有用来显示永磁同步电机定子在两相旋转坐标系下的d轴电压值的文本框以及在两相旋转坐标系下的q轴电压值的文本框。The waveform display part displays the amplitude-time curve of the stator voltage of the permanent magnet synchronous motor through the waveform display window, and the instrument display part includes two arc-shaped scale areas, and the two arc-shaped scales The regions are respectively used to indicate the d-axis voltage value range of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system and the q-axis voltage value range of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system. The two arcs A pointer-like icon is set below each of the two arc-shaped scale areas, and a text box for displaying the d-axis voltage value of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system is respectively set above the two arc-shaped scale areas. And the text box of the q-axis voltage value under the two-phase rotating coordinate system.

所述的操作界面部分包括串口参数设置部分、波形选择部分、波形调整部分、控制部分以及波形显示参数设置部分,所述的串口参数设置部分用于对串口通信的参数的初始化,所述的串口参数设置部分包括有用于串行端口号选择的选择框和用于设置串口通信波特率的文本框,所述的用于串行端口号选择的选择框中预设的选择值为上位机9能够识别的串行端口号,所述的波形显示参数设置部分包括用来设置数据IQ格式的转换模式的文本框、用来设置缓存大小的文本框以及用来设置采样频率的文本框,所述的波形调整部分包括用来选择基于DSP的数据采集系统的通道的选择按钮、用来选择是否对被选择的基于DSP的数据采集系统的通道的幅值进行测量的游标开关按钮、用来选择是否对被选择的基于DSP的数据采集系统的通道的时间进行测量的游标开关按钮、用来显示被选择的基于DSP的数据采集系统的通道的幅值的文本框、用来显示被选择的基于DSP的数据采集系统的通道的时间的文本框、用于设置游标刻度值的文本框以及用于波形移动的左右拉条,所述的控制部分包括开始按钮、暂停按钮和停止按钮,所述的开始按钮、暂停按钮和停止按钮分别对被测波形执行启动、暂停运行和终止运行的控制,所述的波形选择部分包括用于选择显示永磁同步电机定子在两相旋转坐标系下的d轴电压波形的点选框和用于选择显示永磁同步电机定子在两相旋转坐标系下的q轴电压波形的点选框,这样就能通过选择后在波形显示窗口显示对应选择的用于选择显示永磁同步电机定子在两相旋转坐标系下的d轴电压波形图或者用于选择显示永磁同步电机定子在两相旋转坐标系下的q轴电压波形图。The operation interface part includes a serial port parameter setting part, a waveform selection part, a waveform adjustment part, a control part and a waveform display parameter setting part, and the serial port parameter setting part is used for initializing the parameters of the serial port communication, and the serial port The parameter setting part includes a selection box for serial port number selection and a text box for setting the serial port communication baud rate, and the preset selection value in the selection box for serial port number selection is the upper computer 9 identifiable serial port number, the waveform display parameter setting part includes a text box used to set the conversion mode of the data IQ format, a text box used to set the buffer size and a text box used to set the sampling frequency, the said The waveform adjustment part includes the selection button for selecting the channel of the DSP-based data acquisition system, the cursor switch button for selecting whether to measure the amplitude of the selected channel of the DSP-based data acquisition system, and the cursor switch button for selecting whether to The cursor switch button for measuring the time of the channel of the selected DSP-based data acquisition system, the text box used to display the amplitude of the selected DSP-based data acquisition system channel, and the text box used to display the selected DSP-based data acquisition system The text box for the time of the channel of the data acquisition system, the text box for setting the vernier scale value, and the left and right bars for waveform movement. The control part includes a start button, a pause button and a stop button. The start button The button, the pause button and the stop button respectively execute the control of starting, suspending and terminating the measured waveform. The waveform selection part includes the d-axis voltage for selecting and displaying the stator of the permanent magnet synchronous motor under the two-phase rotating coordinate system. The click box for the waveform and the click box for selecting and displaying the q-axis voltage waveform of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system, so that the corresponding selection can be displayed in the waveform display window after selection The d-axis voltage waveform diagram of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system or the q-axis voltage waveform diagram of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system can be selected and displayed.

所述的两相变换下的永磁同步电机定子电压检测系统的方法,步骤如下:The method for the stator voltage detection system of the permanent magnet synchronous motor under the two-phase conversion, the steps are as follows:

步骤1:首先启动两相变换下的永磁同步电机定子电压检测系统,第一电磁感应电压传感器1和第二电磁感应电压传感器2分别感应出所述的两相绕组的电压,以此对永磁同步电机定子的所述的两相绕组的电压进行数据采集,并把采集到的所述的两相绕组的电压值传递到基于DSP的数据采集系统4,并通过两相变换下的永磁同步电机定子电压检测模块10运行人机交互界面,在人机交互界面上串口参数设置部分选择串行端口号和串口通信波特率,并让串口通信波特率同基于DSP的数据采集系统4中的串行通信接口模块内设置的串口通信波特率一致;Step 1: First start the permanent magnet synchronous motor stator voltage detection system under two-phase conversion, the first electromagnetic induction voltage sensor 1 and the second electromagnetic induction voltage sensor 2 respectively sense the voltages of the two-phase windings, so as to measure the permanent magnet synchronous motor voltage. The voltage of the described two-phase winding of the magnetic synchronous motor stator is carried out data acquisition, and the voltage value of the described two-phase winding that gathers is delivered to the data acquisition system 4 based on DSP, and through the permanent magnet under two-phase transformation The synchronous motor stator voltage detection module 10 runs the man-machine interface, selects the serial port number and the serial port communication baud rate in the serial port parameter setting part of the man-machine interface, and makes the serial port communication baud rate the same as that of the DSP-based data acquisition system 4 The serial communication baud rate set in the serial communication interface module is consistent;

步骤2:在两相变换下的永磁同步电机定子电压检测模块10的其他地方对串口通信的奇偶校验位、数据比特位和停止位进行设置,所述的对串口通信的奇偶校验位、数据比特位和停止位设置的值分别同基于DSP的数据采集系统4中的串行通信接口模块内设置的串口通信的奇偶校验位、数据比特位和停止位设置的值一致;Step 2: In other places of the permanent magnet synchronous motor stator voltage detection module 10 under two-phase conversion, the parity bit, data bit and stop bit of the serial port communication are set, and the parity bit of the serial port communication is described , the value that data bit position and stop bit set are consistent with the parity check bit, data bit position and the value that stop bit set of the serial port communication that is set in the serial communication interface module in the data acquisition system 4 based on DSP respectively;

步骤3:另外在用来设置数据IQ格式的转换模式的文本框、用来设置缓存大小的文本框以及用来设置采样频率的文本框中分别进行对数据IQ格式的转换模式、缓存大小以及采样频率的设置,通过用来选择基于DSP的数据采集系统的通道的选择按钮进行对基于DSP的数据采集系统的通道的选择,通过用来选择是否对被选择的基于DSP的数据采集系统的通道的幅值进行测量的游标开关按钮、用来选择是否对被选择的基于DSP的数据采集系统的通道的时间进行测量的游标开关按钮以及用于设置游标刻度值的文本框分别进行是否对被选择的基于DSP的数据采集系统的通道的幅值进行测量做出选择、是否对被选择的基于DSP的数据采集系统的通道的时间进行测量做出选择以及设置游标刻度值;Step 3: In addition, in the text box used to set the conversion mode of the data IQ format, the text box used to set the cache size and the text box used to set the sampling frequency, respectively perform the conversion mode, cache size and sampling of the data IQ format Frequency setting, select the channel of the DSP-based data acquisition system through the selection button used to select the channel of the DSP-based data acquisition system, and select whether to select the channel of the selected DSP-based data acquisition system The cursor switch button for amplitude measurement, the cursor switch button for selecting whether to measure the time of the channel of the selected DSP-based data acquisition system, and the text box for setting the value of the cursor scale. Make a selection based on the amplitude of the channel of the DSP-based data acquisition system, whether to measure the time of the selected channel of the DSP-based data acquisition system, and set the vernier scale value;

步骤4:通过点选用于选择显示永磁同步电机定子在两相旋转坐标系下的d轴电压波形的点选框或者用于选择显示永磁同步电机定子在两相旋转坐标系下的q轴电压波形的点选框来选择在波形显示窗口显示的电压波形类别,这样就完成了初始化设置;Step 4: Click to select the checkbox for displaying the d-axis voltage waveform of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system or to select the q-axis for displaying the permanent magnet synchronous motor stator in the two-phase rotating coordinate system Click the check box of the voltage waveform to select the voltage waveform category displayed in the waveform display window, thus completing the initialization setting;

步骤5:然后当点击了开始按钮后,所述的两相变换下的永磁同步电机定子电压检测模块10就把测量指令通过串行数据通信的接口8发送到基于DSP的数据采集系统4,所述的测量指令包括有初始化设置的信息,并且两相变换下的永磁同步电机定子电压检测模块10在内存中设置有用来保存当前初始化设置的信息的数组,每次在保存当前初始化设置的信息之前,先把当前初始化设置的信息同上一次保存在该数组中的上一次初始化设置的信息相比较,如果有差异,就将当前初始化设置的信息保存到用来保存当前初始化设置的信息的数组中,如果没有差异,用来保存当前初始化设置的信息的数组的数据保持不变;Step 5: Then when the start button is clicked, the permanent magnet synchronous motor stator voltage detection module 10 under the two-phase conversion will send the measurement instruction to the data acquisition system 4 based on DSP through the serial data communication interface 8, The measurement instruction includes the information of initialization setting, and the permanent magnet synchronous motor stator voltage detection module 10 under the two-phase conversion is provided with an array for saving the information of the current initialization setting in the internal memory, each time when saving the current initialization setting Before information, first compare the information of the current initialization setting with the information of the last initialization setting saved in the array last time, if there is a difference, save the information of the current initialization setting to the array used to save the information of the current initialization setting In , if there is no difference, the data of the array used to save the information of the current initialization settings remains unchanged;

步骤6:当基于DSP的数据采集系统4接收到经由串行数据通信的接口8传递来的包括有初始化设置的信息的测量指令,就会根据初始化设置的信息中的选择在波形显示窗口显示的电压波形类别和对基于DSP的数据采集系统的通道的选择把实时采集的同电压波形类别相对应的电压数据通过选择的通道发送到上位机9中;Step 6: When the DSP-based data acquisition system 4 receives the measurement instruction including the information of the initialization setting transmitted via the interface 8 of the serial data communication, it will display in the waveform display window according to the selection in the information of the initialization setting The voltage waveform category and the channel selection of the DSP-based data acquisition system send the voltage data corresponding to the voltage waveform category collected in real time to the upper computer 9 through the selected channel;

步骤7:上位机9接收到电压数据后,两相变换下的永磁同步电机定子电压检测模块10就设置缓存区来存储接收到的电压数据,串口通信每次以4个字节为一组的收发数据,接收到的电压输数据为IQ格式的数据,这样再经过格式转化将接收到的电压输数据转换成普通十进制有符号数所表示的波形真实数据,格式转化的具体方式为先判断接收到的电压输数据的正负号属性来导出有符号数,有符号数再经过逆运算即可得到波形真实数据,所述的波形真实数据包括永磁同步电机定子的所述的两相绕组的电压值,再通过永磁同步电机定子的三相绕组的电压值之和为0的条件就能导出永磁同步电机定子的三相绕组中的另外一相绕组的电压值,所述的永磁同步电机定子的三相绕组中的A相绕组的电压值、B相绕组的电压值和C组绕组的电压值分别表示为Va、Vb和Vc,两相变换下的永磁同步电机定子电压检测模块10中的三相旋转坐标到两相旋转坐标变换模块11根据永磁同步电机定子的三相绕组中的A相绕组的电压值、B相绕组的电压值和C组绕组的电压值,所述的永磁同步电机定子的三相绕组中的A相绕组的电压值、B相绕组的电压值和C组绕组的电压值按照公式(1)和公式(2)导出永磁同步电机定子在两相旋转坐标系下的d轴电压值以及在两相旋转坐标系下的q轴电压值,所述的永磁同步电机定子在两相静止坐标系下的a轴电压值以及在两相静止坐标系下的β轴电压值分别为Va和Vβ,所述的永磁同步电机定子在两相旋转坐标系下的d轴电压值以及在两相旋转坐标系下的q轴电压值分别为Vd和Vq,θ表示d轴同a轴的夹角:Step 7: After the host computer 9 receives the voltage data, the stator voltage detection module 10 of the permanent magnet synchronous motor under two-phase conversion sets a buffer area to store the received voltage data, and the serial port communication uses 4 bytes as a group each time The received and received voltage input data is data in IQ format, so that the received voltage input data is converted into real waveform data represented by ordinary decimal signed numbers after format conversion. The specific method of format conversion is first judged The sign attribute of the received voltage input data is used to derive the signed number, and the signed number can be inversely calculated to obtain the real waveform data. The real waveform data includes the two-phase winding of the stator of the permanent magnet synchronous motor The voltage value of the permanent magnet synchronous motor stator, and then through the condition that the sum of the voltage values of the three-phase windings of the permanent magnet synchronous motor stator is 0, the voltage value of the other phase winding in the three-phase winding of the permanent magnet synchronous motor stator can be derived. Among the three-phase windings of the magnetic synchronous motor stator, the voltage value of the A-phase winding, the voltage value of the B-phase winding and the voltage value of the C-group winding are expressed as V a , V b and V c respectively. The permanent magnet synchronous The three-phase rotating coordinate in the motor stator voltage detection module 10 is converted to the two-phase rotating coordinate conversion module 11 according to the voltage value of the A-phase winding in the three-phase winding of the permanent magnet synchronous motor stator, the voltage value of the B-phase winding and the voltage value of the C group winding Voltage value, the voltage value of the A-phase winding in the three-phase winding of the permanent magnet synchronous motor stator, the voltage value of the B-phase winding and the voltage value of the C group winding derive permanent magnet according to formula (1) and formula (2) The d-axis voltage value of the synchronous motor stator under the two-phase rotating coordinate system and the q-axis voltage value under the two-phase rotating coordinate system, the a-axis voltage value of the permanent magnet synchronous motor stator under the two-phase stationary coordinate system and The β-axis voltage values in the two-phase stationary coordinate system are V a and V β respectively, and the d-axis voltage values of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system and q in the two-phase rotating coordinate system The axial voltage values are V d and V q respectively, and θ represents the angle between the d axis and the a axis:

VV αα VV ββ == 22 33 11 -- 11 // 22 -- 11 // 22 00 33 // 22 -- 33 // 22 VV aa VV bb VV cc -- -- -- (( 11 ))

VV dd VV qq == coscos θθ sinsin θθ -- sinsin θθ coscos θθ VV αα VV ββ -- -- -- (( 22 ))

所述的永磁同步电机定子在两相旋转坐标系下的d轴电压值以及在两相旋转坐标系下的q轴电压值保存于缓存区中以备生成观测波形,在数据存放时,每一次循环,数组都会经过向后移位将新读取到的数据存放在缓存区最前面,数组尾部移出的数据将被剔除;The d-axis voltage value of the permanent magnet synchronous motor stator under the two-phase rotating coordinate system and the q-axis voltage value under the two-phase rotating coordinate system are stored in the buffer area in order to prepare for generating observation waveforms. When the data is stored, each In a loop, the array will be shifted backwards to store the newly read data at the front of the buffer, and the data moved out from the end of the array will be removed;

步骤8:把缓存区中的所述的永磁同步电机定子在两相旋转坐标系下的d轴电压值或者在两相旋转坐标系下的q轴电压值送到波形显示窗口针对对应的永磁同步电机的定子电压以幅值-时间曲线的形式进行显示,或者在仪器显示部分通过指针状图标在圆弧状刻度区域内标示并在对应的用来显示所述的永磁同步电机定子在两相旋转坐标系下的d轴电压值的文本框或者在两相旋转坐标系下的q轴电压值的文本框中显示电压值。Step 8: Send the d-axis voltage value of the permanent magnet synchronous motor stator in the buffer area under the two-phase rotating coordinate system or the q-axis voltage value under the two-phase rotating coordinate system to the waveform display window for the corresponding permanent magnet synchronous motor. The stator voltage of the magnetic synchronous motor is displayed in the form of an amplitude-time curve, or in the display part of the instrument, it is marked in the arc-shaped scale area by a pointer icon and is used to display the corresponding permanent magnet synchronous motor stator. The voltage value is displayed in the text box of the d-axis voltage value in the two-phase rotating coordinate system or in the text box of the q-axis voltage value in the two-phase rotating coordinate system.

本发明在显示过程中,幅值和时间刻度还可以根据需要进行放大和缩小,以便于对波形细部进行分析。实现波形显示后,还可以通过面板上的时间幅值游标对波形时间和幅值的大小进行测量,实现对被测量的定量分析。In the display process of the present invention, the amplitude and the time scale can also be enlarged and reduced as required, so as to analyze the details of the waveform. After the waveform display is realized, the time and amplitude of the waveform can also be measured through the time and amplitude cursors on the panel, so as to realize the quantitative analysis of the measured object.

附图说明Description of drawings

图1为本发明的两相变换下的永磁同步电机定子电压检测系统连接结构示意图。Fig. 1 is a schematic diagram of the connection structure of the permanent magnet synchronous motor stator voltage detection system under two-phase conversion according to the present invention.

具体实施方式Detailed ways

控制与测试是两个相关度非常高的领域,从测试领域起家的LabVIEW自然而然地首先拓展至控制领域。LabVIEW拥有专门用于控制领域的模块LabVIEWDSC。除此之外,工业控制领域常用的设备、数据线等通常也都带有相应的LabVIEW驱动程序。使用LabVIEW可以非常方便的编制各种控制程序。Control and testing are two highly related fields. LabVIEW, which started from the testing field, naturally expanded to the control field first. LabVIEW has a module LabVIEWDSC specially used in the control field. In addition, commonly used devices and data lines in the field of industrial control usually have corresponding LabVIEW drivers. Various control programs can be compiled very conveniently using LabVIEW.

如图1所示,两相变换下的永磁同步电机定子电压检测系统,包括在永磁同步电机定子的三相绕组中的两相绕组旁分别设置有第一电磁感应电压传感器1和第二电磁感应电压传感器2,所述的第一电磁感应电压传感器1和第二电磁感应电压传感器2能够分别感应出所述的两相绕组的电压,所述的第一电磁感应电压传感器1和第二电磁感应电压传感器2分别同带有串行通信接口模块的基于DSP的数据采集系统4的第一信号接收管脚5和第二信号接收管脚6相连接,所述的基于DSP的数据采集系统4还通过串行数据通信的接口8同上位机9相连接,所述的上位机9带有两相变换下的永磁同步电机定子电压检测模块10,所述的两相变换下的永磁同步电机定子电压检测模块10包含有三相旋转坐标到两相旋转坐标变换模块11,所述的上位机9中还包含有VISA模块。所述的两相变换下的永磁同步电机定子电压检测模块10还包括有人机交互界面,所述的人机交互界面包括操作界面部分与显示界面部分,所述的操作界面部分为通过对操作界面的进行操作后就能经过两相变换下的永磁同步电机定子电压检测模块10对上位机9发送指令;所述的显示界面部分分为波形显示部分和仪表显示部分,所述的波形显示部分能够检测到选定范围内永磁同步电机的定子在两相旋转坐标系下的电压数据的整个变化过程;所述的仪表显示部分能够稳定显示永磁同步电机的定子在两相旋转坐标系下的电压的数据。所述的波形显示部分通过波形显示窗口显示永磁同步电机的定子电压的幅值-时间曲线,所述的仪器显示部分包括有两个圆弧状刻度区域,所述的两个圆弧状刻度区域分别用来表示永磁同步电机定子在两相旋转坐标系下的d轴电压值范围以及永磁同步电机定子在两相旋转坐标系下的q轴电压值范围,所述的两个圆弧状刻度区域的下方各自设置有一个指针状图标,所述的两个圆弧状刻度区域的上方分别设置有用来显示永磁同步电机定子在两相旋转坐标系下的d轴电压值的文本框以及在两相旋转坐标系下的q轴电压值的文本框。所述的操作界面部分包括串口参数设置部分、波形选择部分、波形调整部分、控制部分以及波形显示参数设置部分,所述的串口参数设置部分用于对串口通信的参数的初始化,所述的串口参数设置部分包括有用于串行端口号选择的选择框和用于设置串口通信波特率的文本框,所述的用于串行端口号选择的选择框中预设的选择值为上位机9能够识别的串行端口号,所述的波形显示参数设置部分包括用来设置数据IQ格式的转换模式的文本框、用来设置缓存大小的文本框以及用来设置采样频率的文本框,所述的波形调整部分包括用来选择基于DSP的数据采集系统的通道的选择按钮、用来选择是否对被选择的基于DSP的数据采集系统的通道的幅值进行测量的游标开关按钮、用来选择是否对被选择的基于DSP的数据采集系统的通道的时间进行测量的游标开关按钮、用来显示被选择的基于DSP的数据采集系统的通道的幅值的文本框、用来显示被选择的基于DSP的数据采集系统的通道的时间的文本框、用于设置游标刻度值的文本框以及用于波形移动的左右拉条,所述的控制部分包括开始按钮、暂停按钮和停止按钮,所述的开始按钮、暂停按钮和停止按钮分别对被测波形执行启动、暂停运行和终止运行的控制,所述的波形选择部分包括用于选择显示永磁同步电机定子在两相旋转坐标系下的d轴电压波形的点选框和用于选择显示永磁同步电机定子在两相旋转坐标系下的q轴电压波形的点选框,这样就能通过选择后在波形显示窗口显示对应选择的用于选择显示永磁同步电机定子在两相旋转坐标系下的d轴电压波形图或者用于选择显示永磁同步电机定子在两相旋转坐标系下的q轴电压波形图。As shown in Figure 1, the permanent magnet synchronous motor stator voltage detection system under two-phase conversion includes first electromagnetic induction voltage sensors 1 and second electromagnetic induction voltage sensors 1 and second Electromagnetic induction voltage sensor 2, the first electromagnetic induction voltage sensor 1 and the second electromagnetic induction voltage sensor 2 can respectively induce the voltage of the two-phase winding, the first electromagnetic induction voltage sensor 1 and the second electromagnetic induction voltage sensor 2 The electromagnetic induction voltage sensor 2 is respectively connected with the first signal receiving pin 5 and the second signal receiving pin 6 of the DSP-based data acquisition system 4 with the serial communication interface module, and the described DSP-based data acquisition system 4 is also connected with the host computer 9 through the serial data communication interface 8, the host computer 9 has a permanent magnet synchronous motor stator voltage detection module 10 under the two-phase conversion, and the permanent magnet synchronous motor under the two-phase conversion The synchronous motor stator voltage detection module 10 includes a three-phase rotating coordinate to two-phase rotating coordinate transformation module 11, and the host computer 9 also includes a VISA module. The stator voltage detection module 10 of the permanent magnet synchronous motor under the two-phase conversion also includes a man-machine interface, and the man-machine interface includes an operation interface part and a display interface part, and the operation interface part is for operating After the operation of the interface, the permanent magnet synchronous motor stator voltage detection module 10 under the two-phase conversion can send instructions to the upper computer 9; the display interface part is divided into a waveform display part and an instrument display part, and the waveform display part Part of it can detect the entire change process of the voltage data of the stator of the permanent magnet synchronous motor in the two-phase rotating coordinate system within the selected range; the instrument display part can stably display the stator of the permanent magnet synchronous motor in the two-phase rotating coordinate system The voltage data below. The waveform display part displays the amplitude-time curve of the stator voltage of the permanent magnet synchronous motor through the waveform display window, and the instrument display part includes two arc-shaped scale areas, and the two arc-shaped scales The regions are respectively used to indicate the d-axis voltage value range of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system and the q-axis voltage value range of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system. The two arcs A pointer-like icon is set below each of the two arc-shaped scale areas, and a text box for displaying the d-axis voltage value of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system is respectively set above the two arc-shaped scale areas. And the text box of the q-axis voltage value under the two-phase rotating coordinate system. The operation interface part includes a serial port parameter setting part, a waveform selection part, a waveform adjustment part, a control part and a waveform display parameter setting part, and the serial port parameter setting part is used for initializing the parameters of the serial port communication, and the serial port The parameter setting part includes a selection box for serial port number selection and a text box for setting the serial port communication baud rate, and the preset selection value in the selection box for serial port number selection is the upper computer 9 identifiable serial port number, the waveform display parameter setting part includes a text box used to set the conversion mode of the data IQ format, a text box used to set the buffer size and a text box used to set the sampling frequency, the said The waveform adjustment part includes the selection button for selecting the channel of the DSP-based data acquisition system, the cursor switch button for selecting whether to measure the amplitude of the selected channel of the DSP-based data acquisition system, and the cursor switch button for selecting whether to The cursor switch button for measuring the time of the channel of the selected DSP-based data acquisition system, the text box used to display the amplitude of the selected DSP-based data acquisition system channel, and the text box used to display the selected DSP-based data acquisition system The text box for the time of the channel of the data acquisition system, the text box for setting the vernier scale value, and the left and right bars for waveform movement. The control part includes a start button, a pause button and a stop button. The start button The button, the pause button and the stop button respectively execute the control of starting, suspending and terminating the measured waveform. The waveform selection part includes the d-axis voltage for selecting and displaying the stator of the permanent magnet synchronous motor under the two-phase rotating coordinate system. The click box for the waveform and the click box for selecting and displaying the q-axis voltage waveform of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system, so that the corresponding selection can be displayed in the waveform display window after selection The d-axis voltage waveform diagram of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system or the q-axis voltage waveform diagram of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system can be selected and displayed.

所述的两相变换下的永磁同步电机定子电压检测系统的方法,步骤如下:The method for the stator voltage detection system of the permanent magnet synchronous motor under the two-phase conversion, the steps are as follows:

步骤1:首先启动两相变换下的永磁同步电机定子电压检测系统,第一电磁感应电压传感器1和第二电磁感应电压传感器2分别感应出所述的两相绕组的电压,以此对永磁同步电机定子的所述的两相绕组的电压进行数据采集,并把采集到的所述的两相绕组的电压值传递到基于DSP的数据采集系统4,并通过两相变换下的永磁同步电机定子电压检测模块10运行人机交互界面,在人机交互界面上串口参数设置部分选择串行端口号和串口通信波特率,并让串口通信波特率同基于DSP的数据采集系统4中的串行通信接口模块内设置的串口通信波特率一致;Step 1: First start the permanent magnet synchronous motor stator voltage detection system under two-phase conversion, the first electromagnetic induction voltage sensor 1 and the second electromagnetic induction voltage sensor 2 respectively sense the voltages of the two-phase windings, so as to measure the permanent magnet synchronous motor voltage. The voltage of the described two-phase winding of the magnetic synchronous motor stator is carried out data acquisition, and the voltage value of the described two-phase winding that gathers is delivered to the data acquisition system 4 based on DSP, and through the permanent magnet under two-phase transformation The synchronous motor stator voltage detection module 10 runs the man-machine interface, selects the serial port number and the serial port communication baud rate in the serial port parameter setting part of the man-machine interface, and makes the serial port communication baud rate the same as that of the DSP-based data acquisition system 4 The serial communication baud rate set in the serial communication interface module is consistent;

步骤2:在两相变换下的永磁同步电机定子电压检测模块10的其他地方对串口通信的奇偶校验位、数据比特位和停止位进行设置,所述的对串口通信的奇偶校验位、数据比特位和停止位设置的值分别同基于DSP的数据采集系统4中的串行通信接口模块内设置的串口通信的奇偶校验位、数据比特位和停止位设置的值一致;Step 2: In other places of the permanent magnet synchronous motor stator voltage detection module 10 under two-phase conversion, the parity bit, data bit and stop bit of the serial port communication are set, and the parity bit of the serial port communication is described , the value that data bit position and stop bit set are consistent with the parity check bit, data bit position and the value that stop bit set of the serial port communication that is set in the serial communication interface module in the data acquisition system 4 based on DSP respectively;

步骤3:另外在用来设置数据IQ格式的转换模式的文本框、用来设置缓存大小的文本框以及用来设置采样频率的文本框中分别进行对数据IQ格式的转换模式、缓存大小以及采样频率的设置,通过用来选择基于DSP的数据采集系统的通道的选择按钮进行对基于DSP的数据采集系统的通道的选择,通过用来选择是否对被选择的基于DSP的数据采集系统的通道的幅值进行测量的游标开关按钮、用来选择是否对被选择的基于DSP的数据采集系统的通道的时间进行测量的游标开关按钮以及用于设置游标刻度值的文本框分别进行是否对被选择的基于DSP的数据采集系统的通道的幅值进行测量做出选择、是否对被选择的基于DSP的数据采集系统的通道的时间进行测量做出选择以及设置游标刻度值;Step 3: In addition, in the text box used to set the conversion mode of the data IQ format, the text box used to set the cache size and the text box used to set the sampling frequency, respectively perform the conversion mode, cache size and sampling of the data IQ format Frequency setting, select the channel of the DSP-based data acquisition system through the selection button used to select the channel of the DSP-based data acquisition system, and select whether to select the channel of the selected DSP-based data acquisition system The cursor switch button for amplitude measurement, the cursor switch button for selecting whether to measure the time of the channel of the selected DSP-based data acquisition system, and the text box for setting the value of the cursor scale. Make a selection based on the amplitude of the channel of the DSP-based data acquisition system, whether to measure the time of the selected channel of the DSP-based data acquisition system, and set the vernier scale value;

步骤4:通过点选用于选择显示永磁同步电机定子在两相旋转坐标系下的d轴电压波形的点选框或者用于选择显示永磁同步电机定子在两相旋转坐标系下的q轴电压波形的点选框来选择在波形显示窗口显示的电压波形类别,这样就完成了初始化设置;Step 4: Click to select the checkbox for displaying the d-axis voltage waveform of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system or to select the q-axis for displaying the permanent magnet synchronous motor stator in the two-phase rotating coordinate system Click the check box of the voltage waveform to select the voltage waveform category displayed in the waveform display window, thus completing the initialization setting;

步骤5:然后当点击了开始按钮后,所述的两相变换下的永磁同步电机定子电压检测模块10就把测量指令通过串行数据通信的接口8发送到基于DSP的数据采集系统4,所述的测量指令包括有初始化设置的信息,并且两相变换下的永磁同步电机定子电压检测模块10在内存中设置有用来保存当前初始化设置的信息的数组,每次在保存当前初始化设置的信息之前,先把当前初始化设置的信息同上一次保存在该数组中的上一次初始化设置的信息相比较,如果有差异,就将当前初始化设置的信息保存到用来保存当前初始化设置的信息的数组中,如果没有差异,用来保存当前初始化设置的信息的数组的数据保持不变;Step 5: Then when the start button is clicked, the permanent magnet synchronous motor stator voltage detection module 10 under the two-phase conversion will send the measurement instruction to the data acquisition system 4 based on DSP through the serial data communication interface 8, The measurement instruction includes the information of initialization setting, and the permanent magnet synchronous motor stator voltage detection module 10 under the two-phase conversion is provided with an array for saving the information of the current initialization setting in the internal memory, each time when saving the current initialization setting Before information, first compare the information of the current initialization setting with the information of the last initialization setting saved in the array last time, if there is a difference, save the information of the current initialization setting to the array used to save the information of the current initialization setting In , if there is no difference, the data of the array used to save the information of the current initialization setting remains unchanged;

步骤6:当基于DSP的数据采集系统4接收到经由串行数据通信的接口8传递来的包括有初始化设置的信息的测量指令,就会根据初始化设置的信息中的选择在波形显示窗口显示的电压波形类别和对基于DSP的数据采集系统的通道的选择把实时采集的同电压波形类别相对应的电压数据通过选择的通道发送到上位机9中;Step 6: When the DSP-based data acquisition system 4 receives the measurement instruction including the information of the initialization setting transmitted via the interface 8 of the serial data communication, it will display in the waveform display window according to the selection in the information of the initialization setting The voltage waveform category and the channel selection of the DSP-based data acquisition system send the voltage data corresponding to the voltage waveform category collected in real time to the upper computer 9 through the selected channel;

步骤7:上位机9接收到电压数据后,两相变换下的永磁同步电机定子电压检测模块10就设置缓存区来存储接收到的电压数据,串口通信每次以4个字节为一组的收发数据,接收到的电压输数据为IQ格式的数据,这样再经过格式转化将接收到的电压输数据转换成普通十进制有符号数所表示的波形真实数据,格式转化的具体方式为先判断接收到的电压输数据的正负号属性来导出有符号数,有符号数再经过逆运算即可得到波形真实数据,所述的波形真实数据包括永磁同步电机定子的所述的两相绕组的电压值,再通过永磁同步电机定子的三相绕组的电压值之和为0的条件就能导出永磁同步电机定子的三相绕组中的另外一相绕组的电压值,所述的永磁同步电机定子的三相绕组中的A相绕组的电压值、B相绕组的电压值和C组绕组的电压值分别表示为Va、Vb和Vc,两相变换下的永磁同步电机定子电压检测模块10中的三相旋转坐标到两相旋转坐标变换模块11根据永磁同步电机定子的三相绕组中的A相绕组的电压值、B相绕组的电压值和C组绕组的电压值,所述的永磁同步电机定子的三相绕组中的A相绕组的电压值、B相绕组的电压值和C组绕组的电压值按照公式(1)和公式(2)导出永磁同步电机定子在两相旋转坐标系下的d轴电压值以及在两相旋转坐标系下的q轴电压值,所述的永磁同步电机定子在两相静止坐标系下的a轴电压值以及在两相静止坐标系下的β轴电压值分别为Va和Vβ,所述的永磁同步电机定子在两相旋转坐标系下的d轴电压值以及在两相旋转坐标系下的q轴电压值分别为Vd和Vq,θ表示d轴同a轴的夹角:Step 7: After the host computer 9 receives the voltage data, the stator voltage detection module 10 of the permanent magnet synchronous motor under two-phase conversion sets a buffer area to store the received voltage data, and the serial port communication uses 4 bytes as a group each time The received and received voltage input data is data in IQ format, so that the received voltage input data is converted into real waveform data represented by ordinary decimal signed numbers after format conversion. The specific method of format conversion is first judged The sign attribute of the received voltage input data is used to derive the signed number, and the signed number can be inversely calculated to obtain the real waveform data. The real waveform data includes the two-phase winding of the stator of the permanent magnet synchronous motor The voltage value of the permanent magnet synchronous motor stator, and then through the condition that the sum of the voltage values of the three-phase windings of the permanent magnet synchronous motor stator is 0, the voltage value of the other phase winding in the three-phase winding of the permanent magnet synchronous motor stator can be derived. Among the three-phase windings of the magnetic synchronous motor stator, the voltage value of the A-phase winding, the voltage value of the B-phase winding and the voltage value of the C-group winding are expressed as V a , V b and V c respectively. The permanent magnet synchronous The three-phase rotating coordinate in the motor stator voltage detection module 10 is converted to the two-phase rotating coordinate conversion module 11 according to the voltage value of the A-phase winding in the three-phase winding of the permanent magnet synchronous motor stator, the voltage value of the B-phase winding and the voltage value of the C group winding Voltage value, the voltage value of the A-phase winding in the three-phase winding of the permanent magnet synchronous motor stator, the voltage value of the B-phase winding and the voltage value of the C group winding derive permanent magnet according to formula (1) and formula (2) The d-axis voltage value of the synchronous motor stator under the two-phase rotating coordinate system and the q-axis voltage value under the two-phase rotating coordinate system, the a-axis voltage value of the permanent magnet synchronous motor stator under the two-phase stationary coordinate system and The β-axis voltage values in the two-phase stationary coordinate system are V a and V β respectively, and the d-axis voltage values of the permanent magnet synchronous motor stator in the two-phase rotating coordinate system and q in the two-phase rotating coordinate system The axial voltage values are V d and V q respectively, and θ represents the angle between the d axis and the a axis:

VV αα VV ββ == 22 33 11 -- 11 // 22 -- 11 // 22 00 33 // 22 -- 33 // 22 VV aa VV bb VV cc -- -- -- (( 11 ))

VV dd VV qq == coscos θθ sinsin θθ -- sinsin θθ coscos θθ VV αα VV ββ -- -- -- (( 22 ))

所述的永磁同步电机定子在两相旋转坐标系下的d轴电压值以及在两相旋转坐标系下的q轴电压值保存于缓存区中以备生成观测波形,在数据存放时,每一次循环,数组都会经过向后移位将新读取到的数据存放在缓存区最前面,数组尾部移出的数据将被剔除;The d-axis voltage value of the permanent magnet synchronous motor stator under the two-phase rotating coordinate system and the q-axis voltage value under the two-phase rotating coordinate system are stored in the buffer area in order to prepare for generating observation waveforms. When the data is stored, each In a loop, the array will be shifted backwards to store the newly read data at the front of the buffer, and the data moved out from the end of the array will be removed;

步骤8:把缓存区中的所述的永磁同步电机定子在两相旋转坐标系下的d轴电压值或者在两相旋转坐标系下的q轴电压值送到波形显示窗口针对对应的永磁同步电机的定子电压以幅值-时间曲线的形式进行显示,或者在仪器显示部分通过指针状图标在圆弧状刻度区域内标示并在对应的用来显示所述的永磁同步电机定子在两相旋转坐标系下的d轴电压值的文本框或者在两相旋转坐标系下的q轴电压值的文本框中显示电压值。Step 8: Send the d-axis voltage value of the permanent magnet synchronous motor stator in the buffer area under the two-phase rotating coordinate system or the q-axis voltage value under the two-phase rotating coordinate system to the waveform display window for the corresponding permanent magnet synchronous motor. The stator voltage of the magnetic synchronous motor is displayed in the form of an amplitude-time curve, or in the display part of the instrument, it is marked in the arc-shaped scale area by a pointer icon and is used to display the corresponding permanent magnet synchronous motor stator. The voltage value is displayed in the text box of the d-axis voltage value in the two-phase rotating coordinate system or in the text box of the q-axis voltage value in the two-phase rotating coordinate system.

以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质,在本发明的精神和原则之内,对以上实施例所作的任何简单的修改、等同替换与改进等,均仍属于本发明技术方案的保护范围之内。The above description is only a preferred embodiment of the present invention, and does not limit the present invention in any form. Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. Anyone familiar with this field Those skilled in the art, without departing from the scope of the technical solution of the present invention, may use the technical content disclosed above to make some changes or modify equivalent embodiments with equivalent changes, but as long as they do not depart from the technical solution of the present invention, according to the technical content of the present invention Within the spirit and principles of the present invention, any simple modifications, equivalent replacements and improvements made to the above embodiments still fall within the scope of protection of the technical solutions of the present invention.

Claims (5)

1. the permanent-magnetic synchronous motor stator voltage detecting system under a phase inversion, it is characterized in that being included in other the first electromagnetic induction voltage sensor and the second electromagnetic induction voltage sensor of being respectively arranged with of two phase windings in three phase windings of permanent-magnetic synchronous motor stator, the first described electromagnetic induction voltage sensor and the second electromagnetic induction voltage sensor can induce respectively the voltage of two described phase windings, the first described electromagnetic induction voltage sensor is connected with secondary signal reception pin with the first signal reception pin of the data acquisition system (DAS) based on DSP with serial communication interface module respectively with the second electromagnetic induction voltage sensor, the described data acquisition system (DAS) based on DSP is also connected with host computer by the interface of serial data communication, described host computer is with the permanent-magnetic synchronous motor stator voltage detection module under two phase inversion, permanent-magnetic synchronous motor stator voltage detection module under two described phase inversion includes three cordic phase rotators to two-phase rotating coordinate transformation module, in described host computer, also include VISA module.
2. the permanent-magnetic synchronous motor stator voltage detecting system under two phase inversion according to claim 1, it is characterized in that the permanent-magnetic synchronous motor stator voltage detection module under two described phase inversion also includes human-computer interaction interface, described human-computer interaction interface comprises operation interface part and display interface part, and described operation interface is partly for just sending instruction to host computer through the permanent-magnetic synchronous motor stator voltage detection module under two phase inversion after the carrying out operation by operation interface; Described display interface is partly divided into waveform display section and instrument display section, the whole change procedure of the voltage data of the stator that described waveform display section can detect selected scope interior permanent-magnet synchronous motor under two-phase rotating coordinate system; The data of the voltage of stator under two-phase rotating coordinate system that shows permagnetic synchronous motor can be stablized in described instrument display section.
3. the permanent-magnetic synchronous motor stator voltage detecting system under two phase inversion according to claim 2, it is characterized in that described waveform display section shows the amplitude-time curve of the stator voltage of permagnetic synchronous motor by waveform display window, described instrument display section includes two circular-arc scale zones, two described circular-arc scale zones are used for respectively representing d shaft voltage value scope and the permanent-magnetic synchronous motor stator q shaft voltage value scope under two-phase rotating coordinate system of permanent-magnetic synchronous motor stator under two-phase rotating coordinate system, the below of two described circular-arc scale zones is provided with separately one and refers to pin icons, the top of two described circular-arc scale zones is respectively arranged with for showing the text box of the d shaft voltage value of permanent-magnetic synchronous motor stator under two-phase rotating coordinate system and the text box of the q shaft voltage value under two-phase rotating coordinate system.
4. the permanent-magnetic synchronous motor stator voltage detecting system under two phase inversion according to claim 3,
It is characterized in that described operation interface partly comprises that serial ports parameter arranges part, waveform is selected part, waveform adjustment member, control section and waveform display parameter arrange part, described serial ports parameter arranges part for the initialization to the parameter of serial communication, described serial ports parameter setting unit is divided and is comprised and be useful on choice box that serial port number selects and for the text box of serial communication baud rate is set, the described default selective value of choice box of selecting for serial port number is the serial port number that host computer can be identified, described waveform display parameter setting unit is divided and is comprised for the text box of the translative mode of data I Q form is set, be used for the text box that the text box of cache size is set and is used for arranging sample frequency, described waveform adjustment member comprises for selecting the selection button of the passage of the data acquisition system (DAS) based on DSP, be used for selecting the vernier the shift knob whether amplitude of the passage of the selecteed data acquisition system (DAS) based on DSP is measured, be used for selecting the vernier shift knob of whether time of the passage of the selecteed data acquisition system (DAS) based on DSP being measured, be used for showing the text box of amplitude of the passage of the selecteed data acquisition system (DAS) based on DSP, be used for showing the text box of time of the passage of the selecteed data acquisition system (DAS) based on DSP, for the left and right tie rod that the text box of vernier graduation value is set and moves for waveform, described control section comprises start button, pause button and stop button, described start button, pause button and stop button are carried out and are started tested waveform respectively, the control of operation suspension and termination operation, described waveform selection portion divide comprise for select to show the d shaft voltage waveform of permanent-magnetic synchronous motor stator under two-phase rotating coordinate system click frame and for selecting to show the frame that clicks of the q shaft voltage waveform of permanent-magnetic synchronous motor stator under two-phase rotating coordinate system, so just can by after selecting waveform display window show corresponding selection for selecting to show the d shaft voltage oscillogram of permanent-magnetic synchronous motor stator under two-phase rotating coordinate system or for selecting to show the q shaft voltage oscillogram of permanent-magnetic synchronous motor stator under two-phase rotating coordinate system.
5. the method for the permanent-magnetic synchronous motor stator voltage detecting system under two phase inversion according to claim 4, is characterized in that, step is as follows:
Step 1: first start the permanent-magnetic synchronous motor stator voltage detecting system under two phase inversion, the first electromagnetic induction voltage sensor and the second electromagnetic induction voltage sensor induce respectively the voltage of two described phase windings, voltage with this to the two described phase windings of permanent-magnetic synchronous motor stator carries out data acquisition, and the magnitude of voltage of the two described phase windings that collect is delivered to the data acquisition system (DAS) based on DSP, and by the permanent-magnetic synchronous motor stator voltage detection module operation human-computer interaction interface under two phase inversion, serial ports parameter setting unit component selections serial port number and serial communication baud rate on human-computer interaction interface, and make serial communication baud rate consistent with the serial communication baud rate arranging in the serial communication interface module in the data acquisition system (DAS) based on DSP,
Step 2: other places of the permanent-magnetic synchronous motor stator voltage detection module under two phase inversion arrange the parity check bit of serial communication, data bits and position of rest, the described value that the value of the parity check bit of serial communication, data bits and position of rest setting is arranged with parity check bit, data bits and the position of rest of the serial communication arranging in the serial communication interface module in the data acquisition system (DAS) based on DSP is respectively consistent;
Step 3: in addition at the text box that is used for arranging the translative mode of data I Q form, be used for that the text box of cache size is set and be used for arranging in the text box of sample frequency and carry out respectively the translative mode to data IQ form, the setting of cache size and sample frequency, by being used for selecting the selection button of the passage of the data acquisition system (DAS) based on DSP to carry out the selection to the passage of the data acquisition system (DAS) based on DSP, by the vernier shift knob that is used for selecting whether the amplitude of the passage of the selecteed data acquisition system (DAS) based on DSP being measured, whether be used for selecting the vernier shift knob that the time of the passage of the selecteed data acquisition system (DAS) based on DSP is measured and carry out respectively whether the amplitude measurement of the passage of the selecteed data acquisition system (DAS) based on DSP being made a choice for the text box of vernier graduation value is set, whether the time measurement of the passage of the selecteed data acquisition system (DAS) based on DSP is made a choice and vernier graduation value is set,
Step 4: be selected to and select to show clicking frame or for selecting the frame that clicks that shows the q shaft voltage waveform of permanent-magnetic synchronous motor stator under two-phase rotating coordinate system to be chosen in the voltage waveform classification that waveform display window shows, so just having completed initialization setting of the d shaft voltage waveform of permanent-magnetic synchronous motor stator under two-phase rotating coordinate system by point;
Step 5: then after having clicked start button, permanent-magnetic synchronous motor stator voltage detection module under two described phase inversion just sends to the data acquisition system (DAS) based on DSP measuring the interface of instruction by serial data communication, described measurement instruction includes the information that initialization arranges, and the permanent-magnetic synchronous motor stator voltage detection module under two phase inversion is provided with for preserving the array of the information of current initialization setting in internal memory, at every turn before preserving the information of current initialization setting, the information that first information of current initialization setting is kept to the last initialization setting in this array with the last time is compared, if variant, just the information of current initialization setting is saved in for preserving in the array of the information that current initialization arranges, if there is no difference, the data of array that are used for preserving the information of current initialization setting remain unchanged,
Step 6: when the data acquisition system (DAS) based on DSP receives the measurement instruction that includes the information that initialization arranges that comes via interface 8 transmission of serial data communication, will the corresponding voltage data of the same voltage waveform classification of Real-time Collection be sent in host computer by the passage of selecting according to the selection of the passage that is chosen in voltage waveform classification that waveform display window shows and data acquisition system (DAS) to based on DSP in the information of initialization setting;
Step 7: host computer receives after voltage data, permanent-magnetic synchronous motor stator voltage detection module under two phase inversion just arranges the voltage data that buffer area comes storing received to arrive, serial communication be take the transceiving data that 4 bytes are a group at every turn, the voltage transmission of data receiving is the data of IQ form, through format conversion, convert the voltage transmission of data receiving to common decimal system signed number represented waveform True Data so again, the concrete mode of format conversion derives signed number for first judging the sign attribute of the voltage transmission of data receiving, signed number can obtain waveform True Data through inverse operation again, described waveform True Data comprises the magnitude of voltage of the two described phase windings of permanent-magnetic synchronous motor stator, the condition that the magnitude of voltage sum of three phase windings by permanent-magnetic synchronous motor stator is 0 more just can derive the magnitude of voltage of the other phase winding in three phase windings of permanent-magnetic synchronous motor stator, the magnitude of voltage of the A phase winding in three phase windings of described permanent-magnetic synchronous motor stator, the magnitude of voltage of the magnitude of voltage of B phase winding and C group winding is expressed as V a, V band V c, three cordic phase rotators in permanent-magnetic synchronous motor stator voltage detection module under two phase inversion to two-phase rotating coordinate transformation module according to the magnitude of voltage of the A phase winding in three phase windings of permanent-magnetic synchronous motor stator, the magnitude of voltage of the magnitude of voltage of B phase winding and C group winding, the magnitude of voltage of the A phase winding in three phase windings of described permanent-magnetic synchronous motor stator, the magnitude of voltage of the magnitude of voltage of B phase winding and C group winding is derived the d shaft voltage value of permanent-magnetic synchronous motor stator under two-phase rotating coordinate system and the q shaft voltage value under two-phase rotating coordinate system according to formula (1) and formula (2), the a shaft voltage value of described permanent-magnetic synchronous motor stator under two-phase rest frame and the β shaft voltage value under two-phase rest frame are respectively V aand V β, the d shaft voltage value of described permanent-magnetic synchronous motor stator under two-phase rotating coordinate system and the q shaft voltage value under two-phase rotating coordinate system are respectively V dand V q, θ represents that d axle is with the angle of a axle:
V α V β = 2 3 1 - 1 / 2 - 1 / 2 0 3 / 2 - 3 / 2 V a V b V c - - - ( 1 )
V d V q = cos θ sin θ - sin θ cos θ V α V β - - - ( 2 )
The d shaft voltage value of described permanent-magnetic synchronous motor stator under two-phase rotating coordinate system and the q shaft voltage value under two-phase rotating coordinate system be stored in buffer area in order to generating observation waveform, when deposit data, circulation each time, array all can through to backward shift by the deposit data newly reading in buffer area foremost, the data that array afterbody shifts out are by disallowable;
Step 8: the d shaft voltage value the described permanent-magnetic synchronous motor stator in buffer area under two-phase rotating coordinate system or the q shaft voltage value under two-phase rotating coordinate system are delivered to waveform display window the form with amplitude-time curve is shown for the stator voltage of corresponding permagnetic synchronous motor, or in instrument display section by referring to that pin icons indicates in circular-arc scale zone and showing magnitude of voltage at the permanent-magnetic synchronous motor stator being used for described in showing of correspondence in the text box of d shaft voltage value under two-phase rotating coordinate system or the text box of the q shaft voltage value under two-phase rotating coordinate system.
CN201410363997.7A 2014-07-28 2014-07-28 Permanent-magnetic synchronous motor stator voltage detecting system and method under two phase inversions Expired - Fee Related CN104166040B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410363997.7A CN104166040B (en) 2014-07-28 2014-07-28 Permanent-magnetic synchronous motor stator voltage detecting system and method under two phase inversions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410363997.7A CN104166040B (en) 2014-07-28 2014-07-28 Permanent-magnetic synchronous motor stator voltage detecting system and method under two phase inversions

Publications (2)

Publication Number Publication Date
CN104166040A true CN104166040A (en) 2014-11-26
CN104166040B CN104166040B (en) 2017-11-10

Family

ID=51909945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410363997.7A Expired - Fee Related CN104166040B (en) 2014-07-28 2014-07-28 Permanent-magnetic synchronous motor stator voltage detecting system and method under two phase inversions

Country Status (1)

Country Link
CN (1) CN104166040B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787355A (en) * 2005-06-16 2006-06-14 谭启仁 Monolithic apparatus PWM Controller for brushless DC motor of sensor-free electrical vehicle
CN102109575A (en) * 2009-12-25 2011-06-29 上海微电子装备有限公司 Method, device and system for testing linear motor based on virtual instrument
US20120217915A1 (en) * 2011-02-28 2012-08-30 Long Wu System for Calibrating an Electrical Control System

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1787355A (en) * 2005-06-16 2006-06-14 谭启仁 Monolithic apparatus PWM Controller for brushless DC motor of sensor-free electrical vehicle
CN102109575A (en) * 2009-12-25 2011-06-29 上海微电子装备有限公司 Method, device and system for testing linear motor based on virtual instrument
US20120217915A1 (en) * 2011-02-28 2012-08-30 Long Wu System for Calibrating an Electrical Control System

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谭斐文: "永磁同步伺服电机自动测试系统的设计研究", 《中国优秀硕士学位论文全文数据库工程科技Ⅱ辑》 *

Also Published As

Publication number Publication date
CN104166040B (en) 2017-11-10

Similar Documents

Publication Publication Date Title
CN102156223B (en) Novel thyristor-grade impedance testing device for direct-current converter valve
CN102426325B (en) A kind of testing arrangement of arrangement of oil paper insulation frequency domain spectrum
CN108429493A (en) A kind of caliberating device and its method of three-phase permanent magnet synchronous motor initial zero position
CN104655339A (en) Cogging-torque test method for alternating-current permanent-magnet synchronous servo motor
CN104181467B (en) Portable linear motor multi-axis linkage measuring and controlling system
CN102539864B (en) Digital oscilloscope and signal measurement method
US20230391584A1 (en) Method and apparatus for monitoring operational state of elevator system
CN113965128B (en) Permanent magnet motor integrated driving and detecting system and method
CN104181466B (en) Stator current detection system and method for permanent magnet synchronous motor under 3S/2S transformation
CN104166040B (en) Permanent-magnetic synchronous motor stator voltage detecting system and method under two phase inversions
CN202421332U (en) High precision electric parameter analyzer
CN202693766U (en) Motor parameter detector
CN104201951B (en) The control system for permanent-magnet synchronous motor and method of the phase back-emf of visual control two
CN104166791B (en) Based on visual permanent-magnet synchronous motor rotor position angle estimating system and method
CN104166010A (en) Visualization-based rotation speed interruption type detection system and method of PMSM
CN104166041B (en) Permanent-magnetic synchronous motor stator voltage detecting system and method are changed in 3S/2S changes
CN104166009A (en) Visualization-based rotation speed polling type detection system and method of PMSM
CN104166039B (en) Based on visual permanent-magnetic synchronous motor stator current detecting system and method
CN103809000A (en) Data processing method based on servo drive unit
CN202661592U (en) Automatic pulse real-time field effect transistor threshold-voltage parameter measuring device
CN104165602A (en) Visualization-based PMSM rotor position angle detection system and method
CN104199336B (en) Visualization based permanent magnet synchronous motor torque detecting system and method
CN106770416A (en) It is a kind of based on LabVIEW's129Xe nucleon relaxation time measuring systems
CN104167970B (en) Vector control system and method for permanent magnet synchronous motor with visual monitoring of back EMF
Huping et al. The power quality monitoring system based on virtual instrument

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171110