Receivebytedarwin – Yokogawa PC-Based MX100 User Manual

Page 518

Advertising
background image

10-20

IM MX190-01E

receiveByteDARWIN

Syntax

int receiveByteDARWIN(DAQDARWIN daqdarwin, unsigned char *
byteData, int maxData, int * lenData)

Declaration

Public Declare Function receiveByteDARWIN Lib
"DAQDARWIN"(ByVal daqdarwin As Long, ByRef byteData() As Byte,
ByVal maxData As Long, ByRef lenData As Long) As Long

Parameters

daqdarwin

Specify the device descriptor.

byteData

Specify the field where the received byte data is to be stored.

maxData

Specify the byte size of the received data.

lenData

Specify the destination where the byte size of the actual data
received is returned.

Description

Stores the received data in the field specified by the parameter up to the specified
byte size.

• Returns the byte size of the actual data received if the return destination is

specified.

• If multiple bytes 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.

• Used for receiving binary output when implementing a model-specific talker

function.

Return value

Returns an error number.
Error:

Not descriptor

No device descriptor.

Reference

CDAQDARWIN::receiveByte

10.1 Details of Functions - DARWIN (Visual C/Visual Basic) -

Advertising