Skip to Main Content Skip to Search
Product Documentation

xPCGetScopes - Get and copy list of scope numbers

Prototype

void xPCGetScopes(int port, int *data);

Arguments

port

Enter the value returned by either the function xPCOpenSerialPort or the function xPCOpenTcpIpPort.

data

List of scope numbers in an integer array (allocated by the caller) as a list of unsorted integers and terminated by -1.

Description

The xPCGetScopes function gets the list of scopes currently defined. You can use the constant MAX_SCOPES (defined in xpcapiconst.h) as the size of data. This is currently set to 30 scopes.

See Also

API functions xPCSetScope, xPCGetScope, xPCScGetSignals

Target object property Scopes

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

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