Block Diagram Model Modification for Automated Source Code Generation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The existing methods for transferring changes between block diagrams with cyclically calculated models are inefficient, especially when dealing with hierarchical models and different semantic layers, requiring significant manual effort and lacking automated solutions for code generation.

Innovation Solution

A method is introduced that applies transformation rules to identify and insert or delete blocks, and configuration rules to adapt parameters, creating intermediate models for efficient comparison and automated transfer of changes between block diagrams, reducing manual adjustments and enabling seamless code generation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If manual annotation is performed for code generation from block diagrams, then code generation accuracy is improved, but development time and manual effort increase significantly

Engineering Contradiction:
Improvecode generation accuracyVSAvoiddevelopment time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-defining transformation rules and configuration rules that automatically transfer changes from basic models to extension models. Instead of manually annotating each model version, the system pre-configures rules that automatically handle parameter updates, block insertions, and deletions when models are versioned or modified, thereby reducing manual effort while maintaining accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary mechanism in the form of transformation rules and configuration rules that mediate between basic models and extension models. These rules act as intermediaries that automatically transfer and adapt changes, eliminating the need for direct manual annotation of each model version while ensuring accurate code generation.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Adaptability or versatility

If block diagrams are modified manually for different projects and phases, then model adaptability is improved, but productivity decreases due to repetitive manual work

Engineering Contradiction:
Improvemodel adaptabilityVSAvoiddevelopment productivity
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent applies universality by creating extension models that can serve multiple projects and phases. The transformation rules and configuration rules are designed to be universally applicable across different basic models and project phases, allowing a single extension model to be adapted to various code generation requirements without repetitive manual modifications.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent uses copying by automatically replicating and adapting changes from basic models to extension models through predefined rules. When a basic model is modified or versioned, the system automatically copies and transfers the necessary changes to the corresponding extension model, eliminating repetitive manual work while maintaining model adaptability across different projects.

Inventive Principle:
Principle #26Copying

3Extent of automation

If automated transformation rules are applied to transfer changes between block diagrams, then manual effort is reduced, but handling hierarchical models and semantic layers becomes more complex

Engineering Contradiction:
Improveautomation levelVSAvoidsystem complexity
Core Design Contradiction:
Extent of automationVSDevice complexity

Solution Approach 1:

The patent applies segmentation by dividing the model transformation process into distinct rule types: transformation rules for structural changes (block insertions/deletions) and configuration rules for parameter adaptations. This segmentation allows the system to handle hierarchical models and semantic layers systematically, reducing the perceived complexity by breaking down the automation into manageable, rule-based components.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS10884714B2Method for modifying models for generating source code
Publication Date: 2021.01.05 DSPACE SE & CO KG
  • US10884714B2 patent drawing
  • US10884714B2 patent drawing
  • US10884714B2 patent drawing

AI summary

A method for transferring changes between block diagrams having cyclically calculated models of blocks connected to signals includes: applying a plurality of transformation rules to the first block diagram to obtain a first intermediate model, wherein a transformation rule includes a rule for identifying blocks and a change to be applied to recognized blocks, wherein at least one extension block is inserted and/or at least one basic block is deleted; comparing the second block diagram to the first intermediate model; determining at least one configuration rule from the comparison, a configuration rule comprising a rule for identifying a block or parameter and a change to be applied to an extension parameter; applying the plurality of transformation rules to the third block diagram to obtain a second intermediate model; and applying the at least one configuration rule to the second intermediate model to obtain a fourth block diagram.