16
© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 1 CONTROL SOFTWARE DEVELOPMENT USING MATLAB TOOLCHAIN Presented by: Aditya Chendke & Nabal K Pandey Hybrid & Electrification CoE, M&M Ltd. India MATLAB EXPO - 2019

CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 1

CONTROL SOFTWARE DEVELOPMENT USING

MATLAB TOOLCHAIN

Presented by:

Aditya Chendke & Nabal K Pandey

Hybrid & Electrification CoE, M&M Ltd. India

MATLAB EXPO - 2019

Page 2: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 2

Agenda

▪ Development Challenges

– Need of Hour

▪ Development Approach

– Software Architecture

– Concept Generation

– Software Development

– Testing Methods

– Benefits

▪ Summary/Conclusion

Page 3: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 3

Development Challenges

▪ Complexity

▪ Targets

Page 4: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 4

Development Challenges – Need of Hour

Front Loading Development Approach

Page 5: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 5

Development ApproachConventional MBD Workflow

System

Specs

Software

Development

Page 6: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 6

Development ApproachIntegrated MBD Workflow

System

Specs

Software

Development

System

Specs

Software

Development

Page 7: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 7

Quality

• Concept Ambiguity

• Requirement Elicitation

Time

• Architecture Definition

Challenges

Development ApproachSw Architecture

System

Specs

Requirement

Analysis

SWC

Definition

Sw

Architecture

Quality• Concept

Ambiguity

• Req Elicitation

Time

• Architecture Def

Challenges

Quality

• Deliberation

• Cascaded

Time

• Modular

Architecture

Solution

Requirement AnalysisSystem Specs → Sw Requirement

System

Specs

Requirement

Analysis

SWC

Definition System

Specs

SW Req

SWC Definition

Elicitation of Sw Req into Sw Component

System

Specs

Requirement

Analysis

SWC

Definition

System

Specs

SW Req

SR1 , SR 8,

SR11, SR12

Input

SR 2, SR9

SR 13

SR7,SR15

SR16,SR18

Enable

Output

Mode

Select

SR3, SR4 SR5, SR6

SR14,SR17

Aux Control

SWC Definition

SWC Architecture

Architecture definition in MATLAB/SIMULINK

System

Specs

Requirement

Analysis

SwC

Definition

Sw

Architecture

Page 8: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 8

Development ApproachConcept Generation

Sw ArchSystem Specs

Algo Dev

- Concept

- IO Mapping

- Tags

- Test case

Sw Concept

Quality• Concept

Coverage

• Traceability

• IO Mapping

Time

• Algo Def

Challenges

Quality

• Better Coverage

• Better

Traceability

Time

• Robust Algo

Solution

Quality• Concept Coverage

• Traceability

• IO Mapping

Time• Algo Definition

Challenges

Algo Dev

- Concept

- IO Mapping

- Tags

- Test case

Concept Definition

Detailed Concept as per System Spec and Sw

Architecture

ConceptInput Output

Interface Interface

IO Mapping

• Interfaces Requirement between Algorithm

ComponentsAlgo Dev

- Concept

- IO Mapping

- Tags

- Test case

Functional Test Point & Tagging

Functionality Test Requirement (Coverage)

& Tagging (Traceability)

Tagging

Page 9: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 9

Development ApproachSw Development

Quality• MDL Consistency

• Traceability

• Future Adaptation

Time

• Short Dev Time

Challenges

Quality

• Robust Model

• Sys→ Model

Traceability

• Modular/ Reuse

Time

• Quick

Development

Solution

Quality• Model Consistency

• Traceability

• Future Adaptation

Time• Shorter Development Time

ChallengesSw Concept

Sw

Development

Documentation

SwC

Develop

Traceability/

Tagging

SwC Integration

Sw Concept

Sw

Development

Documentation

SwC

Develop

Traceability/

Tagging

SwC Integration

SwC DevelopmentModule Development (Floating)✓ Modular

✓ Library Function

Sw Concept

Sw

Development

Documentation

SwC

Develop

Traceability/

Tagging

SwC Integration

SwC DevelopmentModule Development (Floating)✓ Modular

✓ Library Function

Sw Concept

Sw

Development

Documentation

SwC

Develop

Traceability/

Tagging

SwC Integration

SwC DevelopmentFixed Point Implementation

Sw Concept

Sw

Development

Documentation

SwC

Develop

Traceability/

Tagging

SwC Integration

Traceability/ Tagging✓ Requirement/ Test Case Traceability

✓ Concept Tagging

Sw Concept

Sw

Development

Documentation

SwC

Develop

Traceability/

Tagging

SwC Integration

Traceability/ Tagging✓ Requirement/ Test Case Traceability

✓ Concept Tagging

Sw Concept

Sw

Development

Documentation

SwC

Develop

Traceability/

Tagging

SwC

Integration

SwC IntegrationAll Sw Component Integrated as per Architecture

Sw Concept

Sw

Development

Documentation

SwC

Develop

Traceability/

Tagging

SwC Integration

DocumentationAutomated Documentation

Report.m

Page 10: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 10

Development ApproachTesting Methods

Sw

Development

SwC Testing

SwSys

Verified

Quality• Test Coverage

• Acceptance

• Testing Phase

Time

• Model

Complexity

Challenges

Quality• Test Coverage

• Acceptance Criteria

• Testing Phase

Time• Model Complexity

Challenges

SwSys

Testing

SwC TestingOpen Loop Testing

Sw component →Functional, Coverage

SwC Testing

SwSys

Testing

SwC Testing

SwSys

Testing

Page 11: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 11

Development ApproachTesting Methods

Sw

Development

SwC Testing

SwSys

Verified

Quality• Test Coverage

• Acceptance

• Testing Phase

Time

• Model

Complexity

Challenges

SwSys

Testing

SwC Testing

SwSys

Testing

SwC Testing

SwSys

Testing

Test Harness Creation Test Manager Definition Test Execution

Simulink Test

Test Reporting

Page 12: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 12

Development ApproachTesting Methods

Sw

Development

SwC Testing

SwSys

Verified

Quality• Test Coverage

• Acceptance

• Testing Phase

Time

• Model

Complexity

Challenges

Quality

• Better Coverage

• White box/ Black

box Testing

Time

• Early Reliability

• SwC/SwSys Test

Solution

Quality• Test Coverage

• Acceptance Criteria

• Testing Phase

Time• Model Complexity

Challenges

SwSys

Testing

SwC TestingOpen Loop Testing (MiL/SiL)

Sw component →Functional, Logic , Coverage

SwC Testing

SwSys

Testing

SwC Testing

SwSys

Testing

SwC Testing

SwSys

Testing

SwSys TestingClosed Loop Testing

Sys Level →Functional, Non- Functional

SwSys

Verified

SwSys

Testing

Page 13: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 13

Development Approach

Conv MBD

ProcessTime QC Point Development Phase

5xSw

Architecture

Req Analysis

-

2x Sw Architecture

5x

Software

Development

Algorithm Development

-

10x Qc1 Software Component Development

1x Sw Component Integration

5xTesting

Sw Component Testing

4x Qc2 SwSys Testing22%

14%

18%

22%

67%3x Rework 1x

36x Overall Development Time 28x

✓More QC point, better Software Quality✓Rework time is reduced by 67%.

✓Higher Coverage.

✓Overall Development time is reduced by 22%.

Benefits

Conv MBD

Process

Integrated

MBD ProcessTime QC Point Development Phase QC Point Time

5xSw

Architecture

Req AnalysisSw

Architecture

4x

- Sw Component Definition 1x

2x Sw Architecture Qc1 1x

5x

Software

Development

Algorithm Development Concept

Generation

4x

- Sw Concept Qc2 3x

10x Qc1 Software Component DevelopmentSoftware

Development

Qc3 5x

Traceability/ Tagging 1x

2x Sw Component Integration Qc4 1x

5xTesting

Sw Component TestingTesting

4x

4x Qc2 SwSys Testing Qc5 3x

Page 14: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 14

S.No. Approach Outcome

1 Reduced Complexity

2 Bidirectional Traceability

3 Higher Testing Coverage

4 Robust Algorithm/ Model

5 Modular Structure

6 Higher Ease of Maintenance

7 Quality Checkpoints

8 Automated Documentation

S.No. Approach Outcome Impact Parameter

Time Cost Quality

1 Reduced Complexity

2 Bidirectional Traceability

3 Higher Testing Coverage

4 Robust Algorithm/ Model

5 Modular Structure

6 Higher Ease of Maintenance

7 Quality Checkpoints

8 Automated Documentation

Summary

Page 15: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 15

Disclaimer

Mahindra & Mahindra herein referred to as M&M, and its subsidiary companies provide a wide array of presentations and reports,

with the contributions of various professionals. These presentations and reports are for informational purposes and private circulation

only and do not constitute an offer to buy or sell any securities mentioned therein. They do not purport to be a complete description of

the markets conditions or developments referred to in the material. While utmost care has been taken in preparing the above, we

claim no responsibility for their accuracy. We shall not be liable for any direct or indirect losses arising from the use thereof and the

viewers are requested to use the information contained herein at their own risk. These presentations and reports should not be

reproduced, re-circulated, published in any media, website or otherwise, in any form or manner, in part or as a whole, without the

express consent in writing of M&M or its subsidiaries. Any unauthorized use, disclosure or public dissemination of information

contained herein is prohibited. Unless specifically noted, M&M or any of its subsidiary companies is not responsible for the content of

these presentations and/or the opinions of the presenters. Individual situations and local practices and standards may vary, so

viewers and others utilizing information contained within a presentation are free to adopt differing standards and approaches as they

see fit. You may not repackage or sell the presentation. Products and names mentioned in materials or presentations are the property

of their respective owners and the mention of them does not constitute an endorsement by M&M or its subsidiary companies.

Information contained in a presentation hosted or promoted by M&M is provided “as is” without warranty of any kind, either expressed

or implied, including any warranty of merchantability or fitness for a particular purpose. M&M or its subsidiary companies assume no

liability or responsibility for the contents of a presentation or the opinions expressed by the presenters. All expressions of opinion are

subject to change without notice.

Thank You

Page 16: CONTROL SOFTWARE DEVELOPMENT USING MATLAB · – Testing Methods – Benefits ... • White box/ Black box Testing Time • Early Reliability • SwC/SwSys Test Solution Quality •Test

© 2019 – CONFIDENTIAL,M&M Ltd. All Rights Reserved 16