Main Content

ramp

テスト信号生成の入力値を返す

説明

y = ramp(x) は、x の値を返します。ramp 演算子は Test Sequence ブロックまたは Test Assessment ブロックのテスト ステップで使用します。

すべて展開する

Test Sequence ブロックで、テスト ステップがアクティブなときに値 1 の定数信号を出力します。

A test step that outputs a constant value of 1 while active.

Test Sequence ブロックで 1 と等しい信号が出力されます。

The output of the Test Sequence block, shown in a Scope block.

Test Sequence ブロックで、テスト ステップ中に 3 秒ごとに 1 単位ずつ増加する信号を生成します。

A test step that outputs a signal that increases one unit every 3 seconds while active.

Test Sequence ブロックで et/3 と等しい信号が出力されます。

The output of the Test Sequence block, shown in a Scope block.

入力引数

すべて展開する

テスト ステップにおける値。数値スカラーとして指定します。

データ型: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

バージョン履歴

R2015a で導入