sdiSummary
Display Simulation Data Inspector plots of powertrain energy and power
Since R2019a
Description
The
sdiSummary(
method plots the powertrain energy and power analysis results for the
PlantInfoObj
,blocknames
)autoblks.pwr.PlantInfo
object.
Use instances of the autoblks.pwr.PlantInfo
object to evaluate and report power an energy for
component-level blocks and system-level models.
Examples
Use sdiSummary
Method to Plot Results
Analyze the power and energy in the conventional vehicle reference
application. To use the sdiSummary
method to display the Simulation
Data Inspector plots of the engine and drivetrain results, see step 8.
Open the conventional vehicle reference application. By default, the application has a mapped 1.5 L spark-ignition (SI) engine and a dual clutch transmission. Project files open in a writable location.
Set the system name to SiCiPtReferenceApplication
.
Create the autoblks.pwr.PlantInfo
object.
Use the PwrUnits
and EnrgyUnits
properties to
specify the units.
SysName = 'SiCiPtReferenceApplication'; VehPwrAnalysis = autoblks.pwr.PlantInfo(SysName); VehPwrAnalysis.PwrUnits = 'kW'; VehPwrAnalysis.EnrgyUnits = 'MJ';
Use the run
method to turn on logging, run simulation, and add
logged data to the object.
run(VehPwrAnalysis);
Use the dispSysSummary
method to display the results.
dispSysSummary(VehPwrAnalysis);
Use the xlsSysSummary
method to write the results to a
spreadsheet.
xlsSysSummary(VehPwrAnalysis,'EnergySummary.xlsx');
Use the findChildSys
method to retrieve the
autoblks.pwr.PlantInfo
object for the Engine subsystem.
To display the results, use the dispSignalSummary
method.
Use the histogramEff
method to display a histogram of the time
spent at each engine plant efficiency.
EngSysName = 'SiCiPtReferenceApplication/Passenger Car/Engine';
EngPwrAnalysis = findChildSys(VehPwrAnalysis,EngSysName);
dispSignalSummary(EngPwrAnalysis);
histogramEff(EngPwrAnalysis);
Use the findChildSys
method to retrieve the
autoblks.pwr.PlantInfo
object for the Drivetrain
subsystem.
To display the results, use the dispSignalSummary
method.
DrvtrnSysName = 'SiCiPtReferenceApplication/Passenger Car/Drivetrain';
DrvtrnPwrAnalysis = findChildSys(VehPwrAnalysis,DrvtrnSysName);
dispSignalSummary(DrvtrnPwrAnalysis);
To plot the results, use the sdiSummary
method.
sdiSummary(VehPwrAnalysis,{EngSysName,DrvtrnSysName})
Input Arguments
PlantInfoObj
— Instance of PlantInfo
object
autoblks.pwr.PlantInfo
object
autoblks.pwr.PlantInfo
object for the system that you want to
analyze.
blocknames
— Block or name
character vector | string | 'all'
Block or subsystem names, specified as a character vector or a string, separated by a comma.
Example: 'SiCiPtReferenceApplication/Passenger
Car/Engine'
Example: 'SiCiPtReferenceApplication/Passenger
Car/Engine','SiCiPtReferenceApplication/Passenger
Car/Drivetrain'
Data Types: char
| string
Version History
Introduced in R2019a
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)