Documentation

xPCTargetScopeSignalCollection.Add

Create xPCTargetScopeSignal object

Syntax

public xPCTgtScopeSignal Add(xPCSignal signal)
public xPCTgtScopeSignal Add(string blkPath)
public xPCTgtScopeSignal Add(int sigId)
public IList<xPCTgtScopeSignal> Add(int[] sigIds)

Description

Class: xPCTargetScopeSignalCollection Class

Method

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public xPCTgtScopeSignal Add(xPCSignal signal) creates xPCTargetScopeSignal object with signal. It then adds xPCTargetScopeSignal object to xPCTargetScopeSignalCollection object. signal is of type xPCSignal. This method returns an xPCTargetScopeSignal object.

public xPCTgtScopeSignal Add(string blkPath) adds signal to the target scope. It creates an xPCTargetScopeSignal object that blkPath specifies. blkPath is a character string that specifies the signal name (block path). This method returns a target scope signal object of type xPCTgtScopeSignal.

public xPCTgtScopeSignal Add(int sigId) creates xPCTargetScopeSignal object with sigId. It then adds xPCTargetScopeSignal object to xPCTargetScopeSignalCollection object. sigId is a 32-bit integer. This method returns an xPCTargetScopeSignal object.

public IList<xPCTgtScopeSignal> Add(int[] sigIds) creates an ILIST of xPCTargetScopeSignal objects with an array of IDs. sigIds is an array of 32-bit integers that specifies an array of IDs for file scope signal objects.

Exception

ExceptionCondition

xPCException

When problem occurs, query xPCException object Reason property.

Introduced in R2011b

Was this topic helpful?