CN104049557A - Connecting rod characteristic analyzing and displaying method based on LabVIEM and single-chip microcomputer - Google Patents
Connecting rod characteristic analyzing and displaying method based on LabVIEM and single-chip microcomputer Download PDFInfo
- Publication number
- CN104049557A CN104049557A CN201410197489.6A CN201410197489A CN104049557A CN 104049557 A CN104049557 A CN 104049557A CN 201410197489 A CN201410197489 A CN 201410197489A CN 104049557 A CN104049557 A CN 104049557A
- Authority
- CN
- China
- Prior art keywords
- data
- chip microcomputer
- labview
- connecting rod
- labviem
- 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.)
- Pending
Links
Abstract
The invention discloses a connecting rod characteristic analyzing and displaying method based on a LabVIEM and a single-chip microcomputer. According to the connecting rod characteristic analyzing and displaying method based on the LabVIEM and the single-chip microcomputer, data transmission, separation and processing of a sensor network between the LabVIEM and the single-chip microcomputer are explained, the actual movement condition of a connecting rod can be simulated in real time according to requirements of a client side, and all parameters can be corrected and displayed. A LabVIEM upper computer serves as a computer display end, an upper computer program receives data which are received by a computer serial port and sent by the single-chip microcomputer every 10 ms through a VISA serial driver, error data are distinguished firstly after the data are received by the upper computer, the corresponding movement parameters of the connecting rod are calculated according to data obtained after screening, and the corresponding movement parameters of the connecting rod are displayed through a LabVIEM 2d display control.
Description
Technical field
The present invention relates to mechanical teaching aid specificity analysis simulation demonstration field, particularly relate to a kind of connecting rod specificity analysis display packing based on LabVIEW and single-chip microcomputer.
Background technology
LabVIEW is a kind of virtual instrument platform of American National instrument company exploitation.It is a kind of developing instrument that replaces text type programming language establishment application program by icon code.LabVIEW is powerful, and all functions function of abundant data acquisition, analysis and thesaurus function and the various instrument communication bus standards including DAQ, GPIB, PXI, VXI is provided.Therefore, adopt LabVIEW development of virtual instrument than adopting traditional text type language to have more advantage.But be to be all based upon on the expensive data acquisition hardware that LabVIEW supports conventionally with the virtual instrument of LabVIEW exploitation.Although and data Collection & Processing System hardware cost taking single-chip microcomputer as core is lower, performance history is comparatively complicated, programing work amount is larger, and the cycle is long, and efficiency is low.If the data acquisition system (DAS) by the mini system using single-chip microcomputer as core as front end, the data that collect are sent to PC main system by the sub-VI of serial ports providing by LabVIEW, under LabVIEW environment, data are processed and analyzed, both taken full advantage of the power of LabVIEW, and data acquisition taking single-chip microcomputer as core is little, system architecture is simple, utilize the Serial Communication Function that LabVIEW provides that Single Chip Microcomputer (SCM) system is combined with PC, reduce again the cost of development of system, improve efficiency, an approach of this expansion LabVIEW range of application of can yet be regarded as.
Summary of the invention
The problem that the present invention solves is to provide a kind of connecting rod specificity analysis display packing based on LabVIEW and single-chip microcomputer.
The technical solution adopted for the present invention to solve the technical problems is: a kind of disposal route of the sensor network data based between single-chip microcomputer and LabVIEW is provided, specifically comprises the following steps:
1, first with Chip Microcomputer A/D translation interface, the signal of sensor network is carried out to AD collection;
2, the raw data collecting is carried out filtering processing by single-chip microcomputer;
3, filtered raw data is converted to real significant data, as: angle, angular velocity, angular acceleration etc.;
4, data are packed processing, concrete steps comprise as follows:
1) by parameters changed string format, and be saved in a character string array;
2) specific identifier character is inserted between the parameters in character string array;
3) at character string array beginning data inserting frame head discrimination bit;
4) at character string array ending data inserting postamble discrimination bit;
5,, as step 4 is illustrated, packing data form will be as: frame head-data bit-Data Identification position-...-postamble, single-chip microcomputer directly sends to computer terminal through bluetooth serial ports after data are as above packed;
6, terminal starts LabVIEW program, opens serial ports, and connects corresponding string slogan, chooses baud rate, and parity bit is set;
7, after LabVIEW program starts, deal with data also shows, concrete steps comprise as follows:
1) by serial ports receive data with bunch form preserve;
2) program is extracted a frame data bag with the interval of 10ms from aggregate of data the inside;
3) frame head of check data bag and postamble, if be not inconsistent with predetermined format, abandons data, and program will be extracted data again from aggregate of data;
4) packet of extraction is split, carry out data separating according to flag, the data after separation are the parameters recording;
5) LabVIEW program will be by relevant control by parameter display out;
6) LabVIEW program will be enabled 2D drawing function, and parameters is mapped to corresponding 2D and shows in control, and then the motion process of indication mechanism.
Beneficial effect of the present invention: the present invention is based on the connecting rod specificity analysis display packing of LabVIEW and single-chip microcomputer, send to PC end by single-chip microcomputer deal with data, realized the motion of LabVIEW2D drawing VI control simulation mechanism.
Brief description of the drawings
Fig. 1 is system flow block diagram of the present invention.
Fig. 2 is LabVIEW packet decomposing program.
Fig. 3 is LabVIEW2D display routine figure.
Specific embodiments
Below in conjunction with specific embodiment, further explain the present invention.
As shown in Figure 1, a kind of disposal route based on sensor network data between single-chip microcomputer and LabVIEW, comprise system initialization (1), mechanism's operation (2), single-chip data acquisition (3), bluetooth sends packet (4), LabVIEW moves (5), parameters (6), be sent to single-chip microcomputer (7), LabVIEW receives packet (8), packet solution and correction (9), error recovery (10) returns to LabVIEW and receives packet (8), proofread and correct correctly, data-switching becomes coordinate (11), last 2D interface display (12), specifically comprise the following steps:
1, first whole control system is carried out to initialization, mainly comprise mechanism parameter, the parameter initialization setting of motor speed and sensor;
2, terminal starts LabVIEW program, opens serial ports, and connects corresponding string slogan, chooses baud rate, parity bit is set, and the initiation parameter setting is sent to single-chip microcomputer by serial ports;
3, single-chip microcomputer starts control gear operation after receiving initialization data;
4, after mechanism's operation, first single-chip microcomputer gathers raw data to sensor, is mainly to utilize AD translation interface to carry out AD collection to the signal of sensor network;
5, the raw data collecting is carried out filtering processing by single-chip microcomputer;
6, filtered raw data is converted to real significant data, as: angle, angular velocity, angular acceleration etc.;
7, data are packed processing, concrete steps comprise as follows:
1) by parameters changed string format, and be saved in a character string array;
2) specific identifier character is inserted between the parameters in character string array;
3) at character string array beginning data inserting frame head discrimination bit;
4) at character string array ending data inserting postamble discrimination bit;
8, packing data form: frame head-data bit-Data Identification position-...-postamble, single-chip microcomputer directly sends to computer terminal through bluetooth serial ports after data are as above packed;
9, after LabVIEW program starts, deal with data also shows, concrete steps comprise as follows:
1) by serial ports receive data with bunch form preserve;
2) program is extracted a frame data bag with the interval of 10ms from aggregate of data the inside;
3) frame head of check data bag and postamble, if be not inconsistent with predetermined format, abandons data, and program will be extracted data again from aggregate of data;
4) packet of extraction is split, carry out data separating according to flag, the data after separation are the parameters recording;
5) LabVIEW program will be by relevant control by parameter display out;
6) LabVIEW program will be enabled 2D drawing function, and parameters is mapped to corresponding 2D and shows in control, and then the motion process of indication mechanism.
1, adopt single-chip microcomputer as data acquisition mouth
Single-chip microcomputer, as data acquisition mouth, can carry out filtering to data, analytic operation and processing, and can serve as the terminal of data, can make corresponding reaction and processing to the uplink and downlink of data.Single-chip microcomputer and LabVIEW host computer procedure are two independently to be controlled soon, carries out data communication between the two by bluetooth.Can not only alleviate like this burden of LabVIEW program port, and realize the two-way communication between sensor and master controller, realize collecting and distributing control.
2, the packing of raw data with cut apart
In order to make LabVIEW program can identify the upstream data that single-chip microcomputer sends, we carry out special packing processing to data.Raw data is packaged as to character string array, and centre makes a distinction with unique identifier.Specific as follows:
Bebinning character position-sensor 0 data 0-identification character 0-sensor 0 data 1-identifier 1-sensor 1 data 0-identifier 2-... stop identification character.
The time deviation occurring in the time that data send middle appearance mistake or receive, we use frame head and postamble character as check data.
3, the processing of LabVIEW to data
LabVIEW host computer splits data as shown in Figure 2, in the time that LABVIEW receives the frame data bag that Single-chip Controlling end sends over, first to packet be resolved and be split, agreement while packing according to data when parsing one by one character is resolved, the data before all identification characters of character string array the inside are extracted, then split into each independently data according to identifier.After LabVIEW splits data, the order that data are scheduled to us is saved in aggregate of data, in the time will taking out a frame data bag from aggregate of data, first data are carried out to data type conversion, then can carry out accuracy calibration to data according to the actual requirements, a data part after calibration refers to waveform and shows VI control interface, and a part refers to 2D and shows the sub-VI of control.
4, the design of LabVIEW2D display interface
LABVIEW realize 2D figure show subprogram as shown in Figure 3.LabVIEW has 2D drawing VI control, and the sub-VI of drawing geometric figures in the picture function of use LabVIEW specialty can realize rectangle, the geometric draftings such as circle.First our drawn geometric figure of several standards, is then packaged into sub-VI control, and a corresponding data parameters is referred on sub-VI interface, and parameter is taken out row every 10ms from the aggregate of data having split.In the time carrying out mechanism kinematic Basic graph drawing, directly call these sub-VI, pass to sub-VI control by data parameters, can make the figure of sub-VI ActiveX drafting produce corresponding change in displacement.By these fundamental figures, VI can be combined into various mechanism movement mechanism.
In the time that simulation mechanism moves, can make corresponding reaction campaign according to parameter in order to make drawn mechanism's figure, Parameter Mapping is become corresponding changes in coordinates by we, as the rotation of bar, pass the angular displacement signal of coming according to single-chip microcomputer, convert and be finally converted to corresponding coordinate through radian, change according to coordinate make the to draw coordinate of the figure that sub-VI shows, thereby realized the dynamic demonstration of motion.
Claims (3)
1. the connecting rod specificity analysis display packing based on LabVIEW and single-chip microcomputer, it is characterized in that providing a kind of disposal route of the sensor network data based between single-chip microcomputer and LabVIEW, the signal of sensor network is carried out to AD collection with Chip Microcomputer A/D translation interface; Single-chip microcomputer by collect raw data carry out filtering processing; Convert filtered raw data to real significant data, as: angle, angular velocity, angular acceleration.
2. the connecting rod specificity analysis display packing based on LabVIEW and single-chip microcomputer according to claim 1, is characterized in that providing a kind of by the data method of processing of packing, and by parameters changed string format, and is saved in a character string array; Specific identifier character is inserted between the parameters in character string array; At character string array beginning data inserting frame head discrimination bit; At character string array ending data inserting postamble discrimination bit; Packing data form as: frame head-data bit-Data Identification position-...-postamble.
3. the connecting rod specificity analysis display packing based on LabVIEW and single-chip microcomputer according to claim 2, a kind of method that provides single-chip microcomputer that data are sent to computer terminal deal with data and show through bluetooth serial ports is provided, terminal starts LabVIEW program, open serial ports, and connect corresponding string slogan, choose baud rate, and parity bit is set; LabVIEW program start after, by serial ports receive data with bunch form preserve; Program is extracted a frame data bag with the interval of 10ms from aggregate of data the inside; The frame head of check data bag and postamble, if be not inconsistent with predetermined format, abandon data, and program will be extracted data again from aggregate of data; The packet of extraction is split, carry out data separating according to flag, the data after separation are the parameters recording; LabVIEW program will be by relevant control by parameter display out; LabVIEW program will be enabled 2D drawing function, and parameters is mapped to corresponding 2D and shows in control, and then the motion process of display pole.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410197489.6A CN104049557A (en) | 2014-05-12 | 2014-05-12 | Connecting rod characteristic analyzing and displaying method based on LabVIEM and single-chip microcomputer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410197489.6A CN104049557A (en) | 2014-05-12 | 2014-05-12 | Connecting rod characteristic analyzing and displaying method based on LabVIEM and single-chip microcomputer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104049557A true CN104049557A (en) | 2014-09-17 |
Family
ID=51502582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410197489.6A Pending CN104049557A (en) | 2014-05-12 | 2014-05-12 | Connecting rod characteristic analyzing and displaying method based on LabVIEM and single-chip microcomputer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104049557A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106487851A (en) * | 2015-08-31 | 2017-03-08 | 北京国双科技有限公司 | Web wrapper information transferring method, apparatus and system |
CN109656564A (en) * | 2018-11-29 | 2019-04-19 | 浙江台运汽车科技有限公司 | The analytic method and system of DBC message are realized based on LABVIEW and .NET |
CN114911474A (en) * | 2022-07-18 | 2022-08-16 | 中国空气动力研究与发展中心低速空气动力研究所 | Data processing method and device based on computing module and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101082542A (en) * | 2007-05-22 | 2007-12-05 | 上海交大神舟汽车设计开发有限公司 | Static state detecting bedstand of vehicle steadily control system |
US20070294342A1 (en) * | 2001-08-15 | 2007-12-20 | Shah Mohammed K | Specifying products over a network |
CN201034580Y (en) * | 2007-04-29 | 2008-03-12 | 沈阳理工大学 | Roughness concentration detector based on virtual instrument |
CN102621491A (en) * | 2012-03-21 | 2012-08-01 | 浙江理工大学 | Motor parameter detector |
CN103575533A (en) * | 2013-11-18 | 2014-02-12 | 中国地质大学(武汉) | Experimental device and method for testing rope sheave skid characteristics |
-
2014
- 2014-05-12 CN CN201410197489.6A patent/CN104049557A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070294342A1 (en) * | 2001-08-15 | 2007-12-20 | Shah Mohammed K | Specifying products over a network |
CN201034580Y (en) * | 2007-04-29 | 2008-03-12 | 沈阳理工大学 | Roughness concentration detector based on virtual instrument |
CN101082542A (en) * | 2007-05-22 | 2007-12-05 | 上海交大神舟汽车设计开发有限公司 | Static state detecting bedstand of vehicle steadily control system |
CN102621491A (en) * | 2012-03-21 | 2012-08-01 | 浙江理工大学 | Motor parameter detector |
CN103575533A (en) * | 2013-11-18 | 2014-02-12 | 中国地质大学(武汉) | Experimental device and method for testing rope sheave skid characteristics |
Non-Patent Citations (1)
Title |
---|
刘宏瑞,等: "基于NI CompactRIO平台的发动机连杆疲劳试验系统研究", 《仪器仪表学报》, vol. 32, no. 12, 31 December 2011 (2011-12-31) * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106487851A (en) * | 2015-08-31 | 2017-03-08 | 北京国双科技有限公司 | Web wrapper information transferring method, apparatus and system |
CN106487851B (en) * | 2015-08-31 | 2019-06-18 | 北京国双科技有限公司 | Web wrapper information transferring method, apparatus and system |
CN109656564A (en) * | 2018-11-29 | 2019-04-19 | 浙江台运汽车科技有限公司 | The analytic method and system of DBC message are realized based on LABVIEW and .NET |
CN114911474A (en) * | 2022-07-18 | 2022-08-16 | 中国空气动力研究与发展中心低速空气动力研究所 | Data processing method and device based on computing module and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104049557A (en) | Connecting rod characteristic analyzing and displaying method based on LabVIEM and single-chip microcomputer | |
CN106021102B (en) | The generation method and device of automatic test file | |
CN105045391B (en) | Smartwatch gesture input method and smartwatch | |
CN102354197A (en) | Electromobile data acquisition and management system based on visual instrument | |
CN106850046A (en) | A kind of spaceborne remote-control romote-sensing terminal, system and method based on FPGA | |
CN104317236A (en) | Soft PLC technology-based wireless sensor network control terminal | |
CN109085798B (en) | Embedded system G code asynchronous communication mechanism, protocol and programming method | |
CN103310038A (en) | Virtual machine actual electricity simulation system and method for rotary guiding executing mechanism | |
CN107016896A (en) | Balancing earth-pressure shielding machine analog manipulation system | |
CN105607743A (en) | System based on double sets of sensors, hand-held terminal and head mount display | |
CN103780624A (en) | General application layer network communication protocol application method for complicated system | |
CN103378994A (en) | Method and terminal for testing communication equipment | |
CN103746873A (en) | System and method for testing communication module | |
CN108153931A (en) | VBA combinations APDL carries out the method that nuclear power station pipeline suspension and support mechanical property calculates analysis | |
CN107104729A (en) | Data transmission method for uplink and device, method of reseptance and device, transmission method and system | |
CN205484831U (en) | Vehicle navigation information system | |
CN104022933B (en) | A kind of vehicle bus debugging system changed based on multimode signal | |
CN107064692A (en) | A kind of tester and its method of testing with two-way emulation BMS agreements | |
CN106775826A (en) | A kind of method and system of use note mode loading code file | |
CN104166791B (en) | Based on visual permanent-magnet synchronous motor rotor position angle estimating system and method | |
CN109871585B (en) | Drawing control method and system | |
CN105681435A (en) | Realization method of full car communication system based on formula student race car | |
CN202940892U (en) | Flight data video overlap device | |
CN106406856A (en) | Standalone one-key automatic deployment method for Oracle | |
CN105867940A (en) | Method for reading wagon balance weighing displayer based on java |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140917 |