Owner manual

10-19
IM MX190-01E
Functions for the DARWIN - Visual C/Visual Basic -
10
openDARWIN
Syntax
DAQDARWIN openDARWIN(const char * strAddress, int *
errorCode);
Declaration
Public Declare Function openDARWIN Lib "DAQDARWIN"(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 in the return specified destination if one is specified.
The port number fixed, and set to the communication constant “communication
port number.”
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
CDAQDARWIN::open
10.1 Details of Functions - DARWIN (Visual C/Visual Basic) -