Signal Monitoring and Tracing with .NET

Signal visualization with and without real-time information

If you require only the signal value, not the time at which it reached that value, monitor a signal from your .NET program. See xPC Signal Class.

If you require the signal value and the time at which it reached that value, add a real-time scope from your .NET program. See xPCScope Class.

.NET API

expand all

xPCSignal ClassAccess signal objects
xPCSignals ClassAccess signal objects
xPCSignals.GetSignalsList of xPCSignal objects specified by array of signal identifiers
xPCSignals.GetSignalsValueVector of signal values from array
xPCSignals.RefreshRefresh state of object
xPCSignal.GetValueValue of signal at moment of request
xPCSignal.TryGetValueStatus of get signal value at moment of request
xPCScope ClassAccess Simulink Real-Time scopes
xPCScopes ClassAccess scope objects
xPCScope.StartStart scope
xPCScope.StopStop scope
xPCScope.TriggerSoftware-trigger start of data acquisition for scope
xPCScopes.RefreshAllRefresh state of object
xPCTargetScope ClassAccess to target scopes
xPCTargetScopeCollection ClassCollection of xPCTargetScope objects
xPCTargetScopeSignalCollection ClassCollection of xPCHostScopeSignal objects
xPCTgtScopeSignal ClassAccess to target scope signals
xPCTargetScopeCollection.AddCreate xPCTargetScope object
xPCTargetScopeSignalCollection.AddCreate xPCTargetScopeSignal object
xPCTargetScopeCollection.StartAllStart all target scopes in one call
xPCTargetScopeCollection.StopAllStop all target scopes in one call
xPCTargetScopeCollection.RefreshRefresh target scope object state
xPCTargetScopeSignalCollection.RefreshSynchronize signals for associated target scopes on target computer
xPCHostScope ClassAccess to host scopes
xPCHostScopeCollection ClassCollection of xPCHostScope objects
xPCHostScopeSignal ClassAccess to host scope signals
xPCHostScopeSignalCollection ClassCollection of xPCHostScopeSignal objects
xPCHostScopeCollection.AddCreate xPCHostScope object with next available scope ID as key
xPCHostScopeSignalCollection.AddAdd signals to host scope
xPCHostScopeCollection.StartAllStart all host scopes in one call
xPCHostScopeCollection.StopAllStop all host scopes in one call
xPCDataHostScSignalObject.GetDataCopy host scope signal data from target computer
xPCDataHostScSignalObject.GetDataAsyncAsynchronously copy host scope signal data from target computer
xPCHostScopeCollection.RefreshRefresh host scope object state
xPCHostScopeSignalCollection.RefreshSynchronize signals for associated host scopes on target computer
xPCScope.ScopeStartingEvent before xPCScope.Start executes
xPCScope.ScopeStartedEvent after xPCScope.Start is complete
xPCScope.ScopeStoppingEvent before xPCScope.Stop executes
xPCScope.ScopeStoppedEvent after xPCScope.Stop is complete
xPCDataHostScSignalObject.GetDataCompletedEvent when xPCDataHostScSignalObject.GetDataAsync is complete
GetHostScSignalDataObjectCompletedEventArgs ClassxPCDataHostScSignalObject.DataObjectCompleted event data
xPCScopeCollectionEventArgs ClassxPCScopeCollection.Added event data
xPCScopeRemCollectionEventArgs ClassxPCScopeCollection.Removed event data
xPCScopeSignalCollectionEventArgs ClassxPCScopeSignalCollection.Added event data
xPCException ClassInformation for xPCException
xPCExceptionConstruct new instance of xPCException class

Topics

Background

Simulink Real-Time .NET API Client Application Examples

Examine applications that use the Simulink® Real-Time™ API for Microsoft® .NET Framework.

Signal Visualization

Signal Monitoring Basics

Acquire non-time-stamped signal data while running a real-time application.

Signal Tracing Basics

Acquire and visualize signals while running a real-time application.

Configuration

Target Scope Usage

Learn about usage issues that are unique to target scopes.

Host Scope Usage

Learn about usage issues that are unique to host scopes.

.NET Interface

Using the Simulink Real-Time API for Microsoft .NET Framework

Creating user interfaces with the Simulink Real-Time API for .NET Framework.

Simulink Real-Time API for Microsoft .NET Framework

Accessing the target computer and real-time application with the Simulink Real-Time API for Microsoft .NET Framework.

Simulink Real-Time .NET API Application Creation

Configure the development environment for using the Simulink Real-Time API for Microsoft .NET Framework.

Simulink Real-Time .NET API Application Distribution

Complying with the requirements for distributing client applications.

Limitations

Troubleshoot Signals Not Accessible by Name

Investigate issues for some signal types prevent monitoring, tracing, or logging.

Internationalization Issues

Learn about Simulink Real-Time support for internationalization.

Featured Examples