Openmx – Yokogawa PC-Based MX100 User Manual

Page 294

Advertising
background image

5-36

IM MX190-01E

openMX

Syntax

DAQMX openMX(const char * strAddress, int * errorCode);

Declaration

Public Declare Function openMX Lib "DAQMX"(ByVal strAddress As
String, ByRef errorCode As Long) As Long

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 IP 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.

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

Return value

Returns the device descriptor.

Error:
Creating descriptor is failure Failed to create the device descriptor.

Reference

CDAQMX::open

5.1 Details of Functions - MX100 (Visual C/Visual Basic) -

Advertising