Main Content

isValidSignalID

Check whether signal ID corresponds to signal in Simulink.sdi.Run object

Description

isValid = isValidSignalID(runObj,sigID) returns the logical indication isValid of whether the signal ID sigID corresponds to a signal in the Simulink.sdi.Run object runObj.

Input Arguments

collapse all

Run in the Simulation Data Inspector, specified as a Simulink.sdi.Run object.

Unique numeric signal identifier, specified as an integer. The Simulation Data Inspector assigns a signal ID to each signal when a run is created. You can get the signal ID for a signal using one of these functions:

Output Arguments

collapse all

Signal validity, returned as a logical 1 or 0.

  • 1 — The specified signal ID corresponds to a signal in the specified run.

  • 0 — The specified signal ID does not correspond to a signal in the specified run.

Version History

Introduced in R2012b