Documentation

xPCGetSignal

Return value of signal

Prototype

double xPCGetSignal(int port, int sigNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

sigNum

Enter a signal number.

Return

Returns the current value of signal sigNum. If the function detects an error, it returns -1.

Description

The xPCGetSignal function returns the current value of a signal. For vector signals, use xPCGetSignals rather than call this function multiple times. Use the xPCGetSignalIdx function to get the signal number.

Introduced before R2006a

Was this topic helpful?