Yokogawa PC-Based MX100 User Manual

Page 1170

Advertising
background image

24-79

IM MX190-01E

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

24

openDA100Reader

Syntax

DAQDA100READER openDA100Reader(const char * strAddress, int *
errorCode);

Declaration

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

Parameters

strAddress

Specify the IP address as a string.

errorCode

Specify the destination where the error number is to be returned.

Description

Connects to the device with the address specified by the parameters.
• Creates a device descriptor and returns the value as a return value.

• Stores the error number if the return destination is specified.
• The port number is fixed, and it is set to the communication constant,

“instantaneous value loading port number.”

• Initializes the stored data. Retrieves information about the status of the instrument

such as channel information data, and stores the information.

• The specified string is, in general, an ASCII string.

• If unsuccessful, returns NULL in Visual C or 0 in Visual Basic, Visual Basic.NET/

C#.

Return value

Returns the device descriptor.
Error:

Creating descriptor is failure

Failed to create the device descriptor.

Reference

CDAQDA100Reader::open

24.3 Details of Functions for Instantaneous Value Loading - DARWIN- Status Transition Functions

Advertising