| xPC Target™ | ![]() |
void xPCAddScope(int port, int scType, int scNum);
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. . . |
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:
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.
API functions xPCScAddSignal, xPCScRemSignal, xPCRemScope, xPCSetScope, xPCGetScope, xPCGetScopes
Target object method addscope
![]() | scopedata | xPCAverageTET | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |