CN104990706A - Method for analyzing actual output stroke of complex mechanism based on ADAMS script - Google Patents
Method for analyzing actual output stroke of complex mechanism based on ADAMS script Download PDFInfo
- Publication number
- CN104990706A CN104990706A CN201510360471.8A CN201510360471A CN104990706A CN 104990706 A CN104990706 A CN 104990706A CN 201510360471 A CN201510360471 A CN 201510360471A CN 104990706 A CN104990706 A CN 104990706A
- Authority
- CN
- China
- Prior art keywords
- adams
- file
- complex mechanism
- row
- character string
- 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 present invention discloses a method for analyzing an actual output stroke of a complex mechanism based on an ADAMS script, wherein the complex mechanism can be a complex mechanical transmission mechanism such as a crankshaft connecting rod transmission mechanism, a multi-connecting rod transmission mechanism, and a cam connecting rod transmission mechanism. The method comprises the following steps: (1) using a text editor or ADAMS software to make a template file which is compatible with the format of an ADAMS script file; (2) using the text editor to make an external file; (3) through a program, reading the template file in the step (1) in a traversal way from the beginning, and generating a new script file; and (4) through a program, calling the ADAMS software and running the new script file in the step (3) to obtain an output stroke of the complex mechanism on the condition of an actual state. The method of the present invention can automatically, efficiently and accurately obtain an actual output stroke result, thereby reducing workload, shortening development time of the complex mechanism, and reducing development cost, therefore, the method can be directly used for guiding practical production.
Description
Technical field
The present invention relates to the actual output traverse analytical approach of the complicated machinery gear trains such as a kind of complex mechanism such as crankshaft-linking rod drive mechanism, multi-jointed gear unit, cam link gear train, belong to machine-building and design field.
Background technology
In mechanical transmission mechanism, complex mechanism such as crankshaft-linking rod drive mechanism, multi-jointed gear unit, cam link gear train include a lot of parts, the processing and manufacturing error of some parts directly has influence on the actual output traverse of complex mechanism, and then affect the runnability of complete machine, be therefore necessary to analyze the actual output traverse of complex mechanism.
For the actual output traverse of complex mechanism, technician adopts two kinds of analytical approachs usually: the first is theoretical research analytical approach, but the method requires higher to the knowwhy of organizational designer, and analysis efficiency is low, also easily make mistakes, can not actual production be used to guide.The second is first Modling model in the outside 3D softwares such as SolidWorks, then is imported in ADAMS software by model and analyze, but this method exists large, the consuming time defect such as many of workload, therefore can not be used for actual production in enormous quantities equally.
Summary of the invention
The technical problem to be solved in the present invention is to provide that a kind of workload is little, and efficiency is high, and analysis result is accurate, can be directly used in and instruct the complex mechanism based on ADAMS script of actual production actual output traverse analytical approach.
For solving the problems of the technologies described above, the present invention adopts a kind of like this complex mechanism based on ADAMS script actual output traverse analytical approach, described complex mechanism comprises crankshaft-linking rod drive mechanism, multi-jointed gear unit and cam link gear train, and the method comprises the following steps:
(1) utilize text editor or ADAMS software, make with the script file format compatible of ADAMS and include the dimension definitions of each part in specific character string and complex mechanism, position defines, constraint definition, simulation parameter define, measure the item defines template file;
(2) text editor is utilized, making includes the specific character string identical with step (1) and the external file with described specific character string corresponding data, and described data comprise the dimension information of each part in complex mechanism, positional information, constraint information, simulation parameter information and measure the item information;
(3) start anew to travel through the template file in read step (1) by program, read the often row of template file, judge wherein whether containing specific character string, if this row is without specific character string, then direct this row is write new script file; If this row has specific character string, then in the external file of step (2), find the data corresponding with it, and these data are substituted the specific character string in this row and generates new character string, then this row is write new script file;
(4) by routine call ADAMS software and script file new described in operating procedure (3), the output traverse of complex mechanism under virtual condition condition can be obtained.
In the present invention, in step (3), when reading the first row of template file, Str1 is designated as; During the second row, be designated as Str2; During the third line, be designated as Str3, by that analogy.
In the present invention, described external file form comprises txt; Xml; Html; Doc; Docx; Xls; Csv; Xlsx; Rtf.
After adopting said structure, the present invention has following beneficial effect:
The present invention reads template file and external file by making, program pass, and run new script file by routine call ADAMS software, the actual output traverse of complex mechanism can be obtained, the time of the method cost is few, analysis efficiency is high, and analysis result is accurate, can be directly used in and instruct actual production.
The present invention compared with prior art, considerably reduces workload, and shortens the time of complicated machinery gear train exploitation, decreases cost of development.
Embodiment
Below the complex mechanism actual output traverse analytical approach based on ADAMS script is described in further detail, in the method, described complex mechanism comprises the various complicated machinery gear trains such as crankshaft-linking rod drive mechanism, multi-jointed gear unit and cam link gear train, and the method comprises the following steps:
(1) utilize text editor or ADAMS software, make with the script file format compatible of ADAMS and include the dimension definitions of each part in specific character string and complex mechanism, position defines, constraint definition, simulation parameter define, measure the item defines template file;
(2) text editor is utilized, making includes the specific character string identical with step (1) and the external file with described specific character string corresponding data, and described data comprise the dimension information of each part in complex mechanism, positional information, constraint information, simulation parameter information and measure the item information;
(3) start anew to travel through the template file in read step (1) by program, read the often row of template file, judge wherein whether containing specific character string, if this row is without specific character string, then direct this row is write new script file; If this row has specific character string, then in the external file of step (2), find the data corresponding with it, and these data are substituted the specific character string in this row and generates new character string, then this row is write new script file; In this step, when reading the first row of template file, Str1 is designated as; During the second row, be designated as Str2; During the third line, be designated as Str3 by that analogy.When reading template file by program, for Visual Basic, template file is opened by calling the functions such as GetFile and OpenAsTextStream, this is often composed a piece of writing by calling ReadLine function acquisition template, then often composing a piece of writing in this to search whether have specific character string by String.Compare and/or Mid function, if nothing, then direct this row is write new script file; If had, then in the external file of step (2), find the data corresponding with it, and these data substituted specific character string in this of this style of writing and generate new character string and generate new text in other words, then by this style of writing, this writes new script file by WriteLine function.In this step, also template file is read by other compilers such as Visual C++, Visual C#, Java etc.;
(4) by routine call ADAMS software and script file new described in operating procedure (3), the output traverse of complex mechanism under virtual condition condition can be obtained.In this step, when by routine call ADAMS software, for Visual Basic, by arranging objExecuteFile.FileName, objExecuteFile.UseShellExecute, objExecuteFile.CreateNoWindow, objExecuteFile.RedirectStandardOutput, objExecuteFile.RedirectStandardError, the attributes such as objExecute.StartInfo, and call objExecute.Start, objExecute.WaitForExit, the opening and closing of the function control ADMAS processes such as objExecute.Close.In this step, also by other compilers such as Visual C++, Visual C#, Java etc. call ADAMS software and script file new described in operating procedure (3).
In the present invention, described external file form comprises txt; Xml; Html; Doc; Docx; Xls; Csv; Xlsx; Rtf.
Through on probation, the present invention is based on the complex mechanism actual output traverse analytical approach of ADAMS script, actual output traverse result can be drawn automatically, fast, efficiently, accurately, can be directly used in and instruct actual production, achieve good effect.
Claims (3)
1., based on a complex mechanism actual output traverse analytical approach for ADAMS script, described complex mechanism comprises crankshaft-linking rod drive mechanism, multi-jointed gear unit and cam link gear train, and it is characterized in that, the method comprises the following steps:
(1) utilize text editor or ADAMS software, make with the script file format compatible of ADAMS and include the dimension definitions of each part in specific character string and complex mechanism, position defines, constraint definition, simulation parameter define, measure the item defines template file;
(2) text editor is utilized, making includes the specific character string identical with step (1) and the external file with described specific character string corresponding data, and described data comprise the dimension information of each part in complex mechanism, positional information, constraint information, simulation parameter information and measure the item information;
(3) start anew to travel through the template file in read step (1) by program, read the often row of template file, judge wherein whether containing specific character string, if this row is without specific character string, then direct this row is write new script file; If this row has specific character string, then in the external file of step (2), find the data corresponding with it, and these data are substituted the specific character string in this row and generates new character string, then this row is write new script file;
(4) by routine call ADAMS software and script file new described in operating procedure (3), the output traverse of complex mechanism under virtual condition condition can be obtained.
2. the complex mechanism based on ADAMS script according to claim 1 actual output traverse analytical approach, is characterized in that: in step (3), when reading the first row of template file, is designated as Str1; During the second row, be designated as Str2; During the third line, be designated as Str3, by that analogy.
3. the complex mechanism based on ADAMS script according to claim 1 and 2 actual output traverse analytical approach, is characterized in that: described external file form comprises txt; Xml; Html; Doc; Docx; Xls; Csv; Xlsx; Rtf.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510360471.8A CN104990706A (en) | 2015-06-26 | 2015-06-26 | Method for analyzing actual output stroke of complex mechanism based on ADAMS script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510360471.8A CN104990706A (en) | 2015-06-26 | 2015-06-26 | Method for analyzing actual output stroke of complex mechanism based on ADAMS script |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104990706A true CN104990706A (en) | 2015-10-21 |
Family
ID=54302548
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510360471.8A Pending CN104990706A (en) | 2015-06-26 | 2015-06-26 | Method for analyzing actual output stroke of complex mechanism based on ADAMS script |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104990706A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1758256A (en) * | 2005-11-23 | 2006-04-12 | 中国航天科技集团公司第一研究院 | Digital model integral design method of complex product based on file |
CN101571888A (en) * | 2009-06-17 | 2009-11-04 | 哈尔滨工业大学 | Simulation analytical method with combination of multi-finite element software for relay |
KR101297755B1 (en) * | 2012-11-08 | 2013-08-22 | 주재훈 | Multi-purpose simulated load test apparatus for actuator and simulation test system using thereof |
CN104361149A (en) * | 2014-10-20 | 2015-02-18 | 北京航天发射技术研究所 | Method for building virtual prototype of multi-shaft heavy vehicle |
-
2015
- 2015-06-26 CN CN201510360471.8A patent/CN104990706A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1758256A (en) * | 2005-11-23 | 2006-04-12 | 中国航天科技集团公司第一研究院 | Digital model integral design method of complex product based on file |
CN101571888A (en) * | 2009-06-17 | 2009-11-04 | 哈尔滨工业大学 | Simulation analytical method with combination of multi-finite element software for relay |
KR101297755B1 (en) * | 2012-11-08 | 2013-08-22 | 주재훈 | Multi-purpose simulated load test apparatus for actuator and simulation test system using thereof |
CN104361149A (en) * | 2014-10-20 | 2015-02-18 | 北京航天发射技术研究所 | Method for building virtual prototype of multi-shaft heavy vehicle |
Non-Patent Citations (2)
Title |
---|
张帆等: "基于MATLAB的折臂式高压隔离开关机构动态分析", 《机器制造与自动化》 * |
聂永芳等: "基于ADAMS的抓取机器虚拟样机的运动仿真", 《煤矿机械》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7371141B2 (en) | Tools and methods for real-time dataflow programming languages | |
US8032232B2 (en) | Natively retaining project documentation in a controller | |
US9720811B2 (en) | Unified model for visual component testing | |
US20180113794A1 (en) | Webgl application analyzer | |
CN106293664A (en) | Code generating method and device | |
CN105068927A (en) | Keyword drive-based automatic test method of urban rail drive control units | |
US9304893B1 (en) | Integrated software development and test case management system | |
US8701079B2 (en) | Procedure and development environment for generation of an executable overall control program | |
US10133803B2 (en) | Coverage data interchange | |
CN106227654A (en) | A kind of test platform | |
CN107179910A (en) | The logic configuration method that a kind of online editing comes into force immediately | |
CN108279885A (en) | A kind of method and device that multiple model codes are carried out with Integrated Simulation | |
Pereira et al. | Web based IOPT Petri net Editor with an extensible plugin architecture to support generic net operations | |
Sandmann et al. | Autosar-compliant development workflows: From architecture to implementation-tool interoperability for round-trip engineering and verification and validation | |
Nardone et al. | An OSLC-based environment for system-level functional testing of ERTMS/ETCS controllers | |
Hopsu et al. | On portability of IEC 61499 compliant structures and systems | |
CN111078217A (en) | Brain graph generation method, apparatus and computer-readable storage medium | |
CN104990706A (en) | Method for analyzing actual output stroke of complex mechanism based on ADAMS script | |
Gómez | Supporting integration activities in object-oriented applications | |
CN104992379A (en) | Dynamic text exchange format management method of big data of power industry | |
Schumacher et al. | Fostering Model Consistency in Interdisciplinary Engineering by Linking SysML and CAD-Models | |
CN105607957B (en) | A kind of data acquisition analysis system based on OPC DA | |
Samara | A practical approach for detecting logical error in object oriented environment | |
Shin et al. | Automated test case generation for automotive embedded software testing using XMI-based UML model transformations | |
CN104252409A (en) | Method and system for obtaining WebApp executing process |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into 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: 20151021 |