Main Content

varyTestProperties

Add variations to Euro NCAP test bench properties

Since R2024b

Description

varyTestProperties(variations,Name=Value) adds Euro NCAP® test bench property variations to the variationProperties object variations by using one or more name-value arguments. For example, StartTestTime=2 specifies to start the Euro NCAP safety assessment test at a time of 2 seconds.

Note

This function requires the Automated Driving Toolbox™ Test Suite for Euro NCAP® Protocols support package. You can install the Automated Driving Toolbox Test Suite for Euro NCAP Protocols support package from the Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.

example

Examples

collapse all

Create an empty variationProperties object.

variation = variationProperties;

Add to the Euro NCAP test bench properties.

varyTestProperties(variation,StartTestTime=5,EndTestTime=8,HandoverTime=7)

Display the Euro NCAP test bench property variations.

testVariationProperties = variation.TestVariationProperties
testVariationProperties = struct with fields:
    StartTestTime: 5
      EndTestTime: 8
     HandoverTime: 7

Input Arguments

collapse all

Variation properties, specified as a variationProperties object.

Name-Value Arguments

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Example: varyTestProperties(variation,StartTestTime=2) specifies to start the Euro NCAP safety assessment test at a time of 2 seconds.

Time to start the Euro NCAP safety assessment test, specified as a scalar. Units are in seconds.

Example: StartTestTime=2 specifies to start the Euro NCAP safety assessment test at a time of 2 seconds.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Time to hand-over of control for Euro NCAP safety assessment testing, specified as a scalar. Units are in seconds.

Example: HandoverTime=3 specifies a time of 3 seconds for hand-over of control for Euro NCAP safety assessment testing.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Time to end the Euro NCAP safety assessment test, specified as a scalar. Units are in seconds.

Example: EndTestTime=5 specifies to end the Euro NCAP safety assessment test at a time of 5 seconds.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Version History

Introduced in R2024b