Documentation

xPCAddScope

Create scope

Prototype

void xPCAddScope(int port, int scType, int scNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scType

Enter the type of scope.

scNum

Enter a number for a new scope. Values are 1, 2, 3. . .

Description

The xPCAddScope function creates a scope on the target computer. For scType, scopes can be of type host or target, depending on the value of scType:

  • SCTYPE_HOST for type host

  • SCTYPE_TARGET for type target

  • SCTYPE_FILE for type file

Constants for scType are defined in the header file xpcapiconst.h as SCTYPE_HOST, SCTYPE_TARGET, and SCTYPE_FILE.

Calling the xPCAddScope function with scNum having the number of an existing scope produces an error. Use xPCGetScopes to find the numbers of existing scopes.

Introduced before R2006a

Was this topic helpful?