Openda100 – Yokogawa PC-Based MX100 User Manual

Page 1102

Advertising
background image

24-11

IM MX190-01E

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

24

openDA100

Syntax

DAQDA100 openDA100(const char * strAddress, int * errorCode);

Declaration

Visual Basic
Public Declare Function openDA100 Lib "DAQDA100"(ByVal
strAddress As String, ByRef errorCode As Long) As Long
Visual Basic.NET
Public Declare Ansi Function openDA100 Lib "DAQDA100"(ByVal
strAddress As String, ByRef errorCode As Integer) As Integer
C#
[DllImport("DAQDA100.dll" CharSet=CharSet.Auto,
EntryPoint="openDA100")]
public static extern int openDA100(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 set to the communication constant “communication.

port number.”

• Initializes the stored data. Gets the system configuration data, channel

information data, and status byte and stores it.

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

• If unsuccessful, returns NULL in Visual C, or otherwise 0.

Return value

Returns the device descriptor.

Error:
Creating descriptor is failure

Failed to create the device descriptor.

Reference

CDAQDA100::open

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

Advertising