CN110244688A - Meter bus panel automatic generation method and its system based on LabVIEW - Google Patents
Meter bus panel automatic generation method and its system based on LabVIEW Download PDFInfo
- Publication number
- CN110244688A CN110244688A CN201910491920.0A CN201910491920A CN110244688A CN 110244688 A CN110244688 A CN 110244688A CN 201910491920 A CN201910491920 A CN 201910491920A CN 110244688 A CN110244688 A CN 110244688A
- Authority
- CN
- China
- Prior art keywords
- name
- data
- signal
- control
- value
- 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
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Instrument Panels (AREA)
Abstract
The present invention relates to automobile instrument test macro technical field more particularly to a kind of meter bus panel automatic generation methods and its system based on LabVIEW, including database, database parsing module, data processing module and assignment editor module.Using technical solution provided by the invention solve existing automobile instrument by CAN bus triggering display test method there are the technical problems that testing efficiency is low and testing cost is high.
Description
Technical field
The present invention relates to automobile instrument test macro technical field more particularly to a kind of meter bus based on LabVIEW
Panel automatic generation method and its system.
Background technique
When automobile instrument accessory is in development phase, require that function largely debug before being installed to real vehicle to test
Card, tests each signal of each function point of instrument.Therefore the system of a Meter Test is needed.
At present market major part instrument be all by CAN bus signal trigger show, and when real vehicle CAN bus semaphore compared with
When more, build test the environment period it is longer, repetitive is more, and working efficiency is lower, human resources investment it is larger.
Summary of the invention
Goal of the invention of the invention be to provide a kind of meter bus panel automatic generation method based on LabVIEW and its
System solves existing automobile instrument using technical solution provided by the invention and passes through the test method of CAN bus triggering display
There are the technical problems that testing efficiency is low and testing cost is high.
In order to solve the above-mentioned technical problem, one aspect of the present invention provide a kind of meter bus panel based on LabVIEW from
Dynamic generation method, comprising the following steps:
S100, LabVIEW program obtain the database file of input;
S200, data name and data value of the parsing formation for display are carried out to the database file;
S300, the data name and data value are mapped;
S400, according to the data name and the corresponding control of data value match, and data name assignment to the control
Title data value assignment to the edit item of the control, and generates meter bus and sends panel.
In the step s 100, LabVIEW program obtains the database file of input;Preferably, the database file is logical
XNET control is crossed to imported into the LabVIEW program.
In step s 200, parsing is carried out to the database file and forms data name and data value;Preferably, the number
It include CAN message name and CAN signal name according to name;The data value is CAN signal value.
In step S300, the data name and data value are mapped;Preferably, comprising the following steps:
S301, by while in LabVIEW program circulation and string matching patterns CAN message name, CAN signal
Name and CAN signal value are processed into array;
S302, CAN message name and CAN signal name, CAN signal name and CAN signal value are corresponded to by permutation and combination method
Get up.
In step S400, data name assignment to the title of the control, data value assignment to the volume of the control
Collect item;Preferably, CAN message name and CAN signal name are assigned by application attribute control-attribute node in LabVIEW program
It is worth control title, CAN signal value is assigned to edit item.
Another aspect of the present invention also provides a kind of meter bus panel automatic creation system, including
Database, for storing the database file of input;
Database parsing module, the database file for storing the database import in LabVIEW, and to described
Database file parses the data name and data value to be formed for display;
Data processing module, for the data name and data value to be mapped;And
Assignment editor module, according to the data name and the corresponding control of data value match, and data name assignment to institute
The title for stating control data value assignment to the edit item of the control, and generates meter bus and sends panel.
From the foregoing, it will be observed that available following the utility model has the advantages that by automatically generating CAN using technical solution provided by the invention
Bus signals panel avoids a large amount of repetitive operations, improves automobile instrument testing efficiency, saves a large amount of human resources;Make
It is applicable to different instrument with range, is not limited to particular meter product;The accuracy that production meter bus sends panel is improved,
Reduce various problems caused when manual manufacture panel.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, the present invention will be implemented below
Attached drawing needed in the description of example or the prior art is briefly described.It should be evident that the accompanying drawings in the following description
Only a part of the embodiments of the present invention, for those of ordinary skill in the art, in not making the creative labor property
Under the premise of, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the automatic generation method system block diagram of meter bus of embodiment of the present invention panel.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
When automobile instrument accessory is in development phase, require largely to debug function before being installed to real vehicle
Verifying, major part instrument in market is all to trigger to show by CAN bus signal, and it is more to work as real vehicle CAN bus semaphore at present
When, build test the environment period it is longer, repetitive is more, and working efficiency is lower, human resources investment it is larger.
For this purpose, the present embodiment provides a kind of meter bus panel automatic generation method based on LabVIEW, this method pass through
NICAN equipment is programmed using LabVIEW, realizes the system for automatically generating CAN bus signal panel, it is only necessary to input data library text
Part, so that it may directly generate CAN bus signal and send panel, efficiency can be improved, save a large amount of human resources.
In order to realize automatically generating for above-mentioned meter bus panel, automatic generation method provided in this embodiment includes following
Step:
S100, LabVIEW program obtain the database file of input;
In this step, database file is imported into LabVIEW program by XNET control.
S200, data name and data value of the parsing formation for display are carried out to database file;
Wherein data name includes CAN message name and CAN signal name;Data value is CAN signal value.
S300, data name and data value are mapped;
Above-mentioned corresponding process the following steps are included:
S301, by while in LabVIEW program circulation and string matching patterns CAN message name, CAN signal
Name and CAN signal value are processed into array;
S302, CAN message name and CAN signal name, CAN signal name and CAN signal value are corresponded to by permutation and combination method
Get up.
S400, according to data name and the corresponding control of data value match, and the title of data name assignment to control, number
According to the edit item of value assignment to control, and generates meter bus and send panel;
The step is by application attribute control-attribute node in LabVIEW program CAN message name and CAN signal name
Assignment is assigned to edit item to control title, CAN signal value.
In order to realize it is above-mentioned automatically generate process, based on the automatic generation method of above-mentioned meter bus panel, refer to figure
1, the present embodiment is also provided at a kind of meter bus panel automatic creation system, including database, database parsing module, data
Manage module and assignment editor module.
Wherein, database, for storing the database file of input;
The database file of database storage is imported in LabVIEW by XNET control, then led to by database parsing module
Process ordered pair database data attribute is parsed;Get the data for display: CAN message name, CAN signal name, CAN letter
Number value;
Data processing module realizes data handling procedure, passes through the while circulation and character in LabVIEW programming first
The data such as message name, signal name, signal value are processed into array by String matching mode, by permutation and combination method message and signal
Name, signal name and signal value are mapped.
Assignment editor module is realized and is carried out more according to message name, signal name, signal value to the title and edit item of control
Change;It is automatic to calculate message, signal, how many of signal value difference, then by using LabVIEW program in application attribute control-category
Signal value is assigned to edit item automatically automatically message name and signal name assignment to control title by property node;It is last automatic raw
Panel is sent at meter bus.The CAN bus signal that wherein automatically generates send panel there are many control of type it can be selected that
Such as: drop-down list, boolean's control, sliding bar.
For this purpose, the automatic generation method and its system of meter bus panel provided in this embodiment, can automatically parse number
According to library message name/signal name/signal value/attribute and auto-associating signal;It also can be automatically by message name/signal name/signal value
It is associated with panel and sorts automatically according to signal and generate panel.
As long as in conclusion technical solution input data library file provided in this embodiment, so that it may automatically generate instrument
Bus sends panel, avoids a large amount of repetitive operations, improves automobile instrument testing efficiency, saves a large amount of human resources;Make
It is applicable to different instrument with range, is not limited to particular meter product;The accuracy that production meter bus sends panel is improved,
Reduce various problems caused when manual manufacture panel.
Embodiments described above does not constitute the restriction to the technical solution protection scope.It is any in above-mentioned implementation
Made modifications, equivalent substitutions and improvements etc., should be included in the protection model of the technical solution within the spirit and principle of mode
Within enclosing.
Claims (10)
1. a kind of meter bus panel automatic generation method based on LabVIEW, it is characterised in that: the following steps are included:
S100, LabVIEW program obtain the database file of input;
S200, data name and data value of the parsing formation for display are carried out to the database file;
S300, the data name and data value are mapped;
S400, according to the data name and the corresponding control of data value match, and data name assignment to the title of the control,
Data value assignment to the edit item of the control, and generates meter bus and send panel.
2. meter bus panel automatic generation method according to claim 1, in the step s 100, LabVIEW program obtains
Take the database file of input;It is characterized by: the database file imported into the LabVIEW program by XNET control
In.
3. meter bus panel automatic generation method according to claim 2, in step s 200, to the data library text
Part carries out parsing and forms data name and data value;It is characterized by: the data name includes CAN message name and CAN signal name;Institute
Stating data value is CAN signal value.
4. meter bus panel automatic generation method according to claim 3, in step S300, by the data name and
Data value is mapped;It is characterized by comprising following steps:
S301, by while in LabVIEW program circulation and string matching patterns CAN message name, CAN signal name and
CAN signal value is processed into array;
S302, CAN message name and CAN signal name, CAN signal name and CAN signal value are mapped by permutation and combination method.
5. meter bus panel automatic generation method according to claim 4 arrives data name assignment in step S400
The title of the control, data value assignment to the edit item of the control;It is characterized by: by LabVIEW program
Application attribute control-attribute node to control title, is assigned to CAN message name and CAN signal name assignment CAN signal value
Edit item.
6. a kind of meter bus panel automatic creation system, it is characterised in that: including
Database, for storing the database file of input;
Database parsing module, the database file for storing the database import in LabVIEW, and to the data
Library file parses the data name and data value to be formed for display;
Data processing module, for the data name and data value to be mapped;And
Assignment editor module, according to the data name and the corresponding control of data value match, and data name assignment to the control
The title of part data value assignment to the edit item of the control, and generates meter bus and sends panel.
7. meter bus panel automatic creation system according to claim 6, it is characterised in that: the database parses mould
The database file is imported into the LabVIEW program by block by XNET control.
8. meter bus panel automatic creation system according to claim 7, it is characterised in that: the database parses mould
The data name that block parses includes CAN message name and CAN signal name, and the data value parsed is CAN signal
Value.
9. meter bus panel automatic creation system according to claim 8, it is characterised in that: the data processing module
By the while circulation in LabVIEW program with string matching patterns CAN message name, CAN signal name and CAN signal value
It is processed into array, then by permutation and combination method that CAN message name and CAN signal name, CAN signal name and CAN signal value is corresponding
Get up.
10. meter bus panel automatic creation system according to claim 9, it is characterised in that: the assignment editor mould
Block is by application attribute control-attribute node in LabVIEW program CAN message name and CAN signal name assignment to control name
Claim, CAN signal value is assigned to edit item.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910491920.0A CN110244688A (en) | 2019-06-06 | 2019-06-06 | Meter bus panel automatic generation method and its system based on LabVIEW |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910491920.0A CN110244688A (en) | 2019-06-06 | 2019-06-06 | Meter bus panel automatic generation method and its system based on LabVIEW |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110244688A true CN110244688A (en) | 2019-09-17 |
Family
ID=67886226
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910491920.0A Pending CN110244688A (en) | 2019-06-06 | 2019-06-06 | Meter bus panel automatic generation method and its system based on LabVIEW |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110244688A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000332A (en) * | 2020-07-09 | 2020-11-27 | 惠州市德赛西威汽车电子股份有限公司 | Automatic generating method and system of bus panel |
CN112378420A (en) * | 2020-10-30 | 2021-02-19 | 北斗星通智联科技有限责任公司 | Signal simulation method and system for automobile navigation test and electronic equipment |
CN112532492A (en) * | 2020-12-08 | 2021-03-19 | 航天科技控股集团股份有限公司 | CAN virtual message construction method and system for testing automobile instrument |
CN113010359A (en) * | 2021-03-26 | 2021-06-22 | 西安航空电子科技有限公司 | Bus test system generation method, system, device and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050246390A1 (en) * | 2001-08-24 | 2005-11-03 | House Richard W | Enterprise test data management system utilizing automatically created test data structures and related methods |
CN101509948A (en) * | 2008-10-08 | 2009-08-19 | 上海科世达-华阳汽车电器有限公司 | Automobile electronic test system and test method thereof |
CN101776993A (en) * | 2009-01-09 | 2010-07-14 | 鸿富锦精密工业(深圳)有限公司 | System and method automatically generating software interactive interface |
CN104266671A (en) * | 2014-09-05 | 2015-01-07 | 延锋伟世通电子科技(上海)有限公司 | Automobile instrument driving information automatic testing system based on CAN bus and vision detection |
CN106528198A (en) * | 2016-09-29 | 2017-03-22 | 陕西法士特齿轮有限责任公司 | Program downloading system and program downloading method applied to automobile electric-control unit |
CN106598612A (en) * | 2016-12-20 | 2017-04-26 | 北京润科通用技术有限公司 | Operation method and system for data table in database |
-
2019
- 2019-06-06 CN CN201910491920.0A patent/CN110244688A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050246390A1 (en) * | 2001-08-24 | 2005-11-03 | House Richard W | Enterprise test data management system utilizing automatically created test data structures and related methods |
CN101509948A (en) * | 2008-10-08 | 2009-08-19 | 上海科世达-华阳汽车电器有限公司 | Automobile electronic test system and test method thereof |
CN101776993A (en) * | 2009-01-09 | 2010-07-14 | 鸿富锦精密工业(深圳)有限公司 | System and method automatically generating software interactive interface |
CN104266671A (en) * | 2014-09-05 | 2015-01-07 | 延锋伟世通电子科技(上海)有限公司 | Automobile instrument driving information automatic testing system based on CAN bus and vision detection |
CN106528198A (en) * | 2016-09-29 | 2017-03-22 | 陕西法士特齿轮有限责任公司 | Program downloading system and program downloading method applied to automobile electric-control unit |
CN106598612A (en) * | 2016-12-20 | 2017-04-26 | 北京润科通用技术有限公司 | Operation method and system for data table in database |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000332A (en) * | 2020-07-09 | 2020-11-27 | 惠州市德赛西威汽车电子股份有限公司 | Automatic generating method and system of bus panel |
CN112000332B (en) * | 2020-07-09 | 2024-05-31 | 惠州市德赛西威汽车电子股份有限公司 | Automatic generation method and system of bus panel |
CN112378420A (en) * | 2020-10-30 | 2021-02-19 | 北斗星通智联科技有限责任公司 | Signal simulation method and system for automobile navigation test and electronic equipment |
CN112532492A (en) * | 2020-12-08 | 2021-03-19 | 航天科技控股集团股份有限公司 | CAN virtual message construction method and system for testing automobile instrument |
CN113010359A (en) * | 2021-03-26 | 2021-06-22 | 西安航空电子科技有限公司 | Bus test system generation method, system, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110244688A (en) | Meter bus panel automatic generation method and its system based on LabVIEW | |
CN107038280B (en) | Software and hardware collaborative simulation verification system and method | |
US5390320A (en) | Automatically converting structured analysis tool database outputs into an integrated simulation model via transportable standardized metafile | |
CN109840207A (en) | One kind being based on AUTOSAR network management automatization test system and test method | |
CN102156784A (en) | Verifying environment patterned chip verifying method and device | |
CN107944193A (en) | Avionics semi-matter simulating system | |
CN110222318A (en) | Data generating tool development approach based on XML | |
CN108038294A (en) | UVM environmental structure method and systems | |
CN105808799A (en) | Universal test software in RTX (Real-Time eXecutive) environment and test method for universal test software | |
CN110209389A (en) | A kind of data generating tool development system based on XML | |
CN105844066A (en) | Design verification method for passive tag chip | |
CN111212103A (en) | SCA software radio station interface simulation system and method | |
CN104063231B (en) | Test resource rapid access method based on HIT-TENA | |
CN106982140A (en) | A kind of information flow emulation mode and system | |
CN110109658A (en) | A kind of ROS code generator and code generating method based on formalized model | |
Bertolino et al. | An approach to integration testing based on architectural descriptions | |
CN105740579A (en) | Construction method for connection of UVM verification platform | |
CN117214561A (en) | Test method of automatic test operation system and information sharing platform | |
CN107807631A (en) | A kind of Auto-Test System based on AUTOSAR network management mechanisms | |
CN103457957B (en) | A kind of network penetration test macro and method with adaptation function | |
CN113505283A (en) | Test data screening method and system | |
US20170060111A1 (en) | Method for connecting models of technical systems in a testing device equipped for control unit development | |
CN107291435A (en) | AADL models are blended together under a kind of Uncertain environments and quantify analysis method | |
CN107215479B (en) | General data processing framework of flight simulator and construction method thereof | |
CN103970652B (en) | Wireless sense network software code verification method based on bounded model checking |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190917 |