Documentation

xPCHostScopeSignalCollection.Add

Add signals to host scope

Syntax

public xPCHostScopeSignal Add(xPCSignal signal)
public xPCHostScopeSignal Add(string blkpath)
public xPCHostScopeSignal Add(int sigId)
public IList<xPCHostScopeSignal> Add(int[] sigIds)

Description

Class: xPCHostScopeSignalCollection Class

Method

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public xPCHostScopeSignal Add(xPCSignal signal) adds signals to the host scope. It creates xPCHostScopeSignal object with signal. signal is the xPCSignal object that represents the actual signal. This method returns an xPCHostScopeSignal object.

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

public xPCHostScopeSignal Add(int sigId) adds signals to the host scope. It creates an xPCHostScopeSignal object specified with sigId. sigId is a 32-bit integer that represents the actual signal. This method returns a host scope signal object of type xPCHostScopeSignal.

public IList<xPCHostScopeSignal> Add(int[] sigIds) adds signals to the host scope. It creates an ILIST of xPCHostScopeSignal objects, one for each signal in the array of IDs. sigIds is an array of 32-bit integers that specifies an array of IDs that represent the actual signals. This method returns an ILIST of xPCHostScopeSignal objects.

Exception

ExceptionCondition

xPCException

When problem occurs, query xPCException object Reason property.

Introduced in R2011b

Was this topic helpful?