sltest.testsequence.newBlock
Create Test Sequence block
Description
Examples
Create a Test Sequence Block and Get Block Properties
This example shows how to create a Test Sequence block programmatically, and get properties for the block, which can be used in Name
, Value
pairs for sltest.testsequence.setProperty
.
1. Create a model and a Test Sequence block.
new_system('tsb_model'); sltest.testsequence.newBlock('tsb_model/Test Sequence');
2. Get properties of the Test Sequence block.
block_properties = sltest.testsequence.getProperty... ('tsb_model/Test Sequence')
block_properties = struct with fields:
Name: 'Test Sequence'
UpdateMethod: 'INHERITED'
SampleTime: '-1'
Description: ''
Document: ''
Tag: []
SupportVariableSizing: 1
SaturateOnIntegerOverflow: 1
InputFimath: 'fimath(......'
EmlDefaultFimath: 'Same as MATLAB Default'
EnableActiveStepData: 0
ActiveStepDataSymbol: ''
ActiveStepDataType: 'String'
ScenarioParameter: ''
Semantics: 'StateflowCompatible'
3. Close the model.
close_system('tsb_model',0)
Input Arguments
blockPath
— Test Sequence block path
string | character vector
Path to a Test Sequence block, including the block name, specified as a string or character vector.
Example: 'FanSpeedTestHarness/Test Sequence'
Output Arguments
blockID
— Handle to the block
double
Block handle, returned as a double.
Example: 190.0021
Version History
Introduced in R2017a
Abrir ejemplo
Tiene una versión modificada de este ejemplo. ¿Desea abrir este ejemplo con sus modificaciones?
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de 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)