Documentation Center

  • 評価版
  • 製品アップデート

isSignal

Check if signal name is mapped

Syntax

RESULT = isSignal(OBJ, SIGNALNAME)

Description

RESULT = isSignal(OBJ, SIGNALNAME) returns true if SIGNALNAME is an existing mapping in the given TestCase OBJ.

Examples

Create a test case; create two signals within the test case – In1, which is a step, and In2, which is a ramp. Verify that In1 is mapped.

testCase = systest.TestCase('Test Case 1');
testCase.In1 = systest.signals.Signal('Step');
testCase.In2 = systest.signals.Signal('Ramp');

result = isSignal(testCase, 'In1')
Was this topic helpful?