nSerialReceive
Function: int nSERIALReceive (long session, short port, unsigned short flush, long timeout,
short terminator, short length, char FAR *data, short FAR *xlength, unsigned short
FAR *status);
Parameters:
Long
session
The session handle of the NetScan
Short
port
The port being read from.
Unsigned short
flush
Flag to indicate if the receive buffer should be
cleared.
long
timeout
The time, in milliseconds, to wait for received data.
Short
terminator
The terminator to be used for serial input.
Short
length
The maximum number of characters to be
Read into the data buffer.
Char FAR *
data
A buffer where the received characters will be
placed.
Short FAR *
xlength
The number of characters that were read.
Parameter Values:
Port
NetScan = 1
Aux = 0
Flush
retain = 0
Empty = 1
Terminator
none = -1
CRLF = -3
User defined = 0 to 255
Returns: 0 if successful, error code or warning if command not completed.
Description: This function’s primary use is to read data from the NetScan’s ethernet interface. The secondary use is
to flush all characters from the NetScan’s ethernet interface transmit buffer. Because this function may take some
time to complete, the return value must be tested to see if the command has completed. The return value for
command pending is –801.
Example:
Do {
ErrVal = nSERIALReceive(session, 1, 0, 1000, 13, 100, &dataBuffer,
&xlength);
} while (errVal == -801);
Содержание OMB-NETSCAN
Страница 6: ...iv NetScan User s Manual...
Страница 18: ...1 12 Configuring and Starting NetScan NetScan User s Manual Notes...
Страница 38: ...3 8 General Information and Specifications NetScan User s Manual Notes...
Страница 82: ...4 44 ChartView Software Reference NetScan User s Manual Notes...
Страница 111: ...NetScan User s Manual Calibration 6 13 1 Connect an applicable calibration harness to each card Refer to figure below...
Страница 118: ...6 20 Calibration NetScan User s Manual...
Страница 140: ...A ii NetScan User s Manual...
Страница 192: ...API Command Reference Appendix A A 52 NetScan User s Manual Notes...
Страница 237: ...Appendix D Registers Data Formats Queries NetScan User s Manual D 13...
Страница 244: ...NetScan Program Examples Appendix E E 2 NetScan User s Manual...
Страница 248: ...ASCII Code Summary Appendix F F 4 NetScan User s Manual Notes...
Страница 250: ...NetScan Error Messages Appendix G G 2 NetScan User s Manual Notes...
Страница 252: ...Abbreviations Appendix H H 2 NetScan User s Manual Notes...
Страница 254: ...NetScan User s Manual...