Openmx100 – Yokogawa PC-Based MX100 User Manual
Page 774

17-40
IM MX190-01E
openMX100
Syntax
DAQMX100 openMX100(const char * strAddress, int * errorCode);
Declaration
Visual Basic
Public Declare Function openMX100 Lib "DAQMX100"(ByVal
strAddress As String, ByRef errorCode As Long) As Long
Visual Basic.NET
Public Declare Ansi Function openMX100 Lib "DAQMX100"(ByVal
strAddress As String, ByRef errorCode As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="openMX100")]
public static extern int openMX100(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.
• Initializes the stored data. Retrieves information about the status of the instrument
such as setup data, 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
CDAQMX100::open
17.1 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Status Transition Functions