Documentation

xPCFileScopeSignalCollection.Add

Add signals to file scope

Syntax

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

Description

Class: xPCFileScopeSignalCollection Class

Method

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public xPCFileScopeSignal Add(xPCSignal signal) adds signals to the file scope. It creates an xPCFileScopeSignal object with signal. signal is the xPCSignal object that represents the actual signal. This method returns a file scope signal object of type xPCFileScopeSignal.

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

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

public IList<xPCFileScopeSignal> Add(int[] sigIds) adds signals to the file scope. It creates an IList of xPCFileScopeSignal 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 xPCFileScopeSignal objects.

Exception

ExceptionCondition

xPCException

When problem occurs, query xPCException object Reason property.

Introduced in R2011b

Was this topic helpful?