Documentation

xPCSignals Class

Access signal objects

Syntax

public class xPCSignals : xPCApplicationObject

Description

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public class xPCSignals : xPCApplicationObject initializes a new instance of the xPCSignals class.

Methods

MethodDescription
xPCSignals.GetSignalsList of xPCSignal objects specified by array of signal identifiers
xPCSignals.GetSignalsValueVector of signal values from array
xPCSignals.RefreshRefresh state of object

Properties

PropertyC# Declaration SyntaxDescriptionException

NumSignals

public int NumSignals {get;}

Get total numbers of signals available in real-time application.

 

this

public xPCSignal Item[int signalIdx] {get;}

public xPCSignal Item[string blkPath] {get;}

Return reference to xPCSignal object specified by its signal identifier (signalIdx) or signal name (blkPath).

signalIdx is a 32–bit integer that identifies the signal.

blkPath is a character string that specifies the block path name for the signal.

xPCException — When problem occurs, query xPCException object Reason property.

ArgumentNullExceptionsignalIdx or blkPath is NULL reference.

Introduced in R2011b

Was this topic helpful?