CN108039982A - A kind of DSP platform control system Bandwidth Measurement Method based on network interface - Google Patents

A kind of DSP platform control system Bandwidth Measurement Method based on network interface Download PDF

Info

Publication number
CN108039982A
CN108039982A CN201711250745.3A CN201711250745A CN108039982A CN 108039982 A CN108039982 A CN 108039982A CN 201711250745 A CN201711250745 A CN 201711250745A CN 108039982 A CN108039982 A CN 108039982A
Authority
CN
China
Prior art keywords
frequency
signal
network interface
dsp
control system
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
CN201711250745.3A
Other languages
Chinese (zh)
Other versions
CN108039982B (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.)
Tianjin Jinhang Institute of Technical Physics
Original Assignee
Tianjin Jinhang Institute of Technical Physics
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 Tianjin Jinhang Institute of Technical Physics filed Critical Tianjin Jinhang Institute of Technical Physics
Priority to CN201711250745.3A priority Critical patent/CN108039982B/en
Publication of CN108039982A publication Critical patent/CN108039982A/en
Application granted granted Critical
Publication of CN108039982B publication Critical patent/CN108039982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Abstract

The invention discloses a kind of DSP platform control system Bandwidth Measurement Method based on network interface, belong to automatic control system bandwidth measurement field, it is not accurate enough to solve measurement of the time domain approach to system bandwidth, the problem of frequency domain method or system are larger, cost is high or is caused distorted signals method by output condition restriction, this method produces sine sweep pumping signal using DSP, and the method for being exported control signal to host computer by network interface realizes control system bandwidth measurement.Sinusoidal excitation signal for frequency sweep is produced by DSP, without the dynamic signal analyzer that spare interface connection volume is larger;Swept frequency excitation signal, control signal and swept frequency value are exported by network interface, ensure that signal is undistorted during high frequency frequency sweep;Host computer based on network interface will receive data and be exported by established form, and convenient relatively output signal output difference in magnitude and phase difference, system bandwidth respective frequencies point are very clear.

Description

A kind of DSP platform control system Bandwidth Measurement Method based on network interface
Technical field
The invention belongs to automatic control system bandwidth measurement field, it is related in DSP platform control system and is based on network interface System Bandwidth Measurement Method.
Background technology
When control system is more demanding to the response speed of signal in servo-actuated stabilized platform, it is necessary to system design in order to control Higher bandwidth.
Control system using DSP as main control chip can determine system band by the method for frequency response or step response It is wide.Usual step response can only estimate bandwidth value by empirical equation, and the method cannot in the case of controlled device has resonance Accurately whether definite resonant frequency point in bandwidth of operation, and control system has the risk for producing and shaking during normal work.By Dynamic signal analyzer can very easily complete system frequency response test, it is only necessary to according to system input/output signal amplitude Codomain setting dynamic signal analyzer parameter, but on condition that platform leaves signal input output interface, to ensure control System is connected with dynamic signal analyzer.Swept frequency excitation signal is completed by DSP to produce, and frequency sweep data are exported by serial ports, are used Matlab plotting modes analyze amplitude and the difference of phase and pumping signal can obtain system control bandwidth, this method connection letter List, realize conveniently, but frequency sweep data output rate is restricted by serial port baud rate, and when swept frequency is higher, output control signal is lost Very, it is impossible to correct measurement system bandwidth value.
In said system bandwidth determining method, measurement of the time domain approach to system bandwidth is not accurate enough, frequency domain method or is Uniting, larger, cost is high or is caused distorted signals by output condition restriction.
The content of the invention
In view of the above problems, the present invention proposes a kind of DSP platform control system Bandwidth Measurement Method based on network interface, use In the measurement for realizing control system bandwidth, network interface high transfer rate is avoided that distorted signals, ensure that the standard of system bandwidth measurement True property, practice result show that this method measuring system bandwidth has that connection is simple, realizes convenient characteristic.
The present invention technical solution be:A kind of DSP platform control system Bandwidth Measurement Method based on network interface, the party Method includes the description below:
(1) DSP generates pumping signal
DSP produces swept frequency excitation signal, and pumping signal is sinusoidal excitation signal;
(2) control system is according to pumping signal frequency sweep
Control system calculates motor control signal, abbreviation control signal according to input signal, and control signal drives negative Carry tracking pumping signal and carry out sine sweep movement, periodic recording pumping signal, control signal and frequency sweep frequency are pressed during frequency sweep Rate, and encapsulated three as frequency sweep data;
(3) frequency sweep data are exported by network interface
Using pumping signal as command value, control signal is worth in response, according to command value, the priority of response and frequency Sequential organization becomes network interface data frame, and network interface data frame is sent to host computer according to DSP calculating cycles;
(4) host computer receives and resolves frequency sweep data
Host computer sends frequency sweep control command and data, receiving frequency-sweeping data, and completes data calculation according to given protocol, Preserve to form data file by column vector form;
(5) frequency sweep data analysis
Data file is imported frequency sweep three curves of data are drawn in matlab, when response decays to bid value At 0.707 times, corresponding frequency values are as bandwidth frequency ω Hz.
Preferably, a kind of above-mentioned DSP platform control system Bandwidth Measurement Method based on network interface, it is characterised in that root Determine that DSP calculates frequency according to Control System Design bandwidth, calculate 10 times of frequency system design bandwidth in order to control.
Preferably, above-mentioned a kind of DSP platform control system Bandwidth Measurement Method based on network interface, it is characterised in that according to According to formula:ControlData=Asin (2 π ft) generates sinusoidal excitation signal and calculates control signal, wherein Signal, A are excitation signal amplitude to ControlData in order to control, and f is sweep sine frequency, and t is DSP calculating cycles.
Preferably, above-mentioned a kind of DSP platform control system Bandwidth Measurement Method based on network interface, it is characterised in that swash Encourage signal amplitude A, frequency sweep initial frequency value fstart, frequency sweep terminate frequency values fstopWith frequency sweep change step Δ f by host computer Set and send to DSP.
Preferably, above-mentioned a kind of DSP platform control system Bandwidth Measurement Method based on network interface, it is characterised in that sweep Each Frequency point carries out p sinusoidal frequency response test during frequency.
Preferably, above-mentioned a kind of DSP platform control system Bandwidth Measurement Method based on network interface, it is characterised in that swash Encourage signal amplitude A, frequency sweep initial frequency value fstart, frequency sweep terminate frequency values fstopIt is host computer with frequency sweep change step Δ f The data of transmission, while host computer sends the frequency sweep control command that frequency sweep starts, frequency sweep terminates.
Preferably, above-mentioned a kind of DSP platform control system Bandwidth Measurement Method based on network interface, it is characterised in that press Column vector form preserves to form data file:Command value is first row, response is secondary series and frequency values are the 3rd row.
This method produces sine sweep pumping signal using DSP, is exported control signal to the side of host computer by network interface Method realizes control system bandwidth measurement, its feature is, the sinusoidal excitation signal for frequency sweep is produced by DSP, is connect without reserved The larger dynamic signal analyzer of mouth connection volume;Swept frequency excitation signal, control signal and swept frequency value are exported by network interface, are protected Signal is undistorted when demonstrate,proving high frequency frequency sweep;Host computer based on network interface will receive data and be exported by established form, convenient relatively to export Export signal amplitude difference and phase difference, system bandwidth respective frequencies point are very clear.
Compared with the prior art, the invention has the advantages that:
1) pumping signal is independently generated using DSP, saves the use of apparatus and equipment, reduce experimental system scale.
2) data transfer is completed using network interface, avoids the defects of serial port baud rate is low, high speed data transfer ensures frequency sweep During export signal it is undistorted.
3) swept-frequency signal amplitude and frequency can be adjusted by upper computer software, enable experimental system according to actual control system Frequency sweep scheme is formulated, there is stronger versatility.
Brief description of the drawings
Fig. 1 is a kind of system composition of DSP platform control system Bandwidth Measurement Method based on network interface.
Fig. 2 is pumping signal product process figure.
Fig. 3 is network data frame composition figure in DSP.
Fig. 4 is upper computer software data processing and preserves flow chart.
Embodiment
The present invention is described in further detail below.
A kind of DSP platform control system Bandwidth Measurement Method based on network interface, this method comprise the following steps:
(1) DSP generates sinusoidal excitation signal
Determine that DSP calculates frequency according to Control System Design bandwidth and aromatic sampling thheorem, it is considered that calculating frequency is It can ensure that frequency sweep result is accurate during 10 times of design bandwidth.According to formula:ControlData=Asin (2 π ft) generations are sinusoidal to swash Encourage signal and calculate control signal, signal, A are excitation signal amplitude to wherein ControlData in order to control, and f is swept-sine Signal frequency, t are DSP calculating cycles, A, fstartInitial frequency value, fstopTerminate frequency values and change step Δ f by upper Machine sets and sends to DSP, and each Frequency point carries out p sinusoidal frequency response test during frequency sweep;It is each during frequency sweep Frequency point carries out multiple sinusoidal frequency response test.
(2) control system is according to pumping signal frequency sweep
Control system calculates motor control signal according to input signal, and control signal drives load tracking pumping signal Carry out sine sweep movement, press periodic recording pumping signal, control signal and swept frequency during frequency sweep, and using three as Frequency sweep data encapsulate;
(3) frequency sweep data are exported by network interface
Using pumping signal as command value, control signal is worth in response, according to command value, the priority of response and frequency Sequential organization becomes network interface data frame, and network interface data frame is sent to host computer according to DSP calculating cycles;
(4) host computer receives and resolves frequency sweep data
Host computer be based on MFC using CSocket classes complete, using in udp protocol SendTo functions send control command with Data, OnReceive function receiving frequency-sweeping data, and according to given protocol complete data calculation, by column vector form preserve to File;
(5) frequency sweep data analysis
Data file is imported frequency sweep three curves of data are drawn in matlab, when response decays to bid value At 0.707 times, corresponding frequency values are as bandwidth frequency ω Hz.
Also there is following content:
(1) it is made of using the system of this method three parts:Host computer, DSP and equipment under test.Wherein, host computer It is responsible for receiving frequency-sweeping and resolves frequency sweep data, and data is write into file according to specified format;DSP control system is responsible for generation and is swept Frequency pumping signal, and motor control signal driving motor is calculated according to pumping signal, while frequency sweep data sending is organized to upper Computer;Equipment under test receives motor control signal, and tracks pumping signal according to control signal, completes frequency sweep action.System Composition is as shown in Figure 1;
(2) generating process of pumping signal using f and Δ f as shown in Fig. 2, calculate pumping signal current frequency fc, profit Use fcCalculate sinusoidal excitation signal cycle T0, work as T0Change seasonal N=0, M=0, T=Nt, and wherein N is DSP calculating cycles Number, calculates plus 1, MS is frequency response number, each sinusoidal cycles add 1, that is, work as T=T every time0When M add 1 as M=p fc=fc+ Δ f, realizes the frequency response signal per p sinusoidal cycles Frequency;
(3) by the frequency sweep command value A in frequency sweep datac, response AbMultiply respectively according to required precision is retained with frequency value F With scale value 10x, successively write network interface send caching array SendData [m], according to DSP calculating cycles by network interface send to Host computer, data frame composition form are as shown in Figure 3;
(4) upper computer software receives and resolves frequency sweep data flow as shown in figure 4, concrete methods of realizing is:Host computer is soft Part is based on udp protocol, and SendTo () function, which is sent, in socket (Socket) starts frequency sweep order, and sends A, f and Δ F, while receive network data using OnReceive () function in Socket, network data is unpacked to obtain frequency command value, sound It should be worth and frequency values, sentence scale value 10 respectivelyxObtain Ac、AbAnd F, will by column vector using Write () function in CFile classes Data are written in column in data file ScanData.txt, wherein AcFor first row, AbFor secondary series, F is the 3rd row.
(5) ScanData.txt files are imported in matlab, draws frequency sweep three curves of data, observe Ab=0.707 ×AcWhen frequency values be denoted as FωAs control system bandwidth value.

Claims (7)

1. a kind of DSP platform control system Bandwidth Measurement Method based on network interface, it is characterised in that this method is included in following Hold:
(1) DSP generates pumping signal
DSP produces swept frequency excitation signal, and pumping signal is sinusoidal excitation signal;
(2) control system is according to pumping signal frequency sweep
Control system according to input signal calculate motor control signal, abbreviation control signal, control signal band dynamic load with Track pumping signal carries out sine sweep movement, and periodic recording pumping signal, control signal and swept frequency are pressed during frequency sweep, and Encapsulated three as frequency sweep data;
(3) frequency sweep data are exported by network interface
Using pumping signal as command value, control signal is worth in response, according to command value, the sequencing of response and frequency Tissue becomes network interface data frame, and network interface data frame is sent to host computer according to DSP calculating cycles;
(4) host computer receives and resolves frequency sweep data
Host computer sends frequency sweep control command and data, receiving frequency-sweeping data, and completes data calculation according to given protocol, by row Vector format preserves to form data file;
(5) frequency sweep data analysis
Data file is imported frequency sweep three curves of data are drawn in matlab, when response decays to 0.707 times of bid value When, corresponding frequency values are as bandwidth frequency ω Hz.
2. a kind of DSP platform control system Bandwidth Measurement Method based on network interface according to claim 1, its feature exist In determining that DSP calculates frequency according to Control System Design bandwidth, calculate 10 times of frequency system design bandwidth in order to control.
3. a kind of DSP platform control system Bandwidth Measurement Method based on network interface according to claim 1, its feature exist According to formula:ControlData=Asin (2 π ft) generates sinusoidal excitation signal and calculates control signal, wherein Signal, A are excitation signal amplitude to ControlData in order to control, and f is sweep sine frequency, and t is DSP calculating cycles.
4. a kind of DSP platform control system Bandwidth Measurement Method based on network interface according to claim 1, its feature exist In excitation signal amplitude A, frequency sweep initial frequency value fstart, frequency sweep terminate frequency values fstopWith frequency sweep change step Δ f by upper Position machine sets and sends to DSP.
5. a kind of DSP platform control system Bandwidth Measurement Method based on network interface according to claim 1, its feature exist In each Frequency point carries out p sinusoidal frequency response test during frequency sweep.
6. a kind of DSP platform control system Bandwidth Measurement Method based on network interface according to claim 1, its feature exist In excitation signal amplitude A, frequency sweep initial frequency value fstart, frequency sweep terminate frequency values fstopWith frequency sweep change step Δ f be on The data that position machine is sent, while host computer sends the frequency sweep control command that frequency sweep starts, frequency sweep terminates.
7. a kind of DSP platform control system Bandwidth Measurement Method based on network interface according to claim 1, its feature exist In preserving to form data file by column vector form:Command value is first row, response is secondary series and frequency values are the 3rd Row.
CN201711250745.3A 2017-12-01 2017-12-01 DSP platform control system bandwidth measuring method based on network port Active CN108039982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711250745.3A CN108039982B (en) 2017-12-01 2017-12-01 DSP platform control system bandwidth measuring method based on network port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711250745.3A CN108039982B (en) 2017-12-01 2017-12-01 DSP platform control system bandwidth measuring method based on network port

Publications (2)

Publication Number Publication Date
CN108039982A true CN108039982A (en) 2018-05-15
CN108039982B CN108039982B (en) 2021-09-10

Family

ID=62094653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711250745.3A Active CN108039982B (en) 2017-12-01 2017-12-01 DSP platform control system bandwidth measuring method based on network port

Country Status (1)

Country Link
CN (1) CN108039982B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109212413A (en) * 2018-08-14 2019-01-15 瑞声科技(新加坡)有限公司 Linear motor Bandwidth Measurement Method
CN109445769A (en) * 2018-10-16 2019-03-08 天津津航技术物理研究所 The test software development approach of dynamically load communication protocol based on database
CN109472846A (en) * 2018-12-27 2019-03-15 燕山大学 The method for obtaining Bode diagram with MATLAB processing frequency sweep data
CN112558586A (en) * 2020-11-30 2021-03-26 天津津航技术物理研究所 Embedded software-based frequency sweep test method for airborne stable platform
CN117516666A (en) * 2023-11-16 2024-02-06 北京首科实华自动化设备有限公司 Quality factor measuring equipment and method for coriolis flowmeter

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483582A (en) * 2014-12-29 2015-04-01 宁波海得工业控制系统有限公司 Servo driver bandwidth testing platform and method
CN104993764A (en) * 2015-07-07 2015-10-21 江西洪都航空工业集团有限责任公司 Motor controller based on parameter self-tuning and control method thereof
CN105044513A (en) * 2015-07-27 2015-11-11 中国科学院光电技术研究所 Quick frequency characteristic test system
CN106569476A (en) * 2016-10-20 2017-04-19 西安坤蓝电子技术有限公司 Self-detecting method for natural frequency of antenna shafting and bandwidth of control system
CN107015086A (en) * 2017-05-12 2017-08-04 珠海格力节能环保制冷技术研究中心有限公司 Test method, device, system and the equipment of bandwidth
KR20180125297A (en) * 2017-05-15 2018-11-23 한국과학기술원 Antenna radiation pattern measurement system using frequency modulated continuous wave and method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104483582A (en) * 2014-12-29 2015-04-01 宁波海得工业控制系统有限公司 Servo driver bandwidth testing platform and method
CN104993764A (en) * 2015-07-07 2015-10-21 江西洪都航空工业集团有限责任公司 Motor controller based on parameter self-tuning and control method thereof
CN105044513A (en) * 2015-07-27 2015-11-11 中国科学院光电技术研究所 Quick frequency characteristic test system
CN106569476A (en) * 2016-10-20 2017-04-19 西安坤蓝电子技术有限公司 Self-detecting method for natural frequency of antenna shafting and bandwidth of control system
CN107015086A (en) * 2017-05-12 2017-08-04 珠海格力节能环保制冷技术研究中心有限公司 Test method, device, system and the equipment of bandwidth
KR20180125297A (en) * 2017-05-15 2018-11-23 한국과학기술원 Antenna radiation pattern measurement system using frequency modulated continuous wave and method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109212413A (en) * 2018-08-14 2019-01-15 瑞声科技(新加坡)有限公司 Linear motor Bandwidth Measurement Method
CN109212413B (en) * 2018-08-14 2021-02-26 瑞声科技(新加坡)有限公司 Linear motor bandwidth measuring method
CN109445769A (en) * 2018-10-16 2019-03-08 天津津航技术物理研究所 The test software development approach of dynamically load communication protocol based on database
CN109445769B (en) * 2018-10-16 2021-08-06 天津津航技术物理研究所 Test software development method for dynamic loading communication protocol based on database
CN109472846A (en) * 2018-12-27 2019-03-15 燕山大学 The method for obtaining Bode diagram with MATLAB processing frequency sweep data
CN109472846B (en) * 2018-12-27 2022-11-29 燕山大学 Method for obtaining bode diagram by processing sweep frequency data by MATLAB
CN112558586A (en) * 2020-11-30 2021-03-26 天津津航技术物理研究所 Embedded software-based frequency sweep test method for airborne stable platform
CN117516666A (en) * 2023-11-16 2024-02-06 北京首科实华自动化设备有限公司 Quality factor measuring equipment and method for coriolis flowmeter

Also Published As

Publication number Publication date
CN108039982B (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN108039982A (en) A kind of DSP platform control system Bandwidth Measurement Method based on network interface
CN109324248B (en) Integrated vector network analyzer for data domain analysis and testing method thereof
CN101833284B (en) Method for compensating system in real time by using hysteresis inversion model
CN105353789B (en) Continuous shaking signal time course reproduction control method
CN104955074A (en) Test apparatus and test method
CN101411213A (en) Calibration method and device in an audio system
CN105092197A (en) Multi-degree-of-freedom sine vibration control method and controller
CN103054552A (en) Method and system for measuring biological tissue viscoelasticity
CN109709420A (en) A kind of Integral wire cable test method based on vector network analyzer
CN110062320A (en) The test method that noise cancelling headphone filter calculates
Guili et al. Design of virtual oscilloscope based on GPIB interface and SCPI
CN203798915U (en) Vector network analyzer
CN100584278C (en) Device for testing the compatibility of front end amplification channel of ultrasonic diagnostic device
CN113360383A (en) Automatic test software data dynamic synchronization method of comprehensive detection equipment
CN109425392B (en) On-site instrument, system and waveform data output method
CN203849435U (en) Weak signal detection platform for detecting nuclear magnetic resonance water detector
CN105842566A (en) Automatic digital filter amplitude frequency characteristic curve mapping system and mapping method thereof
CN110212996A (en) Frequency spectrograph calibration system, parallel calibration method and automatic deploying calibration method
JP2020017814A (en) Signal generation device, and frequency characteristic display method using the same device
CN207397263U (en) A kind of proof of algorithm device
CN104182317B (en) A kind of DMI bus signals Integrity Testing
CN107064610A (en) Being averaged based on group delay
CN110702157A (en) Electronic instrument calibration system, electronic instrument calibration method and related product
CN106199249A (en) A kind of automatic closed loop test system towards intelligent substation and method of testing
CN102495824B (en) Method for generating multi-channel analog signals with different frequencies on same analog output card

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant