10 receivelinedarwin – Yokogawa PC-Based MX100 User Manual
Page 519
![background image](/manuals/360310/519/background.png)
10-21
IM MX190-01E
Functions for the DARWIN - Visual C/Visual Basic -
10
receiveLineDARWIN
Syntax
int receiveLineDARWIN(DAQDARWIN daqdarwin, char * strLine, int
maxLine, int * lenLine);
Declaration
Public Declare Function receiveLineDARWIN Lib
"DAQDARWIN"(ByVal daqdarwin As Long, ByVal strLine As String,
ByVal maxLine As Long, ByRef lenLine As Long) As Long
Parameters
daqdarwin
Specify the device descriptor.
strLine
Specify the field where the received string is to be stored.
maxLine
Specify the byte size of the field where the received string is to be
stored.
lenLine
Specify the destination where the byte size of the actual string
received is returned.
Description
Receives data in the field specified for storing received strings by the parameter,
until a line feed is detected or up to the specified byte size.
• Stores the received string excluding line feeds in the storage field.
• Stores in the specified destination the byte size of the actual data received and
stored if the return destination is specified.
• If multiple lines of data exist, repeat the function.
• Do not perform communications using other functions until the data retrieval is
completed. Other functions may not operate properly.
• The user must carry out determination of the data end.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQDARWIN::receiveLine
10.1 Details of Functions - DARWIN (Visual C/Visual Basic) -