Documentation

xPCTargetPC.Load

Load real-time application onto target computer

Syntax

public xPCApplication Load()
public xPCApplication Load(string AppFileName)

Description

Class: xPCTargetPC Class

Method

Namespace: MathWorks.xPCTarget.FrameWork

Syntax Language: C#

public xPCApplication Load() loads a real-time application onto the target computer. This method returns an xPCApplication object.

public xPCApplication Load(string AppFileName) loads AppFileName onto the target computer. AppFileName is a character string that specifies the full path name, without file extension, to the real-time application that you are loading on the target computer. This method returns an xPCApplication object.

Exception

ExceptionCondition

ArgumentException

AppFileName is empty, contains only white spaces, or contains invalid characters.

xPCException

When problem occurs, query xPCException object Reason property.

InvalidOperationException

AppFileName is a NULL reference (empty in Visual Basic®) or an empty character string.

NotSupportedException

AppFileName contains a colon (:) in the middle of the character string.

PathTooLongException

The specified path, file name, or both in AppFileName exceed the system-defined maximum length. For example, on Windows® platforms, path names must be fewer than 248 characters. File names must be fewer than 260 characters.

SecurityException

Caller does not have required permission.

UnauthorizedAccessException

System does not allow access to AppFileName.

Introduced in R2011b

Was this topic helpful?