xPCAddScope - Create new scope

Prototype

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

Arguments

port

Enter the value returned by either the function xPCOpenSerialPort or 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 new scope on the target PC. For scType, scopes can be of type host or target, depending on the value of scType:

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.

See Also

API functions xPCScAddSignal, xPCScRemSignal, xPCRemScope, xPCSetScope, xPCGetScope, xPCGetScopes

Target object method addscope

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS