Receivelineda100 – Yokogawa PC-Based MX100 User Manual

Page 1104

Advertising
background image

24-13

IM MX190-01E

DARWIN for Extended API - Visual C/Visual Basic/Visual Basic.NET/C# -

24

receiveLineDA100

Syntax

int receiveLineDA100(DAQDA100 daqda100, char * strLine, int
maxLine, int * lenLine);

Declaration

Visual Basic
Public Declare Function receiveLineDA100 Lib "DAQDA100"(ByVal
daqda100 As Long, ByVal strLine As String, ByVal maxLine As
Long, ByRef lenLine As Long) As Long
Visual Basic.NET
Public Declare Ansi Function receiveLineDA100 Lib
"DAQDA100"(ByVal daqda100 As Integer, ByVal strLine As String,
ByVal maxLine As Integer, ByRef lenLine As Integer) As Integer
C#
[DllImport("DAQDA100.dll" CharSet=CharSet.Auto,
EntryPoint="receiveLineDA100")]
public static extern int receiveLineDA100(int daqda100, byte[]
strLine, int maxLine, out int lenLine);

Parameters

daqda100

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 carriage return 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.
• The strings that can be stored are, in general, ASCII strings.

Return value

Returns an error number.
Error:

Not descriptor

No device descriptor.

Reference

CDAQDA100::receiveLine

24.1 Details of Functions - DARWIN (VC/VB/VB.NET/C#) - Status Transition Functions

Advertising