Documentation

xPCIsScFinished

Return data acquisition status for scope

Prototype

int xPCIsScFinished(int port, int scNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

Return

If a scope finishes a data acquisition cycle, the function returns 1. If the scope is in the process of acquiring data, it returns 0. If the function detects an error, it returns -1.

Description

The xPCIsScFinished function returns a Boolean value depending on whether scope scNum is finished (state of SCST_FINISHED) or not. Use the xPCGetScope function to get the scope number.

You can call this function for target scopes; however, because target scopes restart immediately, it is almost impossible to find them in the finished state.

Introduced before R2006a

Was this topic helpful?