CN109540357A - The processing method of high-throughput torque measurement data based on Labview - Google Patents

The processing method of high-throughput torque measurement data based on Labview Download PDF

Info

Publication number
CN109540357A
CN109540357A CN201811281977.XA CN201811281977A CN109540357A CN 109540357 A CN109540357 A CN 109540357A CN 201811281977 A CN201811281977 A CN 201811281977A CN 109540357 A CN109540357 A CN 109540357A
Authority
CN
China
Prior art keywords
frequency
torque
rising edge
time
data
Prior art date
Application number
CN201811281977.XA
Other languages
Chinese (zh)
Inventor
杨恺斯
赵连玉
刘凉
岳有军
王巨涛
Original Assignee
天津理工大学
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 天津理工大学 filed Critical 天津理工大学
Priority to CN201811281977.XA priority Critical patent/CN109540357A/en
Publication of CN109540357A publication Critical patent/CN109540357A/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L3/00Measuring torque, work, mechanical power, or mechanical efficiency in general
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L5/00Apparatus for, or methods of, measuring force, work, mechanical power, or torque, specially adapted for specific purposes
    • G01L5/0028Force sensors associated with force applying means
    • G01L5/0042Force sensors associated with force applying means applying a torque
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/05Digital input using the sampling of an analogue quantity at regular intervals of time, input from a/d converter or output to d/a converter

Abstract

The processing method for the high-throughput torque measurement data based on Labview that the invention discloses a kind of passes sequentially through the frequency signal for chronologically obtaining torque sensor transmission;The rising edge that torque sensor is passed to frequency signal is read using high frequency clock in FPGA module, data renewal time until reaching setting, the count value of high frequency clock between first rising edge and the last one rising edge is obtained to obtain the number of rising edge, and then calculates the actual output frequency of torque sensor;Frequency information is uploaded to Real-Time real-time system by DMA-FIFO, frequency is scaled actual torque value by Real-Time real-time system and stores realization;The processing method of the high-throughput torque measurement data based on Labview realizes the high speed acquisition of torque data, high speed storing, solve the problems, such as high speed acquisition of the torque data under Labview environment and data high-speed flow table, and the algorithm complexity that this method is related to is not high, is applicable to the torque acquisition system of various instrument and equipments.

Description

The processing method of high-throughput torque measurement data based on Labview
Technical field
The present invention relates to TT&C system information technology field, in particular to a kind of high-throughput torque based on Labview The processing method of measurement data.
Background technique
In the current informationization epoch, for high-throughput, the requirement of high accuracy measurement and control system is higher and higher.And for numerous For relevant enterprise, the raising of observation and control technology is all urgent need, and the accuracy positioned, corresponding rapidity, high-throughput Data transmission etc. all has far-reaching influence for the development of enterprise, and especially the development of China's modern industry is with greater need for new technique Support.And the appearance of observation and control technology just meets the demand of people.By applying observation and control technology, work can not only be stepped up Industry production efficiency improves a series of accuracy of fine measuring instruments, while also enriching the type of emerging technology and industry, The fast development of China's industrial sector has been pushed to a certain extent.Under the background of made in China 2025, observation and control technology has Greatly application and promotional value, need people to further investigate.
FPGA (Field-ProgrammableGateArray), i.e. field programmable gate array, be PAL, GAL, The product further developed on the basis of the programming devices such as CPLD, as one of field specific integrated circuit (ASIC) Semi-custom circuit and occur, not only solved the deficiency of custom circuit, but also to overcome original programming device gate circuit number limited The shortcomings that.With the circuit design that hardware description language (Verilog or VHDL) is completed, simple synthesis and cloth can be passed through Office, is quickly burned on FPGA and is tested, and is the technology mainstream of modern IC designs verifying.These editable elements can be by For realizing some basic logic gates (such as AND, OR, XOR, NOT) or more more complicated combination function such as Decoder or mathematical equation.Inside most of FPGA, also for example touched comprising memory cell in these editable elements Send out device (Flip-flop) or other more complete block of memory.
Summary of the invention
It solves torque data the object of the present invention is to provide one kind and realizes high speed acquisition and data under Labview environment The processing method of the high-throughput torque measurement data based on Labview of the problems such as high speed flow table.
For this purpose, technical solution of the present invention is as follows:
A kind of processing method of the high-throughput torque measurement data based on Labview, steps are as follows:
S1, the frequency signal for chronologically obtaining torque sensor transmission;
S2, the rising edge for reading the incoming frequency signal of torque sensor using high frequency clock in FPGA module, Zhi Daoda To the data renewal time of setting, the count value of high frequency clock between first rising edge and the last one rising edge is obtained in terms of The time between first rising edge and the last one rising edge is calculated, and obtains the number of rising edge, and then calculates torque biography The actual output frequency of sensor;
S3, the frequency information being calculated by step S2 is uploaded to Real-Time real-time system by DMA-FIFO, Frequency is scaled actual torque value by Real-Time real-time system and is stored.
Further, in step sl, frequency is built between FPGA module and torque sensor using NI6584 adapter Rate signal differential channel, makes FPGA module receive differential frequency signal from torque sensor.In the step, in Labvi ew It develops in environment, using differential signal acquisition frequency information, realizes the purpose for inhibiting common mode interference.
Further, frequency signal differential path is built method particularly includes: NI6584 adapter is inserted into FPGA In the interface of module board, while the pin 4 of NI6584 adapter Single port and the pin 1 of torque sensor port being connected It connects, and the pin of this Single port 5 is connect with the pin 4 of torque sensor.
Further, the specific implementation step of step S2 are as follows:
The onboard clock of S201, frequency multiplication FPGA module obtain high frequency clock;
S202, data collection cycle is determined;
S203, in data collection cycle, using high frequency clock identification torque sensor frequency signal rising edge, work as knowledge Started counting after being clipped to first rising edge, until collection period terminates, then by searching for the last one rising edge when meter Numerical value obtains the number for the rising edge that high frequency clock recognizes;
S204, count value obtained in step S203 is obtained acquiring used in several rising edges multiplied by high frequency clock cycles Time, then the number that rising edge occurs is obtained into the corresponding frequency of frequency signal divided by the time used in several rising edges is acquired Value, the i.e. actual frequency of torque sensor.
Wherein, in above-mentioned steps S202, data collection cycle is manually set according to data characteristics.In above-mentioned steps S204 Medium-high frequency clock cycle value is one week of high frequency clock that the onboard clock of FPGA module is obtained by the frequency multiplication step of step S203 The time of phase;In addition, reading rising edge number in specified period using high frequency clock, guarantee to consolidate again while acquisition precision Fixed number according to transmission period.
Further, in step s3, frequency data are transmitted using DMA-FIFO, this is because DMA-FIFO is The dual port buffer of one first in, first out, i.e., first data first entered in it are moved out of, and one of mouth is storage The input port of device, another mouthful are the delivery outlets of memory, can realize: 1) cache to continuous data flow, are prevented Only lose data when into machine and storage operation, 2) data put together and carry out can avoid frequent bus behaviour into machine and storage Make, offloading the CPU, 3) allow system to carry out dma operation, improve the transmission speed of data;And then use Real-Time Flow data in real-time system reading DMA-FIFO and the reason of frequency information is converted to torque information is, one is to make Frequency data circulation is changed to torque data stream with Real-Time real-time system, it is higher compared to directly using host computer to have Real-time, can guarantee that data flow is continually and steadily transmitted;Secondly, the store function of Real-Time real-time system is realized to torque Data flow is individually stored into its disk, and when host computer needs to call torque data, Real-Time real-time system can will be turned round Square data flow is transferred to host computer by way of network flow immediately.In addition, Real-Time real-time system also has good expansion Malleability;It therefore, can by DMA-FIFO transmission frequency information to Real-Time real-time system in Labview exploitation environment Reasonable distribution hardware resource makes hardware in system play respective advantage.
Compared with prior art, the processing method of the high-throughput torque measurement data based on Labview has as follows The utility model has the advantages that
1) this method can by adjusting data collection cycle at any time, facilitate the alignment for carrying out multichannel data with synchronize adopt Collection;
2) this method will not lose a large amount of countings because of the change by measured frequency, cause the change of final resolution ratio, make The resolution ratio of data is constant in measurement range;
3) this method can be realized high-speed transfer torque data, and 1 second volume of transmitted data can achieve 25000;
4) this method makes frequency data stream high speed, lossless using Real-Time real-time system by cooperating with FPGA Be transmitted to Real-Time real-time system carry out torque data stream high-speed transitions and storage, realization respectively exert advantages of oneself The characteristics of, optimize system resource.
Detailed description of the invention
Fig. 1 is the flow chart of the processing method of the high-throughput torque measurement data of the invention based on Labview;
Fig. 2 is the mode of connection schematic diagram of the NI6584 adapter and torque sensor in the embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing and specific embodiment the present invention is described further, but following embodiments are absolutely not to this hair It is bright to have any restrictions.
As shown in Figure 1, being somebody's turn to do the specific processing step of the processing method of the high-throughput torque measurement data based on Labview It is as follows:
S1, the frequency signal for chronologically obtaining torque sensor transmission;
S2, the rising edge for being read the incoming frequency signal of torque sensor using high frequency clock in FPGA, are set until reaching Fixed data renewal time, obtain the count value of high frequency clock between first rising edge and the last one rising edge to obtain on The number on edge is risen, and then calculates the actual output frequency of torque sensor;
S3, the frequency information being calculated by step S2 is uploaded to Real-Time system by DMA-FIFO, by Frequency is scaled actual torque value and stored by Real-Time system.
Specifically, this method is controlled by sequentially connected torque sensor, NI6584 adapter, FPGA board, NI8840 Device and host computer are realized;Wherein, equipped with Real-Time real-time system on NI8840 controller.
Torque sensor is mounted in shafting, and output signal is frequency signal, can detect size of the axis by torque.Tool For body, the torque measurement of torque sensor uses strain principles of electrical measurement, i.e., when strain axis is influenced to generate small shape by torsion After change, be pasted onto strain gauge resistance value on strain axis and corresponding variation occur, by the Strain Meter Set with same strain characteristic at Measuring bridge, the variation that the variation of strain resistor can be changed into voltage signal measures, then by torque information with frequency The form of signal is sent to signal receiving end.Frequency is higher, indicates that the torque value measured is bigger, and frequency is lower, indicates to measure Torque value is smaller.
In the method, signal receiving end, that is, FPGA module uses fpga chip to be conducive to as acquisition chip subsequent Multiple sensor acquires the alignment of data, improves the synchronization degree of data acquisition.Wherein, torque sensor uses NI6584 adapter Configuration FPGA whole port is differential path, and the RS422 by being connected between NI6584 adapter and torque sensor connects Mouthful, the frequency signal for making FPGA module that differential lane receiver torque sensor be utilized to issue, to reduce common mode interference when acquisition.
Specifically, NI6584 adapter is inserted into the board interface of FPGA module, meanwhile, by NI6584 adapter The pin 4 and pin 5 of Single port are connect with the pin 1 of torque sensor port and pin 4, complete NI6584 adapter, torque The connection of sensor and FPGA module, in addition, torque sensor port pinout 2 is connect 24V power cathode, pin 3 connects 24V power supply Anode, as shown in Figure 2.
The board of FPGA module handles the differential frequency signal received from torque sensor.Wherein, it improves To the precision of torque sensor frequency identification, there are two types of methods: first is that improving FPGA clock frequency.Clock frequency is higher, the same to period Under counts it is also more, the counting between torque sensor rising edge is divided smaller, makes the measurement of frequency more Precisely;Specifically, clock frequency is lower, fewer with the counts under the period, reduces so that counting, resolution ratio decline;Second A method is to extend data collection cycle, makes in a cycle that collected rising edge number is more, high frequency clock can count Time extend, the value of counting also accordingly increases, and improves the resolution ratio of measurement.And it balances use above two side simultaneously Method then can not only guarantee that the update cycle of data was unlikely to too long, but also guarantee that the resolution ratio of frequency identification is met the requirements.Meanwhile Such compound algorithm also helps the synchronization of multichannel data, and guarantees the acquisition precision of data.
Therefore, the maximum frequency multiplication multiple that the multiple of frequency multiplication uses FPGA module can be realized in this example;Data acquisition Period is to be manually set, it is contemplated that torque has fluctuation, i.e. the slot effect of the servo motor of driving shafting rotation can make Output torque generates high frequency periodic variation, thus, data collection cycle is set as 40 microseconds.
For this purpose, the specific processing step of FPGA module is as follows:
S201, the onboard clock of frequency multiplication in FPGA module obtain high frequency clock, to generate high-frequency counter;
S202, data collection cycle is determined, i.e. FPGA module time that a data are updated within this time;
S203, in a data collection cycle using the rising edge of high frequency clock identification torque sensor, when recognizing It is started counting after first rising edge, until collection period terminates, searches counting size when the last one rising edge, so that it may Know that high frequency clock shares how many times counting between several rising edges.
In above-mentioned treatment process, high frequency clock for identification the number of rising edge with to this number rising edge experience when Between counted, and be stored in the register of FPGA module, onboard clock is stored in by other calculation procedure calling Count value in the register of FPGA module completes subsequent calculating and updates collected frequency values, realizes hardware resource Reasonable distribution;
S204, in same data collection cycle, if the count value of high frequency clock is acquired multiplied by high frequency clock cycles The rising edge number measured is then obtained frequency divided by the time used in several rising edges is acquired by the time used in dry rising edge The numerical value for the actual frequency that rate value, i.e. torque sensor measure.
Successively, it repeats the above steps S203~S204 to the frequency data in subsequent each data collection cycle, with this Analogize, finally obtains the frequency flow data of torque sensor.
The frequency flow data handled by FPGA module is transmitted to Real-Time real-time system by DMA-FIFO. Wherein, direct memory access is referred to for DMA-FIFO, DMA, is a kind of without CPU and directly from the number of memory access data According to switch mode.Data transmission under PIO mode between hard disk and memory is controlled by CPU;And in dma mode, CPU Instruction need only be assigned to dma controller, allow dma controller to handle the transmission of data, Data Transfer Done again feeds back information To CPU, cpu resource occupation rate is thus largely alleviated.And FIFO is the dual port buffer of a first in, first out, i.e., First data first entered in it is moved out of, and one of mouth is the input port of memory, another mouth is memory Delivery outlet.Therefore, data high-speed can be made using DMA-FIFO, lossless be transmitted to Real-Time real-time system.
The frequency that Real-Time real-time system sends DMA-FIFO as the conversion of dedicated frequency signal and storage device Rate flow data is converted to torque flow data, and the torque flow data stored within the system is sent to host computer by network flow, Work is analyzed in the drafting and other data for carrying out change in torque curve.
In conclusion being somebody's turn to do the processing method of the high-throughput torque measurement data based on Labview realizes torque data High speed acquisition, high speed storing solves asking for high speed acquisition of the torque data under Labview environment and data high-speed flow table Topic, and the algorithm complexity that this method is related to is not high, suitable for the torque acquisition system of various instrument and equipments, has good Use value and promotion prospect.
The above embodiment is interpreted as being merely to illustrate the present invention rather than limit the scope of the invention.? After the content for having read record of the invention, technical staff can be made various changes or modifications the present invention, these equivalent changes Change and modification equally falls into the scope of the claims in the present invention.

Claims (4)

1. a kind of processing method of the high-throughput torque measurement data based on Labview, which is characterized in that steps are as follows:
S1, the frequency signal for chronologically obtaining torque sensor transmission;
S2, the rising edge for reading the incoming frequency signal of torque sensor using high frequency clock in FPGA module, until reaching The data renewal time of setting obtains the count value of high frequency clock between first rising edge and the last one rising edge to calculate Time between first rising edge and the last one rising edge, and the number of rising edge is obtained, and then calculate torque sensing The actual output frequency of device;
S3, the frequency information being calculated by step S2 is uploaded to Real-Time real-time system by DMA-FIFO, by Frequency is scaled actual torque value and stored by Real-Time real-time system.
2. the processing method of the high-throughput torque measurement data according to claim 1 based on Labview, feature exist In, in step sl, frequency signal differential path is built between FPGA module and torque sensor using NI6584 adapter, FPGA module is set to receive differential frequency signal from torque sensor.
3. the processing method of the high-throughput torque measurement data according to claim 2 based on Labview, feature exist In building frequency signal differential path method particularly includes: NI6584 adapter is inserted into the interface of FPGA module board, The pin 4 of NI6584 adapter Single port is connect with the pin 1 of torque sensor port simultaneously, and drawing this Single port Foot 5 is connect with the pin 4 of torque sensor port.
4. the processing method of the high-throughput torque measurement data according to claim 1 based on Labview, feature exist In the specific implementation step of step S2 are as follows:
The onboard clock of S201, frequency multiplication FPGA module obtain high frequency clock;
S202, data collection cycle is determined;
S203, in data collection cycle, using the rising edge of high frequency clock identification torque sensor frequency signal, when recognizing Started counting after first rising edge, until collection period terminates, then by searching for the last one rising edge when count value, Obtain the number for the rising edge that high frequency clock recognizes;
S204, count value obtained in step S203 is obtained using onboard clock to acquire several risings multiplied by high frequency clock cycles Along the time used, then the number that rising edge occurs is obtained into frequency signal divided by the time used in several rising edges of acquisition and is corresponded to Frequency values, i.e. the actual frequency of torque sensor.
CN201811281977.XA 2018-10-31 2018-10-31 The processing method of high-throughput torque measurement data based on Labview CN109540357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811281977.XA CN109540357A (en) 2018-10-31 2018-10-31 The processing method of high-throughput torque measurement data based on Labview

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811281977.XA CN109540357A (en) 2018-10-31 2018-10-31 The processing method of high-throughput torque measurement data based on Labview

Publications (1)

Publication Number Publication Date
CN109540357A true CN109540357A (en) 2019-03-29

Family

ID=65846035

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811281977.XA CN109540357A (en) 2018-10-31 2018-10-31 The processing method of high-throughput torque measurement data based on Labview

Country Status (1)

Country Link
CN (1) CN109540357A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135460A (en) * 2011-01-17 2011-07-27 武汉理工大学 Device for measuring torque and power of photoelectric non-contact rotation shaft
CN103516279A (en) * 2013-09-17 2014-01-15 广东工业大学 Permanent magnet synchronous motor control chip based on FPGA
CN104215371A (en) * 2014-08-27 2014-12-17 湖北开特汽车电子电器系统股份有限公司 Measuring system of automotive air conditioning stepping motor moment output features
CN104283212A (en) * 2014-10-11 2015-01-14 广西大学 Double-fed wind power generation set physical simulation platform based on Compact RIO
CN104458082A (en) * 2013-09-15 2015-03-25 张立洁 Stepping motor torque test system based on LabVIEW
CN105841867A (en) * 2016-05-20 2016-08-10 广东工业大学 Measuring method for tooth groove torque of permanent magnet motor

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102135460A (en) * 2011-01-17 2011-07-27 武汉理工大学 Device for measuring torque and power of photoelectric non-contact rotation shaft
CN104458082A (en) * 2013-09-15 2015-03-25 张立洁 Stepping motor torque test system based on LabVIEW
CN103516279A (en) * 2013-09-17 2014-01-15 广东工业大学 Permanent magnet synchronous motor control chip based on FPGA
CN104215371A (en) * 2014-08-27 2014-12-17 湖北开特汽车电子电器系统股份有限公司 Measuring system of automotive air conditioning stepping motor moment output features
CN104283212A (en) * 2014-10-11 2015-01-14 广西大学 Double-fed wind power generation set physical simulation platform based on Compact RIO
CN105841867A (en) * 2016-05-20 2016-08-10 广东工业大学 Measuring method for tooth groove torque of permanent magnet motor

Non-Patent Citations (7)

* Cited by examiner, † Cited by third party
Title
于家明 等: "基于虚拟仪器的电机转矩转速测试系统", 《电机与控制应用》 *
吴利君 等: "基于LabVIEW 的EPS 扭矩传感器数据采集系统设计", 《湖北民族学院学报》 *
李春萍 等: "基于LabVIEW的实时数据测量系统的设计", 《微计算机信息》 *
潘虹 等: "基于LabVIEW 和FPGA 的多功能", 《实验室研究与探索》 *
白文普 等: "基于虚拟仪器的动态扭矩测试系统的研究", 《微计算机信息》 *
郭睿楠 等: "基于FPGA 和LabVIEW 的虚拟频率特性测试仪设计", 《实验室研究与探索》 *
龙华伟 等: "基于LabVIEW的步进电动机扭矩测试系统", 《计量学报》 *

Similar Documents

Publication Publication Date Title
CN100468234C (en) Time digital converter based on RPGA and its conversion method
CN100575964C (en) Be used to measure the instrument of electric power
CN101609126B (en) Automatic testing system of temperature compensating crystal oscillator
CN103048087B (en) Pressure sensor debugging system and debugging method thereof
CN105379120A (en) Capacitive proximity detection using delta-sigma conversion
CN101713811B (en) System for automatically testing parameters of quartz crystal oscillator
CN2736821Y (en) Programmable logic device based short time interval meter
CN202276369U (en) Weight acquisition device for internet of things
CN101625383A (en) On-line monitoring device for power quality
CN100468060C (en) Equal observations method and measuring device of rotary table rate
CN101140320A (en) Electrical energy meter calibration stand and checking method thereof
CN102353481B (en) Method and device for complementing temperature and pressure of pressure sensor based on two-dimensional orthogonal function
CN102353387B (en) Automated testing system and method for index parameters of fiber optic gyro
CN104614593B (en) One kind is based on self-alignment high-precision intelligent instrument system and its application process
CN104914304B (en) Electric energy accurate measurement method and metering device under a kind of fluctuating load
CN104330177B (en) The portable ground temperature harvester of super low-power consumption and method
CN100583644C (en) Integrating A/D convertion method and its A/D converter
CN204535890U (en) A kind of thermopair automatic calibration system
CN101930211B (en) Clock source device based on GPS second pulse and control method thereof
CN103616813A (en) Universal real-time multi-channel parallel timing measuring system
CN103336667A (en) General multi-channel data collection system
CN107454385A (en) The emulation detection method of cmos image data training system and view data serioparallel exchange
CN204556077U (en) A kind of low-power consumption body weigher based on radio communication
CN204142381U (en) Temperature measuring circuit
CN103837741A (en) Equal-precision frequency testing system based on FPGA and design method thereof

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