19
Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington Energy Conversion and Integration Thrust (EC&I) Center for Advanced Power Systems

Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

  • Upload
    vantruc

  • View
    234

  • Download
    4

Embed Size (px)

Citation preview

Page 1: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

Processor-in-the-loop tutorial

Fernand Diaz Franco Advisor: Dr. Chris Edrington

Energy Conversion and Integration Thrust (EC&I) Center for Advanced Power Systems

Page 2: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

About EC&I

Focus Design, modeling, simulation, and experimentation of various energy conversion apparatus.

Page 3: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

Sequential Design and Validation Phases

Page 4: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

Sequential Design and Validation Phases

HIL

Page 5: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

Sequential Design and Validation Phases

HIL

PIL

Page 6: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

• Concepts SIL – PIL

• PIL key aspects

• Implementation

• Conclusions

Outline

Page 7: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

SIL – PIL

Page 8: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

SIL – PIL

SIL

Page 9: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

SIL – PIL

PIL

Page 10: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

Discrepancy on SIL – PIL

Page 11: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

Processor-in-the-loop

Control Hardware-in-the-loop

Page 12: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

Processor-in-the-loop

Control Hardware-in-the-loop

Processor-in-the-loop

Page 13: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

Processor-in-the-loop

Page 14: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

• Reduce cost compared with HIL • Arbitrary test-probes • Effects of the fixed point calculation in code • Pseudo real-time execution facilitates

debugging • WBG based power converters with high

frequency

Well suited for development, verification and validation

Main Advantages of PIL

Page 15: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

RP with PIL

Control design

Code generation Verification

Embedded code and the simulation software require initial configuration

Communication, variables to read and write, sample time definition

Page 16: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

Implementation of PIL

Peripheral explorer board TMS320F28335 controlCARD

Page 17: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

PIL Implementation

Filter coefficients and regulator gains controlled in software

Page 18: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

PIL Simulations

Time (s) Time (s)

Page 19: Processor-in-the-loop tutorial - NREL · Processor-in-the-loop tutorial Fernand Diaz Franco Advisor: Dr. Chris Edrington . Energy Conversion and Integration Thrust (EC&I) Center for

• PIL offers valuable information of the control hardware since it can take the advantage of the simulation environment to test upfront scenarios.

• PIL work is an excellent precursor to CHIL and could prove to be a good addition to the HIL design cycle.

Conclusions