Documentation

xPCSignal Class

Access signal objects

Syntax

public class xPCSignal : xPCApplicationObject

Description

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

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

Methods

MethodDescription
xPCSignal.GetValueValue of signal at moment of request
xPCSignal.TryGetValueStatus of get signal value at moment of request

Properties

PropertyC# Declaration SyntaxDescription

BlockPath

public virtual string BlockPath {get;}

Get block path name (signal name) of the signal.

DataType

public virtual string DataType {get;}

Get Simulink® data type name.

Label

public virtual string Label {get;}

Get label of signal. If no label is associated with the signal, this property returns an empty character string.

SignalId

public virtual int SignalId {get;}

Get numeric identifier that represents the signal object.

UserData

public Object UserData {get; set;}

Get and set user-defined object that you can use to store and retrieve additional information.

Width

public virtual int Width {get;}

Get signal width.

Introduced in R2011b

Was this topic helpful?