Automate Design and Modeling with Scripts
The Model-Based Calibration Toolbox™ product is a software tool for modeling and calibrating powertrain systems. The command-line interface to the Model-Based Calibration Toolbox enables the design of experiments and modeling tools available in the toolbox to be accessible from the test bed.
You can use these commands to assemble your specific engine calibration processes into an easy to use script or graphical interface. Calibration technicians and engineers can use the custom interface without the need for extensive training. This system enables:
Transfer of knowledge from the research and development engineers into the production environment
Faster calibration
Improved calibration quality
Improved system understanding
Reduced development time
Processes You Can Automate
You can use these command-line functions to automate engine modeling processes.
| Goal | Function | |
|---|---|---|
| Create or load a project | mbcmodel.project | |
| Create a new test plan for the project using a template | CreateTestplan | |
| Create designs that define data points to collect on the test bed | CreateDesign | |
| Work with classical, space-filling or optimal designs | ||
| Create or load a data object for the project and make it editable | ||
| Load data from a file or the workspace | ||
| Work with data | Examine | Value |
| Modify | ||
| Add variables | AddVariable | |
| Add | Append | |
| Group | ||
| Export | ExportToMBCDataStructure | |
| Save your changes to the data, or discard them | ||
| Designate which project data object to use for modeling in your test plan | AttachData | |
| Create and evaluate boundary models, either in a project or standalone | Boundary Model Scripting | |
| Create models for the data; these can be one- or two-stage models and can include datum models | CreateResponse | |
| Work with your models | Examine input data and response data | |
| Examine predicted values at specified inputs | ||
| Examine Predicted Error Variance (PEV) at specified inputs | ||
| Examine and remove outliers | ||
| Create a selection of alternative models | CreateAlternativeModels | |
| Choose the best model by using the diagnostic statistics | ||
| Extract a model object from any response object | ||
| For two-stage test plans, once you are satisfied with the fit of the local and response feature models, calculate the two-stage model | MakeHierarchicalResponse | |
| Export models to MATLAB® or Simulink® | Export | |
Engine Modeling Scripts
To open examples scripts, in the system web browser, select the Examples tab. Run the scripts to learn about:
Loading and Modifying Data
Designing experiments and constraining designs
Gasoline engine modeling script to automatically generate a project for the gasoline case study, including:
Grouping and filtering data
Boundary modeling
Response modeling
Removing outliers and copying outlier selections
Creating alternative models and selecting the best based on statistical results
Point-by-point diesel engine modeling to automatically generate a project for the diesel case study, including:
Defining engine operating points
Creating designs for each operating point
Augmenting designs to collect more data
Building a point-by-point boundary model
Create response models using the local multiple model type