Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

sdl_update

Convert Simscape Driveline first-generation model or library to second-generation format

Syntax

newsysname = sdl_update('sys')
newsysname = sdl_update('sys','oldlib1','newlib1','oldlib2', ...)

Description

newsysname = sdl_update('sys') converts Simscape™ Driveline™ First-Generation components in the Simulink® system sys.

newsysname = sdl_update('sys','oldlib1','newlib1','oldlib2', ...) converts the Simscape Driveline First-Generation components in the Simulink system sys that contains references to the Simscape Driveline First-Generation libraries oldlib1, oldlib2, ... which are already converted to newlib1, newlib2, ..., respectively.

In both forms, sdl_update creates a new system based on the Simscape Driveline transitional library (sdl_classic) and returns the name of the new system. The new system is saved in your current folder and remains loaded.

Output Arguments

newsysname

Character vector containing name of new, converted Simulink system

Examples

Converting a Model

Update the model drive_ex1:

sdl_ex1 = sdl_update('drive_ex1');

Converting a Model and a Linked Library

If a model drive_model references blocks from library drive_userlib, update drive_userlib into a new library and drive_mdl into a new model:

sdl_userlib = sdl_update('drive_userlib'); % Update library first
sdl_model = sdl_update('drive_model','drive_userlib',sdl_userlib); 
% Then update model linked to library

sdl_userlib and sdl_model are character vectors that contain system names, not the system names themselves.

Was this topic helpful?