Receivebyteda100 – Yokogawa PC-Based MX100 User Manual
Page 1103

24-12
IM MX190-01E
receiveByteDA100
Syntax
int receiveByteDA100(DAQDA100 daqda100, unsigned char *
byteData, int maxData, int * lenData) );
Declaration
Visual Basic
Public Declare Function receiveByteDA100 Lib "DAQDA100"(ByVal
daqda100 As Long, ByRef byteData As Byte, ByVal maxData As
Long, ByRef lenData As Long) As Long
Visual Basic.NET
Public Declare Ansi Function receiveByteDA100 Lib
"DAQDA100"(ByVal daqda100 As Integer, ByRef byteData As Byte,
ByVal maxData As Integer, ByRef lenData As Integer) As Integer
C#
[DllImport("DAQDA100.dll" CharSet=CharSet.Auto,
EntryPoint="receiveByteDA100")]
public static extern int receiveByteDA100(int daqda100, byte[]
byteData, int maxData, out int lenData);
Parameters
daqda100
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 to 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 recieving binary output when implementing a model-specific talker
function.
Return value
Returns an error number.
Error:
Not descriptor
No device descriptor.
Reference
CDAQDA100::receiveByte
24.1 Details of Functions - DARWIN (VC/VB/VB.NET/C#) - Status Transition Functions